2011-11-22 14:29:29 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-11-25 15:51:02 +00:00
|
|
|
# create a temporary directory if it doesn't already exist
|
|
|
|
mkdir -p tmp
|
|
|
|
|
2011-12-03 11:41:25 +00:00
|
|
|
# cook tiddlywiki 2.6.5 with cook.js
|
2011-12-09 16:34:02 +00:00
|
|
|
mkdir -p tmp/newcooked
|
|
|
|
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
|
2011-11-25 19:20:35 +00:00
|
|
|
|
2011-12-09 16:34:02 +00:00
|
|
|
# Run the wikification tests
|
2012-01-03 17:08:32 +00:00
|
|
|
node tiddlywiki.js --wikitest test/wikitests/
|
2011-12-09 16:34:02 +00:00
|
|
|
|
|
|
|
jshint *.js
|
|
|
|
jshint js
|
2012-01-03 17:42:12 +00:00
|
|
|
jshint tiddlywiki5/*.js
|