Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 02008e0

Browse files
Add support for loading revdb external to run test
1 parent c0f1895 commit 02008e0

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/_testlib.livecodescript

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,20 @@ on TestLoadExtension pName
321321

322322
end 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+
324338
private function __GetCaller
325339
get item 1 to -3 of line -3 of the executionContexts
326340
if there is not an it then

tests/lcs/core/database/sqlite_binary_insert.livecodescript

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
5961
end TestSetup

0 commit comments

Comments
 (0)