aboutsummaryrefslogtreecommitdiffstats
path: root/test_parser.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test_parser.sh')
-rwxr-xr-xtest_parser.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test_parser.sh b/test_parser.sh
index 7743579..cddc491 100755
--- a/test_parser.sh
+++ b/test_parser.sh
@@ -26,8 +26,9 @@ for i in c_parser/test/in/*.c; do
echo "Input file : ${i}"
BASENAME=$(basename $i .c);
cat $i | ./bin/c_parser > c_parser/test/out/$BASENAME.stdout.xml 2> c_parser/test/out/$BASENAME.stderr.txt
+ tidy -xml -i -q -o c_parser/test/out/$BASENAME.pretty.xml c_parser/test/out/$BASENAME.stdout.xml
- diff <(cat c_parser/test/ref/$BASENAME.stdout.xml) <(cat c_parser/test/out/$BASENAME.stdout.xml) > c_parser/test/out/$BASENAME.diff.txt
+ diff <(cat c_parser/test/ref/$BASENAME.stdout.xml | tidy -xml -i -q) <(cat c_parser/test/out/$BASENAME.stdout.xml | tidy -xml -i -q) > c_parser/test/out/$BASENAME.diff.txt
if [[ "$?" -ne "0" ]]; then
echo -e "\nERROR"
else