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 | ||||
Carl Worth | b20d33c | 2010-05-20 22:27:07 -0700 | [diff] [blame] | 8 | diff -B -u $test.expected $test.out |
Carl Worth | e8c790b | 2010-05-10 16:21:10 -0700 | [diff] [blame] | 9 | done |