Implement #if and friends.
[mesa.git] / tests / glcpp-test
1 #!/bin/sh
2 set -e
3
4 for test in *.c; do
5 echo "Testing $test"
6 ../glcpp < $test > $test.out
7 gcc -E $test -o $test.gcc
8 grep -v '^#' < $test.gcc > $test.expected
9 diff -B -u $test.expected $test.out
10 done