diff options
Diffstat (limited to 'test_apps')
-rwxr-xr-x | test_apps | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/test_apps b/test_apps index e9532c66..b2d10472 100755 --- a/test_apps +++ b/test_apps @@ -338,4 +338,61 @@ echo mu ./translate_subx init.$OS [0-9]*.subx apps/mu.subx diff apps/mu a.elf +# Mu programs + +echo ex1.mu +./translate_mu apps/ex1.mu +test $EMULATED && { + ./bootstrap run a.elf || ret=$? + test $ret -eq 42 # life, the universe and everything +} +test $NATIVE && { + ./a.elf || ret=$? + test $ret -eq 42 # life, the universe and everything +} + +echo ex2.mu +./translate_mu apps/ex2.mu +test $EMULATED && { + ./bootstrap run a.elf || ret=$? + test $ret -eq 7 +} +test $NATIVE && { + ./a.elf || ret=$? + test $ret -eq 7 +} + +echo ex2.2.mu +./translate_mu apps/ex2.2.mu +test $EMULATED && { + ./bootstrap run a.elf || ret=$? + test $ret -eq 4 +} +test $NATIVE && { + ./a.elf || ret=$? + test $ret -eq 4 +} + +echo ex3.mu +./translate_mu apps/ex3.mu +test $EMULATED && { + ./bootstrap run a.elf || ret=$? + test $ret -eq 55 +} +test $NATIVE && { + ./a.elf || ret=$? + test $ret -eq 55 +} + +echo ex3.2.mu +./translate_mu apps/ex3.2.mu +test $EMULATED && { + ./bootstrap run a.elf || ret=$? + test $ret -eq 55 +} +test $NATIVE && { + ./a.elf || ret=$? + test $ret -eq 55 +} + exit 0 |