mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
Validate desired test cases by ensuring the output of glcpp matches the output of the gcc preprocessor, (ignoring any lines of the gcc output beginning with '#'). Only one test case so far with a trivial #define.
9 lines
207 B
Bash
Executable file
9 lines
207 B
Bash
Executable file
#!/bin/sh
|
|
|
|
for test in *.c; do
|
|
echo "Testing $test"
|
|
../glcpp < $test > $test.out
|
|
gcc -E $test -o $test.gcc
|
|
grep -v '^#' < $test.gcc > $test.expected
|
|
diff -u $test.expected $test.out
|
|
done
|