blob: 630415521047841dcab22c8c1e04c69b85c741e5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
set -e
for test in *.c; do
echo "Testing $test"
../glcpp < $test > $test.out
gcc -E $test -o $test.gcc
grep -v '^#' < $test.gcc > $test.expected
diff -u $test.expected $test.out
done
|