Run the tests in the main build script

Getting to the point where we should probably be using a make tool
print-window-tiddler
Jeremy Ruston 2013-04-25 17:16:00 +01:00
rodzic 297a924d05
commit 3e4322d897
2 zmienionych plików z 3 dodań i 16 usunięć

3
bld.sh
Wyświetl plik

@ -59,3 +59,6 @@ node ./tiddlywiki.js \
--savetiddler $:/core/templates/tiddlywiki5.template.html $TW5_BUILD_OUTPUT/empty.html text/plain \
|| exit 1
# Fourth, run the test edition to run the node.js tests and to generate test.html for tests in the browser
./test.sh

16
test.sh
Wyświetl plik

@ -1,16 +0,0 @@
#!/bin/bash
# test TiddlyWiki5
# create a temporary directory if it doesn't already exist
mkdir -p tmp
mkdir -p tmp/test
# build test.html
node ./tiddlywiki.js \
./editions/test \
--verbose \
--savetiddler $:/core/templates/tiddlywiki5.template.html tmp/test/index.html text/plain \
|| exit 1