about summary refs log tree commit diff stats
path: root/test_layers
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-08-02 17:32:01 -0700
committerKartik Agaram <vc@akkartik.com>2020-08-02 17:32:01 -0700
commitecc31a492825cd2e6ac5d64ee0a9cd22d248e83c (patch)
tree2f9adda2eef1a6e1e7cd8a3739b8a679b2456f9c /test_layers
parent89c9ed80f9f7f4d4d40fea44c6e08362cfde50c7 (diff)
downloadmu-ecc31a492825cd2e6ac5d64ee0a9cd22d248e83c.tar.gz
6707
Diffstat (limited to 'test_layers')
-rwxr-xr-xtest_layers35
1 files changed, 32 insertions, 3 deletions
diff --git a/test_layers b/test_layers
index 09d1e593..c2d882e6 100755
--- a/test_layers
+++ b/test_layers
@@ -9,7 +9,7 @@ cd `dirname $0`
 # add C++ files one at a time
 for f in [0-9]*cc
 do
-  echo "=== $f"
+  echo "=== bootstrap $f"
   ./build_and_test_until $f
 done
 
@@ -17,10 +17,10 @@ done
 ./clean
 ./build  # build optimized since we'll be running it repeatedly below
 
-# test pure-SubX files (without syntax sugar) one at a time
+# test pure-SubX files (without syntax sugar) one at a time using bootstrap
 for f in [012]*.subx
 do
-  echo "=== $f"
+  echo "=== bootstrap $f"
   ./bootstrap translate init.linux $(tools/enumerate --until $f |grep '\.subx$') -o a.elf
   ./bootstrap run a.elf test
   echo
@@ -30,3 +30,32 @@ do
     echo
   } || true
 done
+
+# test all SubX files one at a time using the self-hosted translator
+for f in [0-9]*.subx
+do
+  echo "=== self-hosted $f"
+  ./translate_subx init.linux $(tools/enumerate --until $f |grep '\.subx$')
+  ./bootstrap run a.elf test
+  echo
+  test `uname` = 'Linux'  &&  {
+    chmod +x a.elf
+    ./a.elf test
+    echo
+  } || true
+done
+
+# test all Mu files one at a time using the self-hosted translator
+for f in [0-9]*.mu
+do
+  echo "=== self-hosted $f"
+  cat $(tools/enumerate --until $f |grep '\.mu$')  |apps/mu  > a.subx
+  ./translate_subx init.linux [0-9]*.subx a.subx
+  ./bootstrap run a.elf test
+  echo
+  test `uname` = 'Linux'  &&  {
+    chmod +x a.elf
+    ./a.elf test
+    echo
+  } || true
+done
2021-06-26 20:55:36 -0700 html: better highlighting for int registers' href='/akkartik/mu/commit/html/ex3.mu.html?h=hlt&id=372367f59a897162912d0646158bdea1e07d6e66'>372367f5 ^
7b109ab6 ^
































3350c34a ^
7b109ab6 ^




a8fb537a ^
7b109ab6 ^
a8fb537a ^
7b109ab6 ^
a8fb537a ^
7b109ab6 ^



a8fb537a ^
dd60caa3 ^

7b109ab6 ^
372367f5 ^
7b109ab6 ^

535fe9ac ^
3350c34a ^
535fe9ac ^
7b109ab6 ^

3350c34a ^

7b109ab6 ^







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95