mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
So far the only expression implemented is a single integer literal, but obviously that's easy to extend. Various things including nesting are tested here.
9 lines
210 B
Bash
Executable file
9 lines
210 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 -B -u $test.expected $test.out
|
|
done
|