5ae88af988
Rather than using the (munged) output of "gcc -E" we now capture precisely the output we expect from every test case. This allows us to stay immune from strange output from gcc (unpredictable whitespace output---aprticularly with different gcc versions). This will also allow us to write tests that capture expected error messages from the preprocessor as well.
8 lines
131 B
Bash
Executable File
8 lines
131 B
Bash
Executable File
#!/bin/sh
|
|
|
|
for test in *.c; do
|
|
echo "Testing $test"
|
|
../glcpp < $test > $test.out
|
|
diff -u $test.expected $test.out
|
|
done
|