From ecc31a492825cd2e6ac5d64ee0a9cd22d248e83c Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 2 Aug 2020 17:32:01 -0700 Subject: 6707 --- test_layers | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) (limited to 'test_layers') 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 -- cgit 1.4.1-2-gfad0