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