From 3536100e5bf46890fe3bec4826cc5d9dc6cdcaa9 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 26 Aug 2010 13:29:01 -0400 Subject: [PATCH] Add two more regression tests. --- pit/CATALOG | 4 ++-- pit/Makefile | 6 ++++-- pit/tests/test1.chk | 3 +++ pit/tests/test2.chk | 2 ++ pit/tests/test2.tst | 2 ++ 5 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 pit/tests/test1.chk create mode 100644 pit/tests/test2.chk create mode 100644 pit/tests/test2.tst diff --git a/pit/CATALOG b/pit/CATALOG index 0ddd8cd..9480278 100644 --- a/pit/CATALOG +++ b/pit/CATALOG @@ -113,8 +113,8 @@ The subdirectory tests contains some programs written only to test the compiler. by David Moews - tests/test1.i Prints DO THIS TEST HAS BEEN SUCCESSFULLY COMPLETED - tests/test2.i Reads in two numbers and multiplies their product + tests/test1.i + Prints DO THIS TEST HAS BEEN SUCCESSFULLY COMPLETED + tests/test2.i + Reads in two numbers and reports their product by Alex Smith tests/ais1.i A very simple test program diff --git a/pit/Makefile b/pit/Makefile index 1cc7019..3189a78 100644 --- a/pit/Makefile +++ b/pit/Makefile @@ -37,15 +37,15 @@ BASE2SOURCES = \ ./sort.i \ ./tests/hello.i \ ./tests/iogerunds.i \ + ./tests/limits.i \ ./tests/permute.i \ ./tests/sink.i \ ./tests/test1.i \ - ./tests/limits.i \ ./tests/test16bit.i \ + ./tests/test2.i \ ./tests/testarray.i \ ./tests/testcf.i \ ./tests/testlib2.i \ - ./tests/test2.i \ ./tests/testsplat.i \ ./yapp.i @@ -97,6 +97,8 @@ test: $(TARGETS) @tests/hello | regresscheck tests/hello @tests/permute | regresscheck tests/permute @tests/sink 2>&1 | regresscheck tests/sink + @tests/test1 2>&1 | regresscheck tests/test1 + @cat tests/test2.tst | tests/test2 | regresscheck tests/test2 @echo "Tests complete." # Needs special handling because the -m option is required diff --git a/pit/tests/test1.chk b/pit/tests/test1.chk new file mode 100644 index 0000000..a14d9b6 --- /dev/null +++ b/pit/tests/test1.chk @@ -0,0 +1,3 @@ +ICL000I DO THIS TEST HAS BEEN SUCCESSFULLY COMPLETED + ON THE WAY TO 67 + CORRECT SOURCE AND RESUBNIT diff --git a/pit/tests/test2.chk b/pit/tests/test2.chk new file mode 100644 index 0000000..f5a93cf --- /dev/null +++ b/pit/tests/test2.chk @@ -0,0 +1,2 @@ + +XXXV diff --git a/pit/tests/test2.tst b/pit/tests/test2.tst new file mode 100644 index 0000000..2f98eed --- /dev/null +++ b/pit/tests/test2.tst @@ -0,0 +1,2 @@ +FIVE +SEVEN -- 2.43.0