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