about summary refs log tree commit diff stats
path: root/subx/test_apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-05-18 00:00:18 -0700
committerKartik Agaram <vc@akkartik.com>2019-05-18 00:45:12 -0700
commit83c67014034bbf9072d7e4555b0e51e815a95756 (patch)
treecf52127783efc20bbe8d903d96e73bc51a1f752d /subx/test_apps
parent4b506b630ce28b3574a9f903904588f92dd3a1c1 (diff)
downloadmu-83c67014034bbf9072d7e4555b0e51e815a95756.tar.gz
switch to new syntax for segment headers in C++
Diffstat (limited to 'subx/test_apps')
-rwxr-xr-xsubx/test_apps14
1 files changed, 7 insertions, 7 deletions
diff --git a/subx/test_apps b/subx/test_apps
index 2164d1cf..3001940f 100755
--- a/subx/test_apps
+++ b/subx/test_apps
@@ -12,7 +12,7 @@ CFLAGS=$CFLAGS ./build
 
 echo ex1
 ./subx translate examples/ex1.subx  -o examples/ex1
-git diff --exit-code examples/ex1
+[ "$1" != record ]  &&  git diff --exit-code examples/ex1
 ./subx run examples/ex1  ||  ret=$?
 test $ret -eq 42  # life, the universe and everything
 test `uname` = 'Linux'  &&  {
@@ -22,7 +22,7 @@ test `uname` = 'Linux'  &&  {
 
 echo ex2
 ./subx translate examples/ex2.subx  -o examples/ex2
-git diff --exit-code examples/ex2
+[ "$1" != record ]  &&  git diff --exit-code examples/ex2
 ./subx run examples/ex2  ||  ret=$?
 test $ret -eq 2  # 1 + 1
 test `uname` = 'Linux'  &&  {
@@ -32,7 +32,7 @@ test `uname` = 'Linux'  &&  {
 
 echo ex3
 ./subx translate examples/ex3.subx  -o examples/ex3
-git diff --exit-code examples/ex3
+[ "$1" != record ]  &&  git diff --exit-code examples/ex3
 ./subx run examples/ex3  ||  ret=$?
 test $ret -eq 55  # 1 + 2 + ... + 10
 test `uname` = 'Linux'  &&  {
@@ -42,7 +42,7 @@ test `uname` = 'Linux'  &&  {
 
 echo ex4
 ./subx translate examples/ex4.subx  -o examples/ex4
-git diff --exit-code examples/ex4
+[ "$1" != record ]  &&  git diff --exit-code examples/ex4
 echo a | ./subx run examples/ex4 >ex4.out  ||  true
 test `cat ex4.out` = 'a'
 test `uname` = 'Linux'  &&  {
@@ -52,7 +52,7 @@ test `uname` = 'Linux'  &&  {
 
 echo ex5
 ./subx translate examples/ex5.subx  -o examples/ex5
-git diff --exit-code examples/ex5
+[ "$1" != record ]  &&  git diff --exit-code examples/ex5
 echo a | ./subx run examples/ex5 >ex5.out  ||  true
 test `cat ex5.out` = 'a'
 test `uname` = 'Linux'  &&  {
@@ -62,7 +62,7 @@ test `uname` = 'Linux'  &&  {
 
 echo ex6
 ./subx translate examples/ex6.subx  -o examples/ex6
-git diff --exit-code examples/ex6
+[ "$1" != record ]  &&  git diff --exit-code examples/ex6
 ./subx run examples/ex6 >ex6.out  ||  true
 test "`cat ex6.out`" = 'Hello, world!'
 test `uname` = 'Linux'  &&  {
@@ -72,7 +72,7 @@ test `uname` = 'Linux'  &&  {
 
 echo ex7
 ./subx translate examples/ex7.subx  -o examples/ex7
-git diff --exit-code examples/ex7
+[ "$1" != record ]  &&  git diff --exit-code examples/ex7
 ./subx run examples/ex7  ||  ret=$?
 test $ret -eq 97  # 'a'
 test `uname` = 'Linux'  &&  {