mesa/tests/glcpp-test
Carl Worth 9b519f9c79 Stop interrupting the test suite at the first failure.
This behavior was useful when starting the implementation over
("take-2") where the whole test suite was failing. This made it easy
to focus on one test at a time and get each working.

More recently, we got the whole suite working, so we don't need this
feature anymore. And in the previous commit, we regressed a couple of
tests, so it's nice to be able to see all the failures with a single
run of the suite.
2010-05-28 08:04:13 -07:00

10 lines
283 B
Bash
Executable file

#!/bin/sh
for test in *.c; do
echo "Testing $test"
../glcpp < $test > $test.glcpp
grep -v '^$' < $test.glcpp > $test.out || true
gcc -E $test -o $test.gcc
grep -v '^#' < $test.gcc | grep -v '^$' > $test.expected || true
diff -u $test.expected $test.out
done