diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-11-23 00:28:16 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-11-23 00:42:30 -0800 |
commit | d373c008b3ef54845175db7b8e8319d750a5b7bf (patch) | |
tree | 08daa8370d16d82770f3b72580c8e8a254cafde5 /subx/test_apps | |
parent | 886630e9376d0f8198117aac3c0d83938bb2c1c6 (diff) | |
download | mu-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-x | subx/test_apps | 4 |
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 |