blob: 34cca8833011a032c1201023c397bf448f3a19f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
set -e
echo "Caution: These results are just verifying parse-ability, not correctness!"
for test in *.c; do
echo "Testing $test"
../glcpp < $test > $test.out
gcc -E $test -o $test.gcc
# grep -v '^#' < $test.gcc > $test.expected
grep -v '^[ ]*#' < $test > $test.expected
diff -w -u $test.expected $test.out
done
|