From a52fd57e8822e06853ac368ac72753b8292257ee Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 26 Nov 2011 12:51:56 +0000 Subject: [PATCH] Improved testing of ginsu --- test.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/test.sh b/test.sh index 9725c4c73..3616a20c0 100755 --- a/test.sh +++ b/test.sh @@ -10,9 +10,14 @@ cook $PWD/test/data/tiddlywiki.com/index.html.recipe -d $PWD -o tmp/oldcooked.ht node cook.js $PWD/test/data/tiddlywiki.com/index.html.recipe > tmp/newcooked.html || exit 1 # compare the two -opendiff tmp/oldcooked.html tmp/newcooked.html +#opendiff tmp/oldcooked.html tmp/newcooked.html -# split the newly cooked tiddlywiki into tiddlers -mkdir -p tmp/tiddlers -rm -f tmp/tiddlers/* -node ginsu.js tmp/newcooked.html tmp/tiddlers +# 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 + +# and now cook them with the old +rm -r tmp/oldtiddlers +ginsu tmp/oldcooked +mv oldcooked.html.0 tmp/oldtiddlers/