Carl Worth | e8c790b | 2010-05-10 16:21:10 -0700 | [diff] [blame] | 1 | #!/bin/sh |
Carl Worth | 3ff8167 | 2010-05-25 13:09:03 -0700 | [diff] [blame^] | 2 | set -e |
| 3 | |
| 4 | echo "Caution: These results are just verifying parse-ability, not correctness!" |
Carl Worth | e8c790b | 2010-05-10 16:21:10 -0700 | [diff] [blame] | 5 | |
| 6 | for test in *.c; do |
| 7 | echo "Testing $test" |
| 8 | ../glcpp < $test > $test.out |
| 9 | gcc -E $test -o $test.gcc |
| 10 | grep -v '^#' < $test.gcc > $test.expected |
Carl Worth | 3ff8167 | 2010-05-25 13:09:03 -0700 | [diff] [blame^] | 11 | # diff -B -u $test.expected $test.out |
Carl Worth | e8c790b | 2010-05-10 16:21:10 -0700 | [diff] [blame] | 12 | done |