mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
This is a fresh start with a much simpler approach for the flex/bison portions of the preprocessor. This isn't functional yet, (produces no output), but can at least read all of our test cases without any parse errors. The grammar here is based on the grammar provided for the preprocessor in the C99 specification.
12 lines
300 B
Bash
Executable file
12 lines
300 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
|
|
# diff -B -u $test.expected $test.out
|
|
done
|