From c4ab9ec218908ebe19f90b89328bdd6d8348fa99 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 26 Nov 2011 13:23:26 +0000 Subject: [PATCH] Improved test script Now it recooks the ginsud tiddlers --- test.sh | 10 +++++++--- test/data/recipes/newtiddlers.recipe | 2 ++ test/data/recipes/oldtiddlers.recipe | 2 ++ 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100755 test/data/recipes/newtiddlers.recipe create mode 100755 test/data/recipes/oldtiddlers.recipe diff --git a/test.sh b/test.sh index 3616a20c0..b8a20c9fd 100755 --- a/test.sh +++ b/test.sh @@ -15,9 +15,13 @@ node cook.js $PWD/test/data/tiddlywiki.com/index.html.recipe > tmp/newcooked.htm # split the newly cooked tiddlywiki into tiddlers, first with the new ginsu mkdir -p tmp/newtiddlers rm -f tmp/newtiddlers/* -node ginsu.js tmp/newcooked.html tmp/newtiddlers +node ginsu.js tmp/newcooked.html tmp/newtiddlers || exit 1 -# and now cook them with the old +# and now ginsu them with the old ginsu.rb rm -r tmp/oldtiddlers -ginsu tmp/oldcooked +ginsu tmp/oldcooked || exit 1 mv oldcooked.html.0 tmp/oldtiddlers/ + +# now cook those tiddlers back again with the respective versions of cook +#cook $PWD/test/data/recipes/oldtiddlers.recipe -d $PWD -o tmp/oldrecooked.html || exit 1 +node cook.js $PWD/test/data/recipes/newtiddlers.recipe > tmp/newrecooked.html || exit 1 diff --git a/test/data/recipes/newtiddlers.recipe b/test/data/recipes/newtiddlers.recipe new file mode 100755 index 000000000..279b734b3 --- /dev/null +++ b/test/data/recipes/newtiddlers.recipe @@ -0,0 +1,2 @@ +recipe: ../tiddlywiki/tiddlywikinonoscript.html.recipe +recipe: ../../../tmp/newtiddlers/split.recipe diff --git a/test/data/recipes/oldtiddlers.recipe b/test/data/recipes/oldtiddlers.recipe new file mode 100755 index 000000000..693eefc1b --- /dev/null +++ b/test/data/recipes/oldtiddlers.recipe @@ -0,0 +1,2 @@ +recipe: ../tiddlywiki/tiddlywikinonoscript.html.recipe +recipe: ../../../tmp/oldtiddlers/split.recipe