summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-25 15:24:59 -0700
committerCarl Worth <cworth@cworth.org>2010-05-25 15:24:59 -0700
commitae6517f4a83981ae363bbbfe439ec23e8deb04b1 (patch)
tree317cb39be3fc40c3a62ff930c4f4566313c09559 /tests
parent9fb8b7a495c9dc6f9a62cf82300fae5925af92fc (diff)
Implement expansion of object-like macros.
For this we add an "active" string_list_t to the parser. This makes the current expansion_list_t in the parser obsolete, but we don't remove that yet. With this change we can now start passing some actual tests, so we turn on real testing in the test suite again. I expect to implement things more or less in the same order as before, so the test suite now halts on first error. With this change the first 8 tests in the suite pass, (object-like macros with chaining and recursion).
Diffstat (limited to 'tests')
-rwxr-xr-xtests/glcpp-test5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/glcpp-test b/tests/glcpp-test
index 8074e47119..6304155210 100755
--- a/tests/glcpp-test
+++ b/tests/glcpp-test
@@ -1,13 +1,10 @@
#!/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
+ grep -v '^#' < $test.gcc > $test.expected
diff -u $test.expected $test.out
done