diff options
author | Carl Worth <cworth@cworth.org> | 2010-05-10 16:21:10 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-05-10 16:21:10 -0700 |
commit | e8c790b3ceab06eb0433c3a234d3e16980f7ef19 (patch) | |
tree | 1513d85cfb33696fa88726b42e2a5623df079abc /Makefile | |
parent | 0b27b5f05191f07ed31e65ff07e5233672f3c33a (diff) |
Add a very simple test for the pre-processor.
Validate desired test cases by ensuring the output of glcpp matches
the output of the gcc preprocessor, (ignoring any lines of the gcc
output beginning with '#').
Only one test case so far with a trivial #define.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,5 +10,9 @@ glcpp: glcpp.o glcpp-lex.o glcpp-parse.o hash_table.o glcpp-lex.c: glcpp-parse.h +test: + @(cd tests; ./glcpp-test) + clean: rm -f glcpp-lex.c glcpp-parse.c *.o *~ + rm -f tests/*.out tests/*.gcc tests/*.expected |