about summary refs log tree commit diff stats
path: root/test_apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-12-28 12:09:36 -0800
committerKartik Agaram <vc@akkartik.com>2020-12-28 12:14:15 -0800
commit2107d5f1f1b7dd27040685c0ebdbe2a199ad91d3 (patch)
tree9130c09c1372c89f28d1089f495e298353a63b96 /test_apps
parenta51af593b01ca655605c896b03b27bbb8d3b5e07 (diff)
downloadmu-2107d5f1f1b7dd27040685c0ebdbe2a199ad91d3.tar.gz
7443
A new phase for baremetal compilations. Doesn't work yet, but it passes
all its tests, so we can add it to CI.
Diffstat (limited to 'test_apps')
-rwxr-xr-xtest_apps17
1 files changed, 17 insertions, 0 deletions
diff --git a/test_apps b/test_apps
index eb376356..1d538fa3 100755
--- a/test_apps
+++ b/test_apps
@@ -234,6 +234,23 @@ do
   }
 done
 
+# One phase variant for translating SubX to baremetal. (Other phases are reused.)
+
+for phase in survey_baremetal
+do
+  echo $phase
+  ./bootstrap_bin translate init.linux [01]*.subx apps/subx-params.subx apps/$phase.subx -o apps/$phase
+  test "$1" = 'record'  ||  git diff --exit-code apps/$phase
+  {
+    ./bootstrap_bin run apps/$phase test
+    echo
+  }
+  {
+    apps/$phase test
+    echo
+  }
+done
+
 # Higher-level syntax.
 
 # Certain phases of translation run native beyond this point. We're starting