From: Peter Verthez Date: Sun, 2 Dec 2001 09:26:49 +0000 (+0000) Subject: More automatic testing of lexers. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=479f49e5a0cfe09f8600c6c6cacd3a0fb86ffe2d;p=gedcom-parse.git More automatic testing of lexers. --- diff --git a/Makefile b/Makefile index d720e8c..ac01d39 100644 --- a/Makefile +++ b/Makefile @@ -40,24 +40,33 @@ clean: # Lexer test programs -test_1byte: lex.gedcom_1byte_.test.o message.o encoding.o +lexer_1byte: lex.gedcom_1byte_.test.o message.o encoding.o $(CC) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@ lex.gedcom_1byte_.test.o: lex.gedcom_1byte_.c $(CC) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $^ -o $@ -test_hilo: lex.gedcom_hilo_.test.o message.o encoding.o +test_1byte: lexer_1byte + cat t/allged.ged | ./lexer_1byte + +lexer_hilo: lex.gedcom_hilo_.test.o message.o encoding.o $(CC) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@ lex.gedcom_hilo_.test.o: lex.gedcom_hilo_.c $(CC) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $^ -o $@ -test_lohi: lex.gedcom_lohi_.test.o message.o encoding.o +test_hilo: lexer_hilo + cat t/uhlcl.ged | ./lexer_hilo + +lexer_lohi: lex.gedcom_lohi_.test.o message.o encoding.o $(CC) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@ lex.gedcom_lohi_.test.o: lex.gedcom_lohi_.c $(CC) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $^ -o $@ +test_lohi: lexer_lohi + cat t/ulhcl.ged | ./lexer_lohi + # Test of parser test: all