mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
With this change, we can recreate the original text-line input exactly. Previously we were inserting a space between every pair of tokens so our output had a lot more whitespace than our input. With this change, we can drop the "-b" option to diff and match the input exactly.
13 lines
344 B
Bash
Executable file
13 lines
344 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
echo "Caution: These results are just verifying parse-ability, not correctness!"
|
|
|
|
for test in *.c; do
|
|
echo "Testing $test"
|
|
../glcpp < $test > $test.out
|
|
gcc -E $test -o $test.gcc
|
|
# grep -v '^#' < $test.gcc > $test.expected
|
|
grep -v '^[ ]*#' < $test > $test.expected
|
|
diff -u $test.expected $test.out
|
|
done
|