about summary refs log tree commit diff stats
path: root/subx/test_layers
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-02-15 15:48:16 -0800
committerKartik Agaram <vc@akkartik.com>2019-02-15 15:48:16 -0800
commit445843f27798e371d34d91860b05bbf68fa37223 (patch)
tree51f1b76a05f33dd6e31217ca345d320febdc5fbd /subx/test_layers
parent2dc9b6955b7d2588de65b472d8b9690945ce4107 (diff)
downloadmu-445843f27798e371d34d91860b05bbf68fa37223.tar.gz
4971 - clean up a few scripts
Some of them are no longer useful; drop them.

For the rest, have useful usage messages. And also be a little more principled
in where we introduce CFLAGS, and where we expect it to come in from the
commandline.

I'm choosing not to call gen/run/dgen/drun from test_layers because it
makes test_layers harder for newcomers to read. The scripts aren't the
first thing people should see, they're just useful once you're up and running
hacking on SubX.
Diffstat (limited to 'subx/test_layers')
-rwxr-xr-xsubx/test_layers7
1 files changed, 6 insertions, 1 deletions
diff --git a/subx/test_layers b/subx/test_layers
index 5f210c31..306f5d3a 100755
--- a/subx/test_layers
+++ b/subx/test_layers
@@ -13,9 +13,14 @@ do
   ./build_and_test_until $f
 done
 
+# build everything one last time
+clean
+CFLAGS=$CFLAGS ./build  # build optimized by default since we'll be running it repeatedly below
+
 # 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
+  ./subx translate $(../enumerate/enumerate --until $f |grep '\.subx$') -o foo  &&  ./subx run foo
+  echo
 done