Carl Worth | e8c790b | 2010-05-10 16:21:10 -0700 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | for test in *.c; do | ||||
4 | echo "Testing $test" | ||||
5 | ../glcpp < $test > $test.out | ||||
6 | gcc -E $test -o $test.gcc | ||||
7 | grep -v '^#' < $test.gcc > $test.expected | ||||
8 | diff -u $test.expected $test.out | ||||
9 | done |