aboutsummaryrefslogtreecommitdiff
path: root/test/check.sh
blob: fd537d733b38fbae1fb2cd34645271c35a520320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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