Add a very simple test for the pre-processor.
[mesa.git] / tests / glcpp-test
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