about summary refs log tree commit diff stats
path: root/subx/test_apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-11-23 00:28:16 -0800
committerKartik Agaram <vc@akkartik.com>2018-11-23 00:42:30 -0800
commitd373c008b3ef54845175db7b8e8319d750a5b7bf (patch)
tree08daa8370d16d82770f3b72580c8e8a254cafde5 /subx/test_apps
parent886630e9376d0f8198117aac3c0d83938bb2c1c6 (diff)
downloadmu-d373c008b3ef54845175db7b8e8319d750a5b7bf.tar.gz
4763 - back to the 'trivial' crenshaw2-1 compiler
This time I've ported (and test-driven) 'GetChar' and 'GetNum'. The new
tests bring together our new testable interfaces for read() and exit().
Diffstat (limited to 'subx/test_apps')
-rwxr-xr-xsubx/test_apps4
1 files changed, 4 insertions, 0 deletions
diff --git a/subx/test_apps b/subx/test_apps
index 337b6866..75bdc6b5 100755
--- a/subx/test_apps
+++ b/subx/test_apps
@@ -145,9 +145,13 @@ CFLAGS=-g ./subx translate *.subx apps/crenshaw2-1.subx  -o apps/crenshaw2-1
 [ "$1" != record ]  &&  git diff --quiet apps/crenshaw2-1
 CFLAGS=-g ./subx run apps/crenshaw2-1 2>crenshaw2-1.out  ||  true
 test "`cat crenshaw2-1.out`" = 'Error: integer expected'
+CFLAGS=-g ./subx run apps/crenshaw2-1 test
+echo
 test `uname` = 'Linux'  &&  {
   apps/crenshaw2-1 2>crenshaw2-1.out  ||  true
   test "`cat crenshaw2-1.out`" = 'Error: integer expected'
+  apps/crenshaw2-1 test
+  echo
 }
 
 exit 0