diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-19 14:40:15 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-19 14:40:15 +0000 |
commit | 563fc043d2ed88cc72b825e3916287f8a67545c2 (patch) | |
tree | 66b9dc80272558a25906255bea46641da10fa4b8 /test_parser.sh | |
parent | 1802437f63e14c1128918c4e3a00f60fb97182d9 (diff) | |
download | Compiler-563fc043d2ed88cc72b825e3916287f8a67545c2.tar.gz Compiler-563fc043d2ed88cc72b825e3916287f8a67545c2.zip |
Finished declarations completetly apart from curlies
Diffstat (limited to 'test_parser.sh')
-rwxr-xr-x | test_parser.sh | 3 |
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 |