diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-05 20:55:12 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-05 20:55:12 +0000 |
commit | eccb6c5360f213675a513e875bc424b8bdee16e7 (patch) | |
tree | 88b2826a2898223bcd5f02d5e5fd1f2c1c9b7e2a /test_parser.sh | |
parent | 6b7f5137edb18372bc3e3076dab1cb45c8e4c2ec (diff) | |
download | Compiler-eccb6c5360f213675a513e875bc424b8bdee16e7.tar.gz Compiler-eccb6c5360f213675a513e875bc424b8bdee16e7.zip |
Finished ast change and it works
Diffstat (limited to 'test_parser.sh')
-rwxr-xr-x | test_parser.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test_parser.sh b/test_parser.sh index cddc491..fd6d4f2 100755 --- a/test_parser.sh +++ b/test_parser.sh @@ -6,7 +6,7 @@ echo "========================================" echo " Cleaning the temporaries and outputs" make clean echo " Force building lexer" -make -B bin/c_parser +make -B bin/c_compiler if [[ "$?" -ne 0 ]]; then echo "Build failed."; @@ -25,7 +25,7 @@ for i in c_parser/test/in/*.c; do echo "" 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 + cat $i | ./bin/c_compiler > 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 | tidy -xml -i -q) <(cat c_parser/test/out/$BASENAME.stdout.xml | tidy -xml -i -q) > c_parser/test/out/$BASENAME.diff.txt |