From 07b3db4d4b91c5d43fc7f68683710b9b54e3cb85 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 30 Aug 2010 02:58:16 -0400 Subject: [PATCH] Regression test featuring pass.i. --- .gitignore | 1 + pit/CATALOG | 9 ++++++--- pit/Makefile | 4 ++++ pit/pass.chk | 8 ++++++++ pit/pass.tst | 5 +++++ 5 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 pit/pass.chk create mode 100644 pit/pass.tst diff --git a/.gitignore b/.gitignore index e13bd9f..70ef795 100644 --- a/.gitignore +++ b/.gitignore @@ -57,6 +57,7 @@ pit/lib/syslib6 pit/lib/syslib7 pit/life pit/life2 +pit/pass pit/pi pit/pow pit/primes diff --git a/pit/CATALOG b/pit/CATALOG index 1916014..a5ee9ee 100644 --- a/pit/CATALOG +++ b/pit/CATALOG @@ -145,9 +145,12 @@ by Alex Smith continuation.doc About usage and internals of the continuation library by Malcom Ryan - tests/testonce.i + A single-threaded program testing ONCE and AGAIN - pass.i A multithread program illustrating communications - between threads + tests/testonce.i + A single-threaded program that tests all permutations + of the ONCE modifier; the output is simply to verify + that the program flow follows the sequence expected. + pass.i + A multithread program illustrating communications + between threads. Simply reads in a list of + numbers (terminated by ZERO) and writes them out. The programs test16bit.i, testarray.i, testcf.i, testlib2.i, mult.i, limits.*, testops*i, testsplat.i, were all written by Louis diff --git a/pit/Makefile b/pit/Makefile index 864cf0c..c43a8e8 100644 --- a/pit/Makefile +++ b/pit/Makefile @@ -31,6 +31,7 @@ BASE2SOURCES = \ ./pi.i \ ./pow.i \ ./quine \ + ./pass.i \ ./primes.i \ ./random.i \ ./random2.i \ @@ -108,6 +109,7 @@ test: $(TARGETS) @echo 'A man, a plan, a canal, Panama.' | ./rot13b | ./regresscheck rot13b @echo "FIVE" | ./pi | ./regresscheck pi @cat pow.tst | ./pow 2>&1 | ./regresscheck pow + @cat pass.tst | ./pass | ./regresscheck pass @cp quine.i quine.chk; ./quine | ./regresscheck quine; rm quine.chk @cat sort.tst | ./sort | ./regresscheck sort @cat tpk.tst | ./tpk | ./regresscheck tpk @@ -128,6 +130,8 @@ test: $(TARGETS) # Some tests need options to compile extensions. fft: fft.i $(ICK) -m fft.i +pass: pass.i + $(ICK) -m pass.i tests/permute: tests/permute.i $(ICK) -m tests/permute.i tests/whileadd: tests/whileadd.i diff --git a/pit/pass.chk b/pit/pass.chk new file mode 100644 index 0000000..087cd6e --- /dev/null +++ b/pit/pass.chk @@ -0,0 +1,8 @@ + +I + +II + +III + +IV diff --git a/pit/pass.tst b/pit/pass.tst new file mode 100644 index 0000000..720187a --- /dev/null +++ b/pit/pass.tst @@ -0,0 +1,5 @@ +ONE +TWO +THREE +FOUR +ZERO -- 2.43.0