aboutsummaryrefslogtreecommitdiff
path: root/test/check.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/check.sh')
-rwxr-xr-xtest/check.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/check.sh b/test/check.sh
new file mode 100755
index 0000000..fd537d7
--- /dev/null
+++ b/test/check.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+for testcase in *;
+do
+ if [ -d $testcase ] && [ "$testcase" != "common" ]
+ then
+ echo $testcase
+
+ cd $testcase
+ rm -f actual.xml
+
+ ./../../build/test --transformation transformation.xsl --target actual.xml
+ diff -u reference.xml actual.xml
+
+ if [ $? = 0 ]
+ then
+ echo "passed."
+ else
+ echo "failed."
+ fi
+
+ cd ..
+ fi
+done