about summary refs log tree commit diff stats
path: root/test_apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-09-19 00:33:21 -0700
committerKartik Agaram <vc@akkartik.com>2019-09-19 00:33:21 -0700
commit6ecddbaa92289fc6cbd3016b24c09db24cf1f2c2 (patch)
tree8271be5f95688b407b8fdb17ea3e04121cc19c63 /test_apps
parent368212b1c315a800abc6c1dedeec09774ebe623f (diff)
downloadmu-6ecddbaa92289fc6cbd3016b24c09db24cf1f2c2.tar.gz
5666 - start of sugar for structured control flow
Diffstat (limited to 'test_apps')
-rwxr-xr-xtest_apps27
1 files changed, 19 insertions, 8 deletions
diff --git a/test_apps b/test_apps
index a10538d1..29bd6075 100755
--- a/test_apps
+++ b/test_apps
@@ -309,14 +309,9 @@ test `uname` = 'Linux'  &&  {
   echo
 }
 
-# Only native runs beyond this point. We start using syntax that the emulator
-# doesn't support.
-test $EMULATED  &&  echo "skipping remaining runs in emulated mode"
-test $NATIVE  ||  exit 0
-
 echo calls
-cat 0*.subx apps/subx-common.subx apps/calls.subx  |  apps/sigils  > a.sigils
-./subx translate init.$OS a.sigils -o apps/calls
+cat init.$OS 0*.subx apps/subx-common.subx apps/calls.subx  |  apps/sigils  > a.sigils
+./subx translate a.sigils -o apps/calls
 [ "$1" != record ]  &&  git diff --exit-code apps/calls
 ./subx run apps/calls test
 echo
@@ -325,6 +320,22 @@ test `uname` = 'Linux'  &&  {
   echo
 }
 
+echo braces
+cat init.$OS 0*.subx apps/subx-common.subx apps/braces.subx  |  apps/calls  |  apps/sigils  > a.sigils
+./subx translate a.sigils -o apps/braces
+[ "$1" != record ]  &&  git diff --exit-code apps/braces
+./subx run apps/braces test
+echo
+test `uname` = 'Linux'  &&  {
+  apps/braces test
+  echo
+}
+
+# Only native runs beyond this point. We start using syntax that the emulator
+# doesn't support.
+test $EMULATED  &&  echo "skipping remaining runs in emulated mode"
+test $NATIVE  ||  exit 0
+
 echo "== translating using SubX"
 
 # example programs
@@ -347,7 +358,7 @@ done
 
 # Phases of the self-hosted SubX translator.
 
-for app in hex survey pack assort dquotes tests sigils calls
+for app in hex survey pack assort dquotes tests sigils calls braces
 do
   echo $app
   ./ntranslate init.$OS 0*.subx apps/subx-common.subx apps/$app.subx