Files
mesa/tests/glcpp-test
T
Carl Worth 5ae88af988 test suite: Add expected output for every test.
Rather than using the (munged) output of "gcc -E" we now capture
precisely the output we expect from every test case. This allows us to
stay immune from strange output from gcc (unpredictable whitespace
output---aprticularly with different gcc versions).

This will also allow us to write tests that capture expected error
messages from the preprocessor as well.
2010-06-02 15:59:45 -07:00

8 lines
131 B
Bash
Executable File

#!/bin/sh
for test in *.c; do
echo "Testing $test"
../glcpp < $test > $test.out
diff -u $test.expected $test.out
done