summaryrefslogtreecommitdiff
path: root/tests/run_all.sh
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-10-23 10:07:09 +0200
committerKevin Chabowski <kevin@kch42.de>2013-10-23 10:07:09 +0200
commit4ddb2aef646f0f99656e2c1e13298c7ec2c611c9 (patch)
treed7b9510e21e1c188894d821682327f5bfb9e225e /tests/run_all.sh
parente8684bba1f68c1fa02c25f3c6fab0f8cd532b69a (diff)
parentfc8f7eec23e8e95fc9a4a483bb69a1ee6866069d (diff)
downloadste-4ddb2aef646f0f99656e2c1e13298c7ec2c611c9.tar.gz
ste-4ddb2aef646f0f99656e2c1e13298c7ec2c611c9.tar.bz2
ste-4ddb2aef646f0f99656e2c1e13298c7ec2c611c9.zip
Merge branch 'parser2' of git@github.com:kch42/Stupid-Template-Engine.git into improve-lang
Diffstat (limited to 'tests/run_all.sh')
-rwxr-xr-xtests/run_all.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/run_all.sh b/tests/run_all.sh
new file mode 100755
index 0000000..75909d1
--- /dev/null
+++ b/tests/run_all.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+r=0
+for t in test_*; do
+ cd $t
+ php ../test.php > have
+ echo -n "$t: "
+ if cmp want have; then
+ echo "OK"
+ rm *.transc.php
+ else
+ echo "FAILED"
+ for tpl in *.tpl; do
+ php ../dump_ast.php < $tpl > $tpl.ast
+ done
+ r=1
+ fi
+ cd ..
+done
+
+exit $r \ No newline at end of file