2010-05-10 16:21:10 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
for test in *.c; do
|
|
|
|
|
echo "Testing $test"
|
|
|
|
|
../glcpp < $test > $test.out
|
|
|
|
|
gcc -E $test -o $test.gcc
|
|
|
|
|
grep -v '^#' < $test.gcc > $test.expected
|
2010-05-20 22:27:07 -07:00
|
|
|
diff -B -u $test.expected $test.out
|
2010-05-10 16:21:10 -07:00
|
|
|
done
|