diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-09-11 19:04:49 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-09-11 19:53:23 -0700 |
commit | ecfbbfb5b58aaba9f9265cb13b9fb4a914bdcf37 (patch) | |
tree | 486cd5f4ee75323b5c733912c7a58501d65b0325 /test_apps | |
parent | 4d53de8afa0d44e29d3caeb01ccdd02bc2e4cd70 (diff) | |
download | mu-ecfbbfb5b58aaba9f9265cb13b9fb4a914bdcf37.tar.gz |
5647 - experimental support for swapping OS
Diffstat (limited to 'test_apps')
-rwxr-xr-x | test_apps | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/test_apps b/test_apps index b5659aef..b19c837e 100755 --- a/test_apps +++ b/test_apps @@ -26,7 +26,7 @@ echo "== translating and running using C++" # example programs echo ex1 -./subx translate examples/ex1.subx -o examples/ex1 +./subx translate 049init.linux examples/ex1.subx -o examples/ex1 test "$1" = 'record' || git diff --exit-code examples/ex1 test $EMULATED && { ./subx run examples/ex1 || ret=$? @@ -38,7 +38,7 @@ test $NATIVE && { } echo ex2 -./subx translate examples/ex2.subx -o examples/ex2 +./subx translate 049init.linux examples/ex2.subx -o examples/ex2 test "$1" = 'record' || git diff --exit-code examples/ex2 test $EMULATED && { ./subx run examples/ex2 || ret=$? @@ -50,7 +50,7 @@ test $NATIVE && { } echo ex3 -./subx translate examples/ex3.subx -o examples/ex3 +./subx translate 049init.linux examples/ex3.subx -o examples/ex3 test "$1" = 'record' || git diff --exit-code examples/ex3 test $EMULATED && { ./subx run examples/ex3 || ret=$? @@ -62,7 +62,7 @@ test $NATIVE && { } echo ex4 -./subx translate examples/ex4.subx -o examples/ex4 +./subx translate 049init.linux examples/ex4.subx -o examples/ex4 test "$1" = 'record' || git diff --exit-code examples/ex4 test $EMULATED && { echo a | ./subx run examples/ex4 >ex4.out || true @@ -74,7 +74,7 @@ test $NATIVE && { } echo ex5 -./subx translate examples/ex5.subx -o examples/ex5 +./subx translate 049init.linux examples/ex5.subx -o examples/ex5 test "$1" = 'record' || git diff --exit-code examples/ex5 test $EMULATED && { echo a | ./subx run examples/ex5 >ex5.out || true @@ -86,7 +86,7 @@ test $NATIVE && { } echo ex6 -./subx translate examples/ex6.subx -o examples/ex6 +./subx translate 049init.linux examples/ex6.subx -o examples/ex6 test "$1" = 'record' || git diff --exit-code examples/ex6 test $EMULATED && { ./subx run examples/ex6 >ex6.out || true @@ -98,7 +98,7 @@ test $NATIVE && { } echo ex7 -./subx translate examples/ex7.subx -o examples/ex7 +./subx translate 049init.linux examples/ex7.subx -o examples/ex7 test "$1" = 'record' || git diff --exit-code examples/ex7 test $EMULATED && { ./subx run examples/ex7 || ret=$? @@ -110,7 +110,7 @@ test $NATIVE && { } echo ex8 -./subx translate examples/ex8.subx -o examples/ex8 +./subx translate 049init.linux examples/ex8.subx -o examples/ex8 test "$1" = 'record' || git diff --exit-code examples/ex8 test $EMULATED && { ./subx run examples/ex8 abcd || ret=$? @@ -122,7 +122,7 @@ test $NATIVE && { } echo ex9 -./subx translate examples/ex9.subx -o examples/ex9 +./subx translate 049init.linux examples/ex9.subx -o examples/ex9 test "$1" = 'record' || git diff --exit-code examples/ex9 test $EMULATED && { ./subx run examples/ex9 z x || ret=$? @@ -134,7 +134,7 @@ test $NATIVE && { } echo ex10 -./subx translate examples/ex10.subx -o examples/ex10 +./subx translate 049init.linux examples/ex10.subx -o examples/ex10 test "$1" = 'record' || git diff --exit-code examples/ex10 test $EMULATED && { ./subx run examples/ex10 abc abc || ret=$? @@ -148,7 +148,7 @@ test $NATIVE && { } echo ex11 -./subx translate examples/ex11.subx -o examples/ex11 +./subx translate 049init.linux examples/ex11.subx -o examples/ex11 test "$1" = 'record' || git diff --exit-code examples/ex11 test $EMULATED && { ./subx run examples/ex11 @@ -160,7 +160,7 @@ test $NATIVE && { } echo ex12 -./subx translate examples/ex12.subx -o examples/ex12 +./subx translate 049init.linux examples/ex12.subx -o examples/ex12 test "$1" = 'record' || git diff --exit-code examples/ex12 test $EMULATED && ./subx run examples/ex12 # final byte of mmap'd address is well-nigh guaranteed to be 0 test $NATIVE && examples/ex12 @@ -168,7 +168,7 @@ test $NATIVE && examples/ex12 # Larger apps that use the standard library. echo factorial -./subx translate 0*.subx apps/factorial.subx -o apps/factorial +./subx translate 049init.linux 0*.subx apps/factorial.subx -o apps/factorial test "$1" = 'record' || git diff --exit-code apps/factorial test $EMULATED && { ./subx run apps/factorial || ret=$? @@ -184,7 +184,7 @@ test $NATIVE && { } echo crenshaw2-1 -./subx translate 0*.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1 +./subx translate 049init.linux 0*.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1 test "$1" = 'record' || git diff --exit-code apps/crenshaw2-1 test $EMULATED && { ./subx run apps/crenshaw2-1 test @@ -196,7 +196,7 @@ test $NATIVE && { } echo crenshaw2-1b -./subx translate 0*.subx apps/crenshaw2-1b.subx -o apps/crenshaw2-1b +./subx translate 049init.linux 0*.subx apps/crenshaw2-1b.subx -o apps/crenshaw2-1b test "$1" = 'record' || git diff --exit-code apps/crenshaw2-1b test $EMULATED && { ./subx run apps/crenshaw2-1b test @@ -208,7 +208,7 @@ test $NATIVE && { } echo handle -./subx translate 0*.subx apps/handle.subx -o apps/handle +./subx translate 049init.linux 0*.subx apps/handle.subx -o apps/handle test "$1" = 'record' || git diff --exit-code apps/handle test $EMULATED && { ./subx run apps/handle > handle.out 2>&1 || true @@ -224,7 +224,7 @@ test $NATIVE && { # Phases of the self-hosted SubX translator. echo hex -./subx translate 0*.subx apps/subx-common.subx apps/hex.subx -o apps/hex +./subx translate 049init.linux 0*.subx apps/subx-common.subx apps/hex.subx -o apps/hex test "$1" = 'record' || git diff --exit-code apps/hex test $EMULATED && { ./subx run apps/hex test @@ -236,7 +236,7 @@ test $NATIVE && { } echo survey -./subx translate 0*.subx apps/subx-common.subx apps/survey.subx -o apps/survey +./subx translate 049init.linux 0*.subx apps/subx-common.subx apps/survey.subx -o apps/survey test "$1" = 'record' || git diff --exit-code apps/survey test $EMULATED && { ./subx run apps/survey test @@ -248,7 +248,7 @@ test $NATIVE && { } echo pack -./subx translate 0*.subx apps/subx-common.subx apps/pack.subx -o apps/pack +./subx translate 049init.linux 0*.subx apps/subx-common.subx apps/pack.subx -o apps/pack test "$1" = 'record' || git diff --exit-code apps/pack test $EMULATED && { ./subx run apps/pack test @@ -260,7 +260,7 @@ test $NATIVE && { } echo assort -./subx translate 0*.subx apps/subx-common.subx apps/assort.subx -o apps/assort +./subx translate 049init.linux 0*.subx apps/subx-common.subx apps/assort.subx -o apps/assort test "$1" = 'record' || git diff --exit-code apps/assort test $EMULATED && { ./subx run apps/assort test @@ -272,7 +272,7 @@ test $NATIVE && { } echo dquotes -./subx translate 0*.subx apps/subx-common.subx apps/dquotes.subx -o apps/dquotes +./subx translate 049init.linux 0*.subx apps/subx-common.subx apps/dquotes.subx -o apps/dquotes test "$1" = 'record' || git diff --exit-code apps/dquotes test $EMULATED && { ./subx run apps/dquotes test @@ -284,7 +284,7 @@ test $NATIVE && { } echo tests -./subx translate 0*.subx apps/subx-common.subx apps/tests.subx -o apps/tests +./subx translate 049init.linux 0*.subx apps/subx-common.subx apps/tests.subx -o apps/tests test "$1" = 'record' || git diff --exit-code apps/tests test $EMULATED && { ./subx run apps/tests test @@ -298,7 +298,7 @@ test $NATIVE && { # Higher-level syntax. echo sigils -./subx translate 0*.subx apps/subx-common.subx apps/sigils.subx -o apps/sigils +./subx translate 049init.linux 0*.subx apps/subx-common.subx apps/sigils.subx -o apps/sigils [ "$1" != record ] && git diff --exit-code apps/sigils ./subx run apps/sigils test echo @@ -313,7 +313,7 @@ test $NATIVE || exit 0 echo calls cat 0*.subx apps/subx-common.subx apps/calls.subx | apps/sigils > a.sigils -./subx translate a.sigils -o apps/calls +./subx translate 049init.linux a.sigils -o apps/calls [ "$1" != record ] && git diff --exit-code apps/calls ./subx run apps/calls test echo @@ -329,7 +329,7 @@ echo "== translating using SubX" for n in `seq 1 12` do echo ex$n - ./ntranslate examples/ex$n.subx + ./ntranslate 049init.linux examples/ex$n.subx diff examples/ex$n a.elf done @@ -338,7 +338,7 @@ done for app in factorial crenshaw2-1 crenshaw2-1b handle do echo $app - ./ntranslate 0*.subx apps/$app.subx + ./ntranslate 049init.linux 0*.subx apps/$app.subx diff apps/$app a.elf done @@ -347,7 +347,7 @@ done for app in hex survey pack assort dquotes tests sigils calls do echo $app - ./ntranslate 0*.subx apps/subx-common.subx apps/$app.subx + ./ntranslate 049init.linux 0*.subx apps/subx-common.subx apps/$app.subx diff apps/$app a.elf done |