mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Improved test script
Now it recooks the ginsud tiddlers
This commit is contained in:
parent
36927cf0e5
commit
c4ab9ec218
10
test.sh
10
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
|
# split the newly cooked tiddlywiki into tiddlers, first with the new ginsu
|
||||||
mkdir -p tmp/newtiddlers
|
mkdir -p tmp/newtiddlers
|
||||||
rm -f 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
|
rm -r tmp/oldtiddlers
|
||||||
ginsu tmp/oldcooked
|
ginsu tmp/oldcooked || exit 1
|
||||||
mv oldcooked.html.0 tmp/oldtiddlers/
|
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
|
||||||
|
2
test/data/recipes/newtiddlers.recipe
Executable file
2
test/data/recipes/newtiddlers.recipe
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
recipe: ../tiddlywiki/tiddlywikinonoscript.html.recipe
|
||||||
|
recipe: ../../../tmp/newtiddlers/split.recipe
|
2
test/data/recipes/oldtiddlers.recipe
Executable file
2
test/data/recipes/oldtiddlers.recipe
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
recipe: ../tiddlywiki/tiddlywikinonoscript.html.recipe
|
||||||
|
recipe: ../../../tmp/oldtiddlers/split.recipe
|
Loading…
Reference in New Issue
Block a user