about summary refs log tree commit diff stats
path: root/subx/test_layers
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-10 22:21:26 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-10 22:22:48 -0700
commit80b6f47e642fe8e5cac1836ef616a1ae1b3aa269 (patch)
treeb1814b09d30c7c6cb4f27579993be3277e4f551a /subx/test_layers
parent7c39778633d5b89c84c18ff6fc509dde3b3facf5 (diff)
downloadmu-80b6f47e642fe8e5cac1836ef616a1ae1b3aa269.tar.gz
4682 - subx: start testing all layers of 'library'
Diffstat (limited to 'subx/test_layers')
-rwxr-xr-xsubx/test_layers10
1 files changed, 10 insertions, 0 deletions
diff --git a/subx/test_layers b/subx/test_layers
index bd1d8b33..51fa905f 100755
--- a/subx/test_layers
+++ b/subx/test_layers
@@ -1,11 +1,21 @@
 #!/bin/bash
 # Repeatedly stop building until successive layers, and run all tests built.
+#
+# Assumes .subx files all come after .cc files.
 
 set -e
 
 cd `dirname $0`
+# add C++ files one at a time
 for f in [0-9]*cc
 do
   echo "=== $f"
   ./build_and_test_until $f  ||  exit 1
 done
+
+# add SubX files one at a time
+for f in [0-9]*.subx
+do
+  echo "=== $f"
+  CFLAGS=-g ./subx translate $(../enumerate/enumerate --until $f |grep '\.subx$') -o foo  &&  ./subx run foo
+done