From f7cb87060fd6b1af7d726b6180d8c7f50bb4f142 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 27 Aug 2010 11:20:59 -0400 Subject: [PATCH] New regression test featuring yapp. --- pit/CATALOG | 2 +- pit/Makefile | 4 +++- pit/yapp.tst | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 pit/yapp.tst diff --git a/pit/CATALOG b/pit/CATALOG index eea6564..e211e26 100644 --- a/pit/CATALOG +++ b/pit/CATALOG @@ -83,7 +83,7 @@ By Brian Raiter tests/hello.i + The traditional hello world program ins.i Intersections & Splats, a Mastermind-style game ins.doc Documentation for I&S - yapp.i Prints an INTERCAL program that prints + yapp.i + Prints an INTERCAL program that prints yapp.doc Description of yapp.i quine.i + Prints itself lib/floatlib.i Floating-point routines diff --git a/pit/Makefile b/pit/Makefile index 53c8ad3..ef72812 100644 --- a/pit/Makefile +++ b/pit/Makefile @@ -36,7 +36,6 @@ BASE2SOURCES = \ ./rot13b.i \ ./sample.i \ ./sort.i \ - ./tpk.i \ ./tests/hello.i \ ./tests/iogerunds.i \ ./tests/limits.i \ @@ -49,6 +48,7 @@ BASE2SOURCES = \ ./tests/testcf.i \ ./tests/testlib2.i \ ./tests/testsplat.i \ + ./tpk.i \ ./yapp.i BASENSOURCES = \ @@ -99,6 +99,7 @@ test: $(TARGETS) @cp quine.i quine.chk; ./quine | ./regresscheck quine; rm quine.chk @cat sort.tst | ./sort | ./regresscheck sort @cat tpk.tst | ./tpk | ./regresscheck tpk + @cat yapp.tst | yapp >yapptest.i && $(ICK) yapptest.i && yapptest | regresscheck -c yapp.tst yapp; rm -f yapptest.i yapptest @./tests/count | ./regresscheck tests/count @./tests/hello | ./regresscheck tests/hello @./tests/permute | ./regresscheck tests/permute @@ -107,6 +108,7 @@ test: $(TARGETS) @cat tests/test2.tst | ./tests/test2 | ./regresscheck tests/test2 @echo "Tests complete." + # Needs special handling because the -m option is required tests/permute: tests/permute.i $(ICK) -m tests/permute.i diff --git a/pit/yapp.tst b/pit/yapp.tst new file mode 100644 index 0000000..918beff --- /dev/null +++ b/pit/yapp.tst @@ -0,0 +1 @@ +THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG. -- 2.43.0