Added --no-parser to test.sh and changed expected5
[kdevelop:kdevelop-pg-qt.git] / kdev-pg / test / test.sh
1 #!/bin/bash
2 for case_name in `ls case*.g`; do
3     case_number=`echo $case_name | sed -r 's/case([0-9]+)\.g/\1/'`
4     expected_name="expected$case_number"
5     actual_name=`echo $case_name | sed -r 's/case([0-9]+)/actual\1/'`
6     kdev-pg-qt --no-parser $case_name 2>$actual_name
7     diff=`diff -U3 $expected_name $actual_name`
8     if [ ${#diff} -eq 0 ]; then
9         echo "Test case #$case_number passed"
10     else
11         echo "Test case #$case_number failed"
12         echo "  difference is: $diff"
13         echo "================================="
14     fi
15 done