mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
glcpp-test: Capture the stderr output of the preprocessor.
This allows writing tests that verify diagnostics from the preprocessor.
This commit is contained in:
parent
dcb3a2899e
commit
2bcff4c879
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ clean=0
|
||||||
echo "====== Testing for correctness ======"
|
echo "====== Testing for correctness ======"
|
||||||
for test in *.c; do
|
for test in *.c; do
|
||||||
echo -n "Testing $test..."
|
echo -n "Testing $test..."
|
||||||
../glcpp < $test > $test.out
|
../glcpp < $test > $test.out 2>&1
|
||||||
total=$((total+1))
|
total=$((total+1))
|
||||||
if cmp $test.expected $test.out >/dev/null 2>&1; then
|
if cmp $test.expected $test.out >/dev/null 2>&1; then
|
||||||
echo "PASS"
|
echo "PASS"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue