mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Improved testing of ginsu
This commit is contained in:
parent
54ad1984b2
commit
a52fd57e88
15
test.sh
15
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
|
node cook.js $PWD/test/data/tiddlywiki.com/index.html.recipe > tmp/newcooked.html || exit 1
|
||||||
|
|
||||||
# compare the two
|
# compare the two
|
||||||
opendiff tmp/oldcooked.html tmp/newcooked.html
|
#opendiff tmp/oldcooked.html tmp/newcooked.html
|
||||||
|
|
||||||
# split the newly cooked tiddlywiki into tiddlers
|
# split the newly cooked tiddlywiki into tiddlers, first with the new ginsu
|
||||||
mkdir -p tmp/tiddlers
|
mkdir -p tmp/newtiddlers
|
||||||
rm -f tmp/tiddlers/*
|
rm -f tmp/newtiddlers/*
|
||||||
node ginsu.js tmp/newcooked.html tmp/tiddlers
|
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/
|
||||||
|
Loading…
Reference in New Issue
Block a user