projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcb3a28
)
glcpp-test: Capture the stderr output of the preprocessor.
author
Carl Worth
<cworth@cworth.org>
Wed, 11 Aug 2010 20:06:36 +0000
(13:06 -0700)
committer
Carl Worth
<cworth@cworth.org>
Wed, 11 Aug 2010 21:38:03 +0000
(14:38 -0700)
This allows writing tests that verify diagnostics from the preprocessor.
src/glsl/glcpp/tests/glcpp-test
patch
|
blob
|
history
diff --git
a/src/glsl/glcpp/tests/glcpp-test
b/src/glsl/glcpp/tests/glcpp-test
index 2dca848b4a1006be2031064b1b34a2a0ec95d936..6494d0c0e779d63fbcc822774eea42a04c491949 100755
(executable)
--- a/
src/glsl/glcpp/tests/glcpp-test
+++ b/
src/glsl/glcpp/tests/glcpp-test
@@
-9,7
+9,7
@@
clean=0
echo "====== Testing for correctness ======"
for test in *.c; do
echo -n "Testing $test..."
- ../glcpp < $test > $test.out
+ ../glcpp < $test > $test.out
2>&1
total=$((total+1))
if cmp $test.expected $test.out >/dev/null 2>&1; then
echo "PASS"