This repository was archived by the owner on Aug 31, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,20 @@ on TestLoadExtension pName
321321
322322end TestLoadExtension
323323
324+ on TestLoadExternal pExternal
325+ if the platform is "MacOS" then
326+ set the externals of the templateStack to TestGetEngineRepositoryPath() & slash & pExternal & ".bundle"
327+ else if the platform is "linux" then
328+ set the externals of the templateStack to TestGetEngineRepositoryPath() & slash & pExternal & ".so"
329+ end if
330+
331+ create stack pExternal && "External"
332+ start using it
333+ if the externalCommands of it is empty then
334+ write "Cannot load external" && pExternal & return to stderr
335+ end if
336+ end TestLoadExternal
337+
324338private function __GetCaller
325339 get item 1 to - 3 of line - 3 of the executionContexts
326340 if there is not an it then
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ on TestSetup
5454 return "SKIP database tests can only be run on Linux"
5555 end if
5656
57+ TestLoadExternal "revdb"
58+
5759 put TestGetEngineRepositoryPath() & "/_tests/_build/sqlite_binary_test" into lDatabaseDir
5860 create directory lDatabaseDir
5961end TestSetup
You can’t perform that action at this time.
0 commit comments