1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-26 18:10:27 +00:00
TiddlyWiki5/archive/test.sh

22 lines
506 B
Bash
Raw Normal View History

2011-11-22 14:29:29 +00:00
#!/bin/sh
# create a temporary directory if it doesn't already exist
mkdir -p tmp
# cook tiddlywiki 2.6.5 with cook.js
mkdir -p tmp/newcooked
2012-04-10 12:52:15 +00:00
node tiddlywiki.js \
--recipe $PWD/test/tiddlywiki.2.6.5/source/tiddlywiki.com/index.html.recipe \
--savewiki tmp/newcooked \
|| exit 1
2011-11-22 14:29:29 +00:00
# compare the two
2011-12-14 18:25:40 +00:00
diff tmp/newcooked/index.html test/tiddlywiki.2.6.5/target/index.2.6.5.html
# Run the wikification tests
node tiddlywiki.js --wikitest test/wikitests/
jshint *.js
jshint js
2012-03-14 18:15:24 +00:00
jshint tiddlywiki5/boot/*.js