diff options
Diffstat (limited to 'test_parser.sh')
-rw-r--r-- | test_parser.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test_parser.sh b/test_parser.sh new file mode 100644 index 0000000..eaccfdb --- /dev/null +++ b/test_parser.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# script to test the lexer + +echo "========================================" +echo " Cleaning the temporaries and outputs" +make clean +echo " Force building lexer" +make -B bin/c_parser + +if [[ "$?" -ne 0 ]]; then + echo "Build failed."; +fi + +echo "=========================================" +echo " Testing lexer" + +cat c_parser/test/test_parser.c | ./bin/c_parser | tee c_lexer/test/output.xml |