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

Commit 5ba79d0

Browse files
committed
[Tests][emscripten] Make sure the "_inputlib" library is loaded and works
1 parent e01c7b9 commit 5ba79d0

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

tests/_emscripten/__boot.livecodescript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
private command TestLoadLibrary pBasename
44
local tStackname
5-
put the name of stack (pBasename & ".livecodescript") into tStackname
5+
put the name of stack ("tests/" & pBasename & ".livecodescript") into tStackname
66

77
dispatch revLoadLibrary to tStackname
88
end TestLoadLibrary
@@ -14,6 +14,7 @@ on startup
1414
write "# Loading test libraries" & return to stdout
1515
TestLoadLibrary "_testlib"
1616
TestLoadLibrary "_testerlib"
17+
TestLoadLibrary "_inputlib"
1718

1819
-- Run tests
1920
local tTestFile, tStackName, tCommand, tSetupResult

tools/emscripten_testgen.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ cp -r ${top_src_dir}/engine/rsrc/emscripten-standalone-template ${em_test_build_
3939
# Copy in test suite stacks
4040
mkdir -p ${em_stack_dir}
4141
cp -a ${test_src_dir} ${em_stack_dir}
42-
# Clean up undesirable files
43-
find ${test_src_dir} \
44-
-not -name \*.livecodescript -o \
45-
-name '_*' -o \
46-
-name '.*' \
47-
-print \
48-
-exec rm '{}' ';'
49-
cp ${test_src_dir}/_test*lib.livecodescript ${em_stack_dir}
5042
# Copy in startup and boot stacks
5143
cp ${em_test_src_dir}/__boot.livecodescript ${em_test_build_dir}/standalone/boot/standalone/__boot.livecode
5244
cp ${em_test_src_dir}/__startup.livecodescript ${em_test_build_dir}/standalone/boot/__startup.livecode

0 commit comments

Comments
 (0)