]> thyrsus.com Git - intercal.git/commitdiff
Add two more regression tests.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 26 Aug 2010 17:29:01 +0000 (13:29 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 26 Aug 2010 17:29:01 +0000 (13:29 -0400)
pit/CATALOG
pit/Makefile
pit/tests/test1.chk [new file with mode: 0644]
pit/tests/test2.chk [new file with mode: 0644]
pit/tests/test2.tst [new file with mode: 0644]

index 0ddd8cd2fc74d33d23c63d25efada23bfb0295a1..948027897f8988673606162d60ea8026b3e309b0 100644 (file)
@@ -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
index 1cc701975f55710acd2b74c10a0bbd9e00f07ecb..3189a7887d6d6ea91bf1f562d4e14c6f03638061 100644 (file)
@@ -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 (file)
index 0000000..a14d9b6
--- /dev/null
@@ -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 (file)
index 0000000..f5a93cf
--- /dev/null
@@ -0,0 +1,2 @@
+    
+XXXV
diff --git a/pit/tests/test2.tst b/pit/tests/test2.tst
new file mode 100644 (file)
index 0000000..2f98eed
--- /dev/null
@@ -0,0 +1,2 @@
+FIVE
+SEVEN