aboutsummaryrefslogtreecommitdiffstats
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
parentc85746b6a6c3080bac409e0acb8cc8b332b2761e (diff)
downloadCompiler-95293c6e1c24a04a1d3659e987ad505f1ff77387.tar.gz
Compiler-95293c6e1c24a04a1d3659e987ad505f1ff77387.zip
made tests in nicer format
-rw-r--r--c_parser/test/out/01.stdout.xml (renamed from c_parser/test/out/01.stdout.txt)0
-rw-r--r--c_parser/test/out/02.stdout.xml (renamed from c_parser/test/out/02.stdout.txt)0
-rw-r--r--c_parser/test/out/03.stdout.xml (renamed from c_parser/test/out/03.stdout.txt)0
-rw-r--r--c_parser/test/out/04.stdout.xml (renamed from c_parser/test/out/04.stdout.txt)0
-rw-r--r--c_parser/test/ref/01.stdout.xml (renamed from c_parser/test/ref/01.stdout.txt)0
-rw-r--r--c_parser/test/ref/02.stdout.xml (renamed from c_parser/test/ref/02.stdout.txt)0
-rw-r--r--c_parser/test/ref/03.stdout.xml (renamed from c_parser/test/ref/03.stdout.txt)0
-rw-r--r--c_parser/test/ref/04.stdout.xml (renamed from c_parser/test/ref/04.stdout.txt)0
-rwxr-xr-xtest_parser.sh4
9 files changed, 2 insertions, 2 deletions
diff --git a/c_parser/test/out/01.stdout.txt b/c_parser/test/out/01.stdout.xml
index bd7cd1f..bd7cd1f 100644
--- a/c_parser/test/out/01.stdout.txt
+++ b/c_parser/test/out/01.stdout.xml
diff --git a/c_parser/test/out/02.stdout.txt b/c_parser/test/out/02.stdout.xml
index e69de29..e69de29 100644
--- a/c_parser/test/out/02.stdout.txt
+++ b/c_parser/test/out/02.stdout.xml
diff --git a/c_parser/test/out/03.stdout.txt b/c_parser/test/out/03.stdout.xml
index 6ca0ab2..6ca0ab2 100644
--- a/c_parser/test/out/03.stdout.txt
+++ b/c_parser/test/out/03.stdout.xml
diff --git a/c_parser/test/out/04.stdout.txt b/c_parser/test/out/04.stdout.xml
index 9257eac..9257eac 100644
--- a/c_parser/test/out/04.stdout.txt
+++ b/c_parser/test/out/04.stdout.xml
diff --git a/c_parser/test/ref/01.stdout.txt b/c_parser/test/ref/01.stdout.xml
index bd7cd1f..bd7cd1f 100644
--- a/c_parser/test/ref/01.stdout.txt
+++ b/c_parser/test/ref/01.stdout.xml
diff --git a/c_parser/test/ref/02.stdout.txt b/c_parser/test/ref/02.stdout.xml
index bc37d7a..bc37d7a 100644
--- a/c_parser/test/ref/02.stdout.txt
+++ b/c_parser/test/ref/02.stdout.xml
diff --git a/c_parser/test/ref/03.stdout.txt b/c_parser/test/ref/03.stdout.xml
index 6ca0ab2..6ca0ab2 100644
--- a/c_parser/test/ref/03.stdout.txt
+++ b/c_parser/test/ref/03.stdout.xml
diff --git a/c_parser/test/ref/04.stdout.txt b/c_parser/test/ref/04.stdout.xml
index 9257eac..9257eac 100644
--- a/c_parser/test/ref/04.stdout.txt
+++ b/c_parser/test/ref/04.stdout.xml
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