mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
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.
10 lines
283 B
Bash
Executable file
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
|