about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-01-19 17:52:25 -0800
committerKartik Agaram <vc@akkartik.com>2020-01-19 17:52:25 -0800
commitab837e8f6c701eec9bf86e1e4d506c08e02cad6c (patch)
tree57e0f5fa96446288bc4ea30f336cf018fbc1aab9
parent622f1be099f434f89819876d1931f80c1a3e47e7 (diff)
downloadmu-ab837e8f6c701eec9bf86e1e4d506c08e02cad6c.tar.gz
5899
-rwxr-xr-xtools/treeshake_all13
-rwxr-xr-xtools/treeshake_translate2
2 files changed, 11 insertions, 4 deletions
diff --git a/tools/treeshake_all b/tools/treeshake_all
index 614b106a..58efcf1a 100755
--- a/tools/treeshake_all
+++ b/tools/treeshake_all
@@ -28,11 +28,18 @@ echo "== testing treeshaken binaries"
 for app in factorial crenshaw2-1 crenshaw2-1b
 do
   echo $app
-  tools/test_treeshake_translate init.$OS 0*.subx apps/$app.subx
+  tools/test_treeshake_translate init.$OS 0[0-8]*.subx apps/$app.subx
   diff apps/$app a.elf
 done
 
-for app in hex survey pack assort dquotes tests sigils calls braces
+for app in hex survey pack assort dquotes tests
+do
+  echo $app
+  tools/test_treeshake_translate init.$OS 0[0-8]*.subx apps/subx-params.subx apps/$app.subx
+  diff apps/$app a.elf
+done
+
+for app in sigils calls braces
 do
   echo $app
   tools/test_treeshake_translate init.$OS 0*.subx apps/subx-params.subx apps/$app.subx
@@ -40,5 +47,5 @@ do
 done
 
 echo mu.subx
-tools/test_treeshake_translate init.$OS 0*.subx apps/mu.subx
+tools/test_treeshake_translate init.$OS [0-9]*.subx apps/mu.subx
 diff apps/mu a.elf
diff --git a/tools/treeshake_translate b/tools/treeshake_translate
index ba80dea0..36fcf7c6 100755
--- a/tools/treeshake_translate
+++ b/tools/treeshake_translate
@@ -5,4 +5,4 @@ set -e
 
 grep -vh '^\s*#\|^\s*$' $*  > a.in
 cat a.in  |tools/treeshake  > a.treeshake
-./ntranslate a.treeshake
+./translate_subx a.treeshake
n196' href='#n196'>196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233