aboutsummaryrefslogtreecommitdiffstats
path: root/test_parser.sh
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-02-17 17:31:14 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-02-17 17:31:14 +0000
commit95293c6e1c24a04a1d3659e987ad505f1ff77387 (patch)
tree8961654c295d03a71f941809601553ec9c0ceac4 /test_parser.sh
parentc85746b6a6c3080bac409e0acb8cc8b332b2761e (diff)
downloadCompiler-95293c6e1c24a04a1d3659e987ad505f1ff77387.tar.gz
Compiler-95293c6e1c24a04a1d3659e987ad505f1ff77387.zip
made tests in nicer format
Diffstat (limited to 'test_parser.sh')
-rwxr-xr-xtest_parser.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test_parser.sh b/test_parser.sh
index 96644c2..7743579 100755
--- a/test_parser.sh
+++ b/test_parser.sh
@@ -25,9 +25,9 @@ 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.txt 2> c_parser/test/out/$BASENAME.stderr.txt
+ cat $i | ./bin/c_parser > c_parser/test/out/$BASENAME.stdout.xml 2> c_parser/test/out/$BASENAME.stderr.txt
- diff <(cat c_parser/test/ref/$BASENAME.stdout.txt) <(cat c_parser/test/out/$BASENAME.stdout.txt) > c_parser/test/out/$BASENAME.diff.txt
+ diff <(cat c_parser/test/ref/$BASENAME.stdout.xml) <(cat c_parser/test/out/$BASENAME.stdout.xml) > c_parser/test/out/$BASENAME.diff.txt
if [[ "$?" -ne "0" ]]; then
echo -e "\nERROR"
else