From 3aa8327334070ba37f1d4380e7bac5fbbec966b0 Mon Sep 17 00:00:00 2001 From: deesix Date: Tue, 12 Jan 2021 00:00:00 +0100 Subject: [PATCH] tests: prettier scripts One line per flag for the major calls. This simplifies a bit the automated patching for parallel testing that comes next. --- test/test0000/hello-aarch64.sh | 18 +++++++++----- test/test0000/hello-amd64.sh | 23 ++++++++++++++---- test/test0000/hello-armv7l.sh | 23 ++++++++++++++---- test/test0000/hello-knight-native.sh | 22 +++++++++++++---- test/test0000/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0000/hello-x86.sh | 23 ++++++++++++++---- test/test0001/hello-aarch64.sh | 18 +++++++++----- test/test0001/hello-amd64.sh | 23 ++++++++++++++---- test/test0001/hello-armv7l.sh | 23 ++++++++++++++---- test/test0001/hello-knight-native.sh | 22 +++++++++++++---- test/test0001/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0001/hello-x86.sh | 23 ++++++++++++++---- test/test0002/hello-aarch64.sh | 18 +++++++++----- test/test0002/hello-amd64.sh | 23 ++++++++++++++---- test/test0002/hello-armv7l.sh | 23 ++++++++++++++---- test/test0002/hello-knight-native.sh | 22 +++++++++++++---- test/test0002/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0002/hello-x86.sh | 23 ++++++++++++++---- test/test0003/hello-aarch64.sh | 18 +++++++++----- test/test0003/hello-amd64.sh | 23 ++++++++++++++---- test/test0003/hello-armv7l.sh | 23 ++++++++++++++---- test/test0003/hello-knight-native.sh | 22 +++++++++++++---- test/test0003/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0003/hello-x86.sh | 23 ++++++++++++++---- test/test0004/hello-aarch64.sh | 18 +++++++++----- test/test0004/hello-amd64.sh | 23 ++++++++++++++---- test/test0004/hello-armv7l.sh | 23 ++++++++++++++---- test/test0004/hello-knight-native.sh | 22 +++++++++++++---- test/test0004/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0004/hello-x86.sh | 23 ++++++++++++++---- test/test0005/hello-aarch64.sh | 18 +++++++++----- test/test0005/hello-amd64.sh | 23 ++++++++++++++---- test/test0005/hello-armv7l.sh | 28 +++++++++++++++++----- test/test0005/hello-knight-native.sh | 22 +++++++++++++---- test/test0005/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0005/hello-x86.sh | 23 ++++++++++++++---- test/test0006/hello-aarch64.sh | 18 +++++++++----- test/test0006/hello-amd64.sh | 23 ++++++++++++++---- test/test0006/hello-armv7l.sh | 23 ++++++++++++++---- test/test0006/hello-knight-native.sh | 22 +++++++++++++---- test/test0006/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0006/hello-x86.sh | 23 ++++++++++++++---- test/test0007/hello-aarch64.sh | 25 ++++++++++++------- test/test0007/hello-amd64.sh | 23 ++++++++++++++---- test/test0007/hello-armv7l.sh | 23 ++++++++++++++---- test/test0007/hello-knight-native.sh | 22 +++++++++++++---- test/test0007/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0007/hello-x86.sh | 23 ++++++++++++++---- test/test0008/hello-aarch64.sh | 25 ++++++++++++------- test/test0008/hello-amd64.sh | 29 ++++++++++++++++------ test/test0008/hello-armv7l.sh | 23 ++++++++++++++---- test/test0008/hello-knight-native.sh | 22 +++++++++++++---- test/test0008/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0008/hello-x86.sh | 28 ++++++++++++++++------ test/test0009/hello-aarch64.sh | 18 +++++++++----- test/test0009/hello-amd64.sh | 23 ++++++++++++++---- test/test0009/hello-armv7l.sh | 23 ++++++++++++++---- test/test0009/hello-knight-native.sh | 22 +++++++++++++---- test/test0009/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0009/hello-x86.sh | 23 ++++++++++++++---- test/test0010/hello-aarch64.sh | 18 +++++++++----- test/test0010/hello-amd64.sh | 23 ++++++++++++++---- test/test0010/hello-armv7l.sh | 23 ++++++++++++++---- test/test0010/hello-knight-native.sh | 22 +++++++++++++---- test/test0010/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0010/hello-x86.sh | 23 ++++++++++++++---- test/test0011/hello-aarch64.sh | 18 +++++++++----- test/test0011/hello-amd64.sh | 23 ++++++++++++++---- test/test0011/hello-armv7l.sh | 23 ++++++++++++++---- test/test0011/hello-knight-native.sh | 22 +++++++++++++---- test/test0011/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0011/hello-x86.sh | 23 ++++++++++++++---- test/test0012/hello-aarch64.sh | 18 +++++++++----- test/test0012/hello-amd64.sh | 23 ++++++++++++++---- test/test0012/hello-armv7l.sh | 23 ++++++++++++++---- test/test0012/hello-knight-native.sh | 22 +++++++++++++---- test/test0012/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0012/hello-x86.sh | 23 ++++++++++++++---- test/test0013/hello-aarch64.sh | 18 +++++++++----- test/test0013/hello-amd64.sh | 23 ++++++++++++++---- test/test0013/hello-armv7l.sh | 23 ++++++++++++++---- test/test0013/hello-knight-native.sh | 22 +++++++++++++---- test/test0013/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0013/hello-x86.sh | 23 ++++++++++++++---- test/test0014/hello-aarch64.sh | 18 +++++++++----- test/test0014/hello-amd64.sh | 23 ++++++++++++++---- test/test0014/hello-armv7l.sh | 23 ++++++++++++++---- test/test0014/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0014/hello-x86.sh | 23 ++++++++++++++---- test/test0015/hello-aarch64.sh | 18 +++++++++----- test/test0015/hello-amd64.sh | 23 ++++++++++++++---- test/test0015/hello-armv7l.sh | 23 ++++++++++++++---- test/test0015/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0015/hello-x86.sh | 23 ++++++++++++++---- test/test0016/hello-aarch64.sh | 18 +++++++++----- test/test0016/hello-amd64.sh | 23 ++++++++++++++---- test/test0016/hello-armv7l.sh | 23 ++++++++++++++---- test/test0016/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0016/hello-x86.sh | 23 ++++++++++++++---- test/test0017/hello-aarch64.sh | 18 +++++++++----- test/test0017/hello-amd64.sh | 23 ++++++++++++++---- test/test0017/hello-armv7l.sh | 23 ++++++++++++++---- test/test0017/hello-knight-native.sh | 22 +++++++++++++---- test/test0017/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0017/hello-x86.sh | 23 ++++++++++++++---- test/test0018/hello-aarch64.sh | 18 +++++++++----- test/test0018/hello-amd64.sh | 23 ++++++++++++++---- test/test0018/hello-armv7l.sh | 23 ++++++++++++++---- test/test0018/hello-knight-native.sh | 22 +++++++++++++---- test/test0018/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0018/hello-x86.sh | 23 ++++++++++++++---- test/test0019/hello-aarch64.sh | 18 +++++++++----- test/test0019/hello-amd64.sh | 23 ++++++++++++++---- test/test0019/hello-armv7l.sh | 23 ++++++++++++++---- test/test0019/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0019/hello-x86.sh | 23 ++++++++++++++---- test/test0020/hello-aarch64.sh | 18 +++++++++----- test/test0020/hello-amd64.sh | 23 ++++++++++++++---- test/test0020/hello-armv7l.sh | 23 ++++++++++++++---- test/test0020/hello-knight-native.sh | 22 +++++++++++++---- test/test0020/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0020/hello-x86.sh | 23 ++++++++++++++---- test/test0021/hello-aarch64.sh | 25 ++++++++++++------- test/test0021/hello-amd64.sh | 25 ++++++++++++------- test/test0021/hello-armv7l.sh | 24 ++++++++++++------- test/test0021/hello-knight-posix.sh | 18 +++++++++----- test/test0021/hello-x86.sh | 24 ++++++++++++------- test/test0022/hello-aarch64.sh | 25 ++++++++++++------- test/test0022/hello-amd64.sh | 25 ++++++++++++------- test/test0022/hello-armv7l.sh | 24 ++++++++++++------- test/test0022/hello-knight-posix.sh | 18 +++++++++----- test/test0022/hello-x86.sh | 24 ++++++++++++------- test/test0023/hello-aarch64.sh | 25 ++++++++++++------- test/test0023/hello-amd64.sh | 25 ++++++++++++------- test/test0023/hello-armv7l.sh | 24 ++++++++++++------- test/test0023/hello-knight-posix.sh | 18 +++++++++----- test/test0023/hello-x86.sh | 24 ++++++++++++------- test/test0024/hello-aarch64.sh | 18 +++++++++----- test/test0024/hello-amd64.sh | 23 ++++++++++++++---- test/test0024/hello-armv7l.sh | 23 ++++++++++++++---- test/test0024/hello-knight-native.sh | 22 +++++++++++++---- test/test0024/hello-knight-posix.sh | 23 ++++++++++++++---- test/test0024/hello-x86.sh | 23 ++++++++++++++---- test/test0025/hello-aarch64.sh | 25 ++++++++++++------- test/test0025/hello-amd64.sh | 25 ++++++++++++------- test/test0025/hello-armv7l.sh | 24 ++++++++++++------- test/test0025/hello-x86.sh | 25 ++++++++++++------- test/test0100/hello-aarch64.sh | 25 ++++++++++++------- test/test0100/hello-amd64.sh | 36 ++++++++++++++++++---------- test/test0100/hello-armv7l.sh | 35 +++++++++++++++++---------- test/test0100/hello-knight-posix.sh | 18 +++++++++----- test/test0100/hello-x86.sh | 35 +++++++++++++++++---------- test/test0101/hello-aarch64.sh | 25 ++++++++++++------- test/test0101/hello-amd64.sh | 26 +++++++++++++------- test/test0101/hello-armv7l.sh | 25 ++++++++++++------- test/test0101/hello-knight-posix.sh | 19 ++++++++++----- test/test0101/hello-x86.sh | 25 ++++++++++++------- test/test0102/hello-aarch64.sh | 25 ++++++++++++------- test/test0102/hello-amd64.sh | 26 +++++++++++++------- test/test0102/hello-armv7l.sh | 25 ++++++++++++------- test/test0102/hello-knight-posix.sh | 19 ++++++++++----- test/test0102/hello-x86.sh | 25 ++++++++++++------- test/test0103/hello-aarch64.sh | 25 ++++++++++++------- test/test0103/hello-amd64.sh | 26 +++++++++++++------- test/test0103/hello-armv7l.sh | 25 ++++++++++++------- test/test0103/hello-knight-posix.sh | 19 ++++++++++----- test/test0103/hello-x86.sh | 25 ++++++++++++------- test/test0104/hello-aarch64.sh | 25 ++++++++++++------- test/test0104/hello-amd64.sh | 26 +++++++++++++------- test/test0104/hello-armv7l.sh | 25 ++++++++++++------- test/test0104/hello-x86.sh | 25 ++++++++++++------- test/test0105/hello-aarch64.sh | 25 ++++++++++++------- test/test0105/hello-amd64.sh | 26 +++++++++++++------- test/test0105/hello-armv7l.sh | 25 ++++++++++++------- test/test0105/hello-x86.sh | 25 ++++++++++++------- test/test0106/hello-aarch64.sh | 25 ++++++++++++------- test/test0106/hello-amd64.sh | 22 +++++++++++++---- test/test0106/hello-armv7l.sh | 22 +++++++++++++---- test/test0106/hello-knight-native.sh | 21 ++++++++++++---- test/test0106/hello-knight-posix.sh | 22 +++++++++++++---- test/test0106/hello-x86.sh | 22 +++++++++++++---- test/test1000/hello-aarch64.sh | 26 +++++++++++++------- test/test1000/hello-amd64.sh | 26 +++++++++++++------- test/test1000/hello-armv7l.sh | 25 ++++++++++++------- test/test1000/hello-knight-posix.sh | 19 ++++++++++----- test/test1000/hello-x86.sh | 25 ++++++++++++------- 186 files changed, 3140 insertions(+), 1119 deletions(-) diff --git a/test/test0000/hello-aarch64.sh b/test/test0000/hello-aarch64.sh index a223d30..c9f1cca 100755 --- a/test/test0000/hello-aarch64.sh +++ b/test/test0000/hello-aarch64.sh @@ -18,26 +18,32 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f test/test0000/return.c \ - -o test/test0000/return.M1 || exit 1 + -o test/test0000/return.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-core.M1 \ -f test/test0000/return.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0000/return.hex2 || exit 2 + -o test/test0000/return.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0000/return.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0000-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0000/hello-amd64.sh b/test/test0000/hello-amd64.sh index a78ea87..ca10e53 100755 --- a/test/test0000/hello-amd64.sh +++ b/test/test0000/hello-amd64.sh @@ -17,19 +17,32 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 -f test/test0000/return.c \ - -o test/test0000/return.M1 || exit 1 +bin/M2-Planet \ + --architecture amd64 \ + -f test/test0000/return.c \ + -o test/test0000/return.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/amd64/amd64_defs.M1 \ +M1 \ + -f M2libc/amd64/amd64_defs.M1 \ -f M2libc/amd64/libc-core.M1 \ -f test/test0000/return.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0000/return.hex2 || exit 2 + -o test/test0000/return.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/amd64/ELF-amd64.hex2 -f test/test0000/return.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0000-amd64-binary --exec_enable || exit 3 +hex2 \ + -f M2libc/amd64/ELF-amd64.hex2 \ + -f test/test0000/return.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0000-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0000/hello-armv7l.sh b/test/test0000/hello-armv7l.sh index 79b5c9b..ed66532 100755 --- a/test/test0000/hello-armv7l.sh +++ b/test/test0000/hello-armv7l.sh @@ -17,19 +17,32 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l -f test/test0000/return.c \ - -o test/test0000/return.M1 || exit 1 +bin/M2-Planet \ + --architecture armv7l \ + -f test/test0000/return.c \ + -o test/test0000/return.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0000/return.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0000/return.hex2 || exit 2 + -o test/test0000/return.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0000/return.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0000-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0000/return.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0000-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0000/hello-knight-native.sh b/test/test0000/hello-knight-native.sh index 9ade441..fb58df7 100755 --- a/test/test0000/hello-knight-native.sh +++ b/test/test0000/hello-knight-native.sh @@ -17,19 +17,31 @@ set -x # Build the test -bin/M2-Planet --architecture knight-native -f test/test0000/return.c \ - -o test/test0000/return.M1 || exit 1 +bin/M2-Planet \ + --architecture knight-native \ + -f test/test0000/return.c \ + -o test/test0000/return.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0000/return.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0000/return.hex2 || exit 2 + -o test/test0000/return.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0000/return.hex2 --BigEndian --architecture knight-native --BaseAddress 0x0 -o test/results/test0000-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0000/return.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x0 \ + -o test/results/test0000-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0000/hello-knight-posix.sh b/test/test0000/hello-knight-posix.sh index d7dce1e..4247aa9 100755 --- a/test/test0000/hello-knight-posix.sh +++ b/test/test0000/hello-knight-posix.sh @@ -17,19 +17,32 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix -f test/test0000/return.c \ - -o test/test0000/return.M1 || exit 1 +bin/M2-Planet \ + --architecture knight-posix \ + -f test/test0000/return.c \ + -o test/test0000/return.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0000/return.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0000/return.hex2 || exit 2 + -o test/test0000/return.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0000/return.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x0 -o test/results/test0000-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0000/return.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x0 \ + -o test/results/test0000-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0000/hello-x86.sh b/test/test0000/hello-x86.sh index 4e36c93..e1a26b4 100755 --- a/test/test0000/hello-x86.sh +++ b/test/test0000/hello-x86.sh @@ -17,19 +17,32 @@ set -x # Build the test -bin/M2-Planet --architecture x86 -f test/test0000/return.c \ - -o test/test0000/return.M1 || exit 1 +bin/M2-Planet \ + --architecture x86 \ + -f test/test0000/return.c \ + -o test/test0000/return.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/x86/x86_defs.M1 \ +M1 \ + -f M2libc/x86/x86_defs.M1 \ -f M2libc/x86/libc-core.M1 \ -f test/test0000/return.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0000/return.hex2 || exit 2 + -o test/test0000/return.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/x86/ELF-i386.hex2 -f test/test0000/return.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0000-x86-binary --exec_enable || exit 3 +hex2 \ + -f M2libc/x86/ELF-i386.hex2 \ + -f test/test0000/return.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0000-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0001/hello-aarch64.sh b/test/test0001/hello-aarch64.sh index 4bba908..c239658 100755 --- a/test/test0001/hello-aarch64.sh +++ b/test/test0001/hello-aarch64.sh @@ -18,30 +18,36 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0001/library_call.c \ - -o test/test0001/library_call.M1 || exit 1 + -o test/test0001/library_call.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0001/library_call.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0001/library_call.hex2 || exit 2 + -o test/test0001/library_call.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0001/library_call.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0001-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0001/hello-amd64.sh b/test/test0001/hello-amd64.sh index 95fcbe7..aa29d2c 100755 --- a/test/test0001/hello-amd64.sh +++ b/test/test0001/hello-amd64.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/exit.c \ -f test/test0001/library_call.c \ - -o test/test0001/library_call.M1 || exit 1 + -o test/test0001/library_call.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0001/library_call.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0001/library_call.hex2 || exit 2 + -o test/test0001/library_call.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0001/library_call.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0001-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0001/library_call.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0001-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0001/hello-armv7l.sh b/test/test0001/hello-armv7l.sh index 8e82f56..af45f7a 100755 --- a/test/test0001/hello-armv7l.sh +++ b/test/test0001/hello-armv7l.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/test0001/library_call.c \ - -o test/test0001/library_call.M1 || exit 1 + -o test/test0001/library_call.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0001/library_call.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0001/library_call.hex2 || exit 2 + -o test/test0001/library_call.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0001/library_call.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0001-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0001/library_call.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0001-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0001/hello-knight-native.sh b/test/test0001/hello-knight-native.sh index c542541..ff06e2d 100755 --- a/test/test0001/hello-knight-native.sh +++ b/test/test0001/hello-knight-native.sh @@ -17,21 +17,33 @@ set -x # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/test0001/library_call.c \ - -o test/test0001/library_call.M1 || exit 1 + -o test/test0001/library_call.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0001/library_call.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0001/library_call.hex2 || exit 2 + -o test/test0001/library_call.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0001/library_call.hex2 --BigEndian --architecture knight-native --BaseAddress 0x0 -o test/results/test0001-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0001/library_call.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x0 \ + -o test/results/test0001-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0001/hello-knight-posix.sh b/test/test0001/hello-knight-posix.sh index ae888e5..46895d9 100755 --- a/test/test0001/hello-knight-posix.sh +++ b/test/test0001/hello-knight-posix.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/test0001/library_call.c \ - -o test/test0001/library_call.M1 || exit 1 + -o test/test0001/library_call.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0001/library_call.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0001/library_call.hex2 || exit 2 + -o test/test0001/library_call.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0001/library_call.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x0 -o test/results/test0001-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0001/library_call.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x0 \ + -o test/results/test0001-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0001/hello-x86.sh b/test/test0001/hello-x86.sh index 5933c18..1be90c2 100755 --- a/test/test0001/hello-x86.sh +++ b/test/test0001/hello-x86.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/exit.c \ -f test/test0001/library_call.c \ - -o test/test0001/library_call.M1 || exit 1 + -o test/test0001/library_call.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0001/library_call.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0001/library_call.hex2 || exit 2 + -o test/test0001/library_call.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0001/library_call.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0001-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0001/library_call.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0001-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0002/hello-aarch64.sh b/test/test0002/hello-aarch64.sh index 6945639..db7a64a 100755 --- a/test/test0002/hello-aarch64.sh +++ b/test/test0002/hello-aarch64.sh @@ -18,30 +18,36 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0002/if.c \ - -o test/test0002/if.M1 || exit 1 + -o test/test0002/if.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0002/if.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0002/if.hex2 || exit 2 + -o test/test0002/if.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0002/if.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0002-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0002/hello-amd64.sh b/test/test0002/hello-amd64.sh index f80a6e0..1c1caab 100755 --- a/test/test0002/hello-amd64.sh +++ b/test/test0002/hello-amd64.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/exit.c \ -f test/test0002/if.c \ - -o test/test0002/if.M1 || exit 1 + -o test/test0002/if.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0002/if.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0002/if.hex2 || exit 2 + -o test/test0002/if.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0002/if.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0002-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0002/if.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0002-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0002/hello-armv7l.sh b/test/test0002/hello-armv7l.sh index 60a1bac..9f74560 100755 --- a/test/test0002/hello-armv7l.sh +++ b/test/test0002/hello-armv7l.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/test0002/if.c \ - -o test/test0002/if.M1 || exit 1 + -o test/test0002/if.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0002/if.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0002/if.hex2 || exit 2 + -o test/test0002/if.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0002/if.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0002-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0002/if.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0002-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0002/hello-knight-native.sh b/test/test0002/hello-knight-native.sh index fcf244c..eca3337 100755 --- a/test/test0002/hello-knight-native.sh +++ b/test/test0002/hello-knight-native.sh @@ -17,21 +17,33 @@ set -x # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/test0002/if.c \ - -o test/test0002/if.M1 || exit 1 + -o test/test0002/if.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0002/if.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0002/if.hex2 || exit 2 + -o test/test0002/if.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0002/if.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0002-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0002/if.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0002-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0002/hello-knight-posix.sh b/test/test0002/hello-knight-posix.sh index a8e6349..ce4be71 100755 --- a/test/test0002/hello-knight-posix.sh +++ b/test/test0002/hello-knight-posix.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/test0002/if.c \ - -o test/test0002/if.M1 || exit 1 + -o test/test0002/if.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0002/if.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0002/if.hex2 || exit 2 + -o test/test0002/if.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0002/if.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0002-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0002/if.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0002-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0002/hello-x86.sh b/test/test0002/hello-x86.sh index 7aea3b9..431aef6 100755 --- a/test/test0002/hello-x86.sh +++ b/test/test0002/hello-x86.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/exit.c \ -f test/test0002/if.c \ - -o test/test0002/if.M1 || exit 1 + -o test/test0002/if.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0002/if.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0002/if.hex2 || exit 2 + -o test/test0002/if.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0002/if.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0002-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0002/if.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0002-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0003/hello-aarch64.sh b/test/test0003/hello-aarch64.sh index fc3053f..b61388b 100755 --- a/test/test0003/hello-aarch64.sh +++ b/test/test0003/hello-aarch64.sh @@ -18,30 +18,36 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0003/constant.c \ - -o test/test0003/constant.M1 || exit 1 + -o test/test0003/constant.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0003/constant.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0003/constant.hex2 || exit 2 + -o test/test0003/constant.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0003/constant.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0003-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0003/hello-amd64.sh b/test/test0003/hello-amd64.sh index 5b381f1..53ec4ac 100755 --- a/test/test0003/hello-amd64.sh +++ b/test/test0003/hello-amd64.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/exit.c \ -f test/test0003/constant.c \ - -o test/test0003/constant.M1 || exit 1 + -o test/test0003/constant.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0003/constant.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0003/constant.hex2 || exit 2 + -o test/test0003/constant.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0003/constant.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0003-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0003/constant.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0003-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0003/hello-armv7l.sh b/test/test0003/hello-armv7l.sh index 4a3c603..a0c9d6a 100755 --- a/test/test0003/hello-armv7l.sh +++ b/test/test0003/hello-armv7l.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/test0003/constant.c \ - -o test/test0003/constant.M1 || exit 1 + -o test/test0003/constant.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0003/constant.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0003/constant.hex2 || exit 2 + -o test/test0003/constant.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0003/constant.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0003-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0003/constant.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0003-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0003/hello-knight-native.sh b/test/test0003/hello-knight-native.sh index 61184ed..533f5c4 100755 --- a/test/test0003/hello-knight-native.sh +++ b/test/test0003/hello-knight-native.sh @@ -17,21 +17,33 @@ set -x # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/test0003/constant.c \ - -o test/test0003/constant.M1 || exit 1 + -o test/test0003/constant.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0003/constant.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0003/constant.hex2 || exit 2 + -o test/test0003/constant.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0003/constant.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0003-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0003/constant.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0003-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0003/hello-knight-posix.sh b/test/test0003/hello-knight-posix.sh index 1c3f788..a6b649a 100755 --- a/test/test0003/hello-knight-posix.sh +++ b/test/test0003/hello-knight-posix.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/test0003/constant.c \ - -o test/test0003/constant.M1 || exit 1 + -o test/test0003/constant.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0003/constant.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0003/constant.hex2 || exit 2 + -o test/test0003/constant.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0003/constant.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0003-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0003/constant.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0003-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0003/hello-x86.sh b/test/test0003/hello-x86.sh index 4af2022..b79c184 100755 --- a/test/test0003/hello-x86.sh +++ b/test/test0003/hello-x86.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/exit.c \ -f test/test0003/constant.c \ - -o test/test0003/constant.M1 || exit 1 + -o test/test0003/constant.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0003/constant.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0003/constant.hex2 || exit 2 + -o test/test0003/constant.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0003/constant.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0003-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0003/constant.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0003-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0004/hello-aarch64.sh b/test/test0004/hello-aarch64.sh index c0bf7d1..167c9a4 100755 --- a/test/test0004/hello-aarch64.sh +++ b/test/test0004/hello-aarch64.sh @@ -18,30 +18,36 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0004/call.c \ - -o test/test0004/call.M1 || exit 1 + -o test/test0004/call.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0004/call.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0004/call.hex2 || exit 2 + -o test/test0004/call.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0004/call.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0004-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0004/hello-amd64.sh b/test/test0004/hello-amd64.sh index 6db3b6e..280f8db 100755 --- a/test/test0004/hello-amd64.sh +++ b/test/test0004/hello-amd64.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/exit.c \ -f test/test0004/call.c \ - -o test/test0004/call.M1 || exit 1 + -o test/test0004/call.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0004/call.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0004/call.hex2 || exit 2 + -o test/test0004/call.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0004/call.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0004-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0004/call.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0004-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0004/hello-armv7l.sh b/test/test0004/hello-armv7l.sh index 3c5b176..c1ac34d 100755 --- a/test/test0004/hello-armv7l.sh +++ b/test/test0004/hello-armv7l.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/test0004/call.c \ - -o test/test0004/call.M1 || exit 1 + -o test/test0004/call.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0004/call.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0004/call.hex2 || exit 2 + -o test/test0004/call.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0004/call.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0004-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0004/call.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0004-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0004/hello-knight-native.sh b/test/test0004/hello-knight-native.sh index f173103..6e67c7f 100755 --- a/test/test0004/hello-knight-native.sh +++ b/test/test0004/hello-knight-native.sh @@ -17,21 +17,33 @@ set -x # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/test0004/call.c \ - -o test/test0004/call.M1 || exit 1 + -o test/test0004/call.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0004/call.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0004/call.hex2 || exit 2 + -o test/test0004/call.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0004/call.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0004-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0004/call.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0004-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0004/hello-knight-posix.sh b/test/test0004/hello-knight-posix.sh index 1f657be..3a8442e 100755 --- a/test/test0004/hello-knight-posix.sh +++ b/test/test0004/hello-knight-posix.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/test0004/call.c \ - -o test/test0004/call.M1 || exit 1 + -o test/test0004/call.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0004/call.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0004/call.hex2 || exit 2 + -o test/test0004/call.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0004/call.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0004-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0004/call.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0004-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0004/hello-x86.sh b/test/test0004/hello-x86.sh index faa173c..2a60300 100755 --- a/test/test0004/hello-x86.sh +++ b/test/test0004/hello-x86.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/exit.c \ -f test/test0004/call.c \ - -o test/test0004/call.M1 || exit 1 + -o test/test0004/call.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0004/call.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0004/call.hex2 || exit 2 + -o test/test0004/call.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0004/call.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0004-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0004/call.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0004-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0005/hello-aarch64.sh b/test/test0005/hello-aarch64.sh index 8aa403a..801f126 100755 --- a/test/test0005/hello-aarch64.sh +++ b/test/test0005/hello-aarch64.sh @@ -18,30 +18,36 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0005/string.c \ - -o test/test0005/string.M1 || exit 1 + -o test/test0005/string.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0005/string.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0005/string.hex2 || exit 2 + -o test/test0005/string.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0005/string.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0005-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0005/hello-amd64.sh b/test/test0005/hello-amd64.sh index 19365ac..0c74aa1 100755 --- a/test/test0005/hello-amd64.sh +++ b/test/test0005/hello-amd64.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/exit.c \ -f test/test0005/string.c \ - -o test/test0005/string.M1 || exit 1 + -o test/test0005/string.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0005/string.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0005/string.hex2 || exit 2 + -o test/test0005/string.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0005/string.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0005-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0005/string.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0005-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0005/hello-armv7l.sh b/test/test0005/hello-armv7l.sh index da9c8c3..7610cab 100755 --- a/test/test0005/hello-armv7l.sh +++ b/test/test0005/hello-armv7l.sh @@ -17,25 +17,41 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/test0005/string.c \ --debug \ - -o test/test0005/string.M1 || exit 1 + -o test/test0005/string.M1 \ + || exit 1 -blood-elf -f test/test0005/string.M1 -o test/test0005/string-footer.M1 || exit 2 +blood-elf \ + -f test/test0005/string.M1 \ + -o test/test0005/string-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0005/string.M1 \ -f test/test0005/string-footer.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0005/string.hex2 || exit 3 + -o test/test0005/string.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l-debug.hex2 -f test/test0005/string.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0005-armv7l-binary --exec_enable || exit 4 +hex2 \ + -f test/common_armv7l/ELF-armv7l-debug.hex2 \ + -f test/test0005/string.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0005-armv7l-binary \ + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0005/hello-knight-native.sh b/test/test0005/hello-knight-native.sh index 4525839..d7f8556 100755 --- a/test/test0005/hello-knight-native.sh +++ b/test/test0005/hello-knight-native.sh @@ -17,21 +17,33 @@ set -x # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/test0005/string.c \ - -o test/test0005/string.M1 || exit 1 + -o test/test0005/string.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0005/string.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0005/string.hex2 || exit 2 + -o test/test0005/string.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0005/string.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0005-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0005/string.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0005-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0005/hello-knight-posix.sh b/test/test0005/hello-knight-posix.sh index c1bbc71..942913d 100755 --- a/test/test0005/hello-knight-posix.sh +++ b/test/test0005/hello-knight-posix.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/test0005/string.c \ - -o test/test0005/string.M1 || exit 1 + -o test/test0005/string.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0005/string.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0005/string.hex2 || exit 2 + -o test/test0005/string.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0005/string.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0005-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0005/string.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0005-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0005/hello-x86.sh b/test/test0005/hello-x86.sh index 0c2963a..2605607 100755 --- a/test/test0005/hello-x86.sh +++ b/test/test0005/hello-x86.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/exit.c \ -f test/test0005/string.c \ - -o test/test0005/string.M1 || exit 1 + -o test/test0005/string.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0005/string.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0005/string.hex2 || exit 2 + -o test/test0005/string.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0005/string.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0005-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0005/string.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0005-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0006/hello-aarch64.sh b/test/test0006/hello-aarch64.sh index 6cfba8b..121283c 100755 --- a/test/test0006/hello-aarch64.sh +++ b/test/test0006/hello-aarch64.sh @@ -18,30 +18,36 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0006/for.c \ - -o test/test0006/for.M1 || exit 1 + -o test/test0006/for.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0006/for.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0006/for.hex2 || exit 2 + -o test/test0006/for.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0006/for.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0006-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0006/hello-amd64.sh b/test/test0006/hello-amd64.sh index ceec2de..e6880d1 100755 --- a/test/test0006/hello-amd64.sh +++ b/test/test0006/hello-amd64.sh @@ -17,20 +17,33 @@ set -ex # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/test0006/for.c \ - -o test/test0006/for.M1 || exit 1 + -o test/test0006/for.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0006/for.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0006/for.hex2 || exit 2 + -o test/test0006/for.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0006/for.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0006-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0006/for.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0006-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0006/hello-armv7l.sh b/test/test0006/hello-armv7l.sh index 15f87bb..3009353 100755 --- a/test/test0006/hello-armv7l.sh +++ b/test/test0006/hello-armv7l.sh @@ -17,20 +17,33 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/test0006/for.c \ - -o test/test0006/for.M1 || exit 1 + -o test/test0006/for.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0006/for.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0006/for.hex2 || exit 2 + -o test/test0006/for.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0006/for.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0006-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0006/for.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0006-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0006/hello-knight-native.sh b/test/test0006/hello-knight-native.sh index a82bc98..d02e005 100755 --- a/test/test0006/hello-knight-native.sh +++ b/test/test0006/hello-knight-native.sh @@ -17,20 +17,32 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/test0006/for.c \ - -o test/test0006/for.M1 || exit 1 + -o test/test0006/for.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0006/for.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0006/for.hex2 || exit 2 + -o test/test0006/for.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0006/for.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0006-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0006/for.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0006-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight" ] diff --git a/test/test0006/hello-knight-posix.sh b/test/test0006/hello-knight-posix.sh index d8355c1..efb6d02 100755 --- a/test/test0006/hello-knight-posix.sh +++ b/test/test0006/hello-knight-posix.sh @@ -17,20 +17,33 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/test0006/for.c \ - -o test/test0006/for.M1 || exit 1 + -o test/test0006/for.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0006/for.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0006/for.hex2 || exit 2 + -o test/test0006/for.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0006/for.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0006-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0006/for.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0006-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight" ] diff --git a/test/test0006/hello-x86.sh b/test/test0006/hello-x86.sh index 973ec48..3e27ed0 100755 --- a/test/test0006/hello-x86.sh +++ b/test/test0006/hello-x86.sh @@ -17,20 +17,33 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/test0006/for.c \ - -o test/test0006/for.M1 || exit 1 + -o test/test0006/for.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0006/for.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0006/for.hex2 || exit 2 + -o test/test0006/for.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0006/for.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0006-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0006/for.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0006-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0007/hello-aarch64.sh b/test/test0007/hello-aarch64.sh index cc945bb..ab0df41 100755 --- a/test/test0007/hello-aarch64.sh +++ b/test/test0007/hello-aarch64.sh @@ -18,38 +18,47 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0007/do.c \ --debug \ - -o test/test0007/do.M1 || exit 1 + -o test/test0007/do.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0007/do.M1 \ +blood-elf \ + --64 \ + -f test/test0007/do.M1 \ --entry _start \ - -o test/test0007/do-footer.M1 || exit 2 + -o test/test0007/do-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0007/do.M1 \ -f test/test0007/do-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0007/do.hex2 || exit 2 + -o test/test0007/do.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ -f test/test0007/do.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0007-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0007/hello-amd64.sh b/test/test0007/hello-amd64.sh index b2a932c..6341120 100755 --- a/test/test0007/hello-amd64.sh +++ b/test/test0007/hello-amd64.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/exit.c \ -f test/test0007/do.c \ - -o test/test0007/do.M1 || exit 1 + -o test/test0007/do.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0007/do.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0007/do.hex2 || exit 2 + -o test/test0007/do.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0007/do.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0007-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0007/do.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0007-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0007/hello-armv7l.sh b/test/test0007/hello-armv7l.sh index 43606fd..02bb107 100755 --- a/test/test0007/hello-armv7l.sh +++ b/test/test0007/hello-armv7l.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/test0007/do.c \ - -o test/test0007/do.M1 || exit 1 + -o test/test0007/do.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0007/do.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0007/do.hex2 || exit 2 + -o test/test0007/do.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0007/do.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0007-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0007/do.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0007-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0007/hello-knight-native.sh b/test/test0007/hello-knight-native.sh index 69ccac0..8bae08a 100755 --- a/test/test0007/hello-knight-native.sh +++ b/test/test0007/hello-knight-native.sh @@ -17,21 +17,33 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/test0007/do.c \ - -o test/test0007/do.M1 || exit 1 + -o test/test0007/do.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0007/do.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0007/do.hex2 || exit 2 + -o test/test0007/do.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0007/do.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0007-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0007/do.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0007-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight" ] diff --git a/test/test0007/hello-knight-posix.sh b/test/test0007/hello-knight-posix.sh index 32f4284..e6644f2 100755 --- a/test/test0007/hello-knight-posix.sh +++ b/test/test0007/hello-knight-posix.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/test0007/do.c \ - -o test/test0007/do.M1 || exit 1 + -o test/test0007/do.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0007/do.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0007/do.hex2 || exit 2 + -o test/test0007/do.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0007/do.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0007-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0007/do.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0007-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight" ] diff --git a/test/test0007/hello-x86.sh b/test/test0007/hello-x86.sh index 5836011..b5ad1ee 100755 --- a/test/test0007/hello-x86.sh +++ b/test/test0007/hello-x86.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/exit.c \ -f test/test0007/do.c \ - -o test/test0007/do.M1 || exit 1 + -o test/test0007/do.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0007/do.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0007/do.hex2 || exit 2 + -o test/test0007/do.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0007/do.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0007-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0007/do.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0007-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0008/hello-aarch64.sh b/test/test0008/hello-aarch64.sh index afbd8b6..2f815ee 100755 --- a/test/test0008/hello-aarch64.sh +++ b/test/test0008/hello-aarch64.sh @@ -18,37 +18,46 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0008/struct.c \ --debug \ - -o test/test0008/struct.M1 || exit 1 + -o test/test0008/struct.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0008/struct.M1 \ +blood-elf \ + --64 \ + -f test/test0008/struct.M1 \ --entry _start \ - -o test/test0008/struct-footer.M1 || exit 2 + -o test/test0008/struct-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0008/struct.M1 \ -f test/test0008/struct-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0008/struct.hex2 || exit 2 + -o test/test0008/struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ -f test/test0008/struct.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0008-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0008/hello-amd64.sh b/test/test0008/hello-amd64.sh index 30dc906..7227e83 100755 --- a/test/test0008/hello-amd64.sh +++ b/test/test0008/hello-amd64.sh @@ -17,31 +17,46 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 \ +bin/M2-Planet \ + --architecture amd64 \ -f M2libc/amd64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/amd64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0008/struct.c \ --debug \ - -o test/test0008/struct.M1 || exit 1 + -o test/test0008/struct.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0008/struct.M1 \ +blood-elf \ + --64 \ + -f test/test0008/struct.M1 \ --entry _start \ - -o test/test0008/struct-footer.M1 || exit 2 + -o test/test0008/struct-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/amd64/amd64_defs.M1 \ +M1 \ + -f M2libc/amd64/amd64_defs.M1 \ -f M2libc/amd64/libc-full.M1 \ -f test/test0008/struct.M1 \ -f test/test0008/struct-footer.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0008/struct.hex2 || exit 2 + -o test/test0008/struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/amd64/ELF-amd64-debug.hex2 -f test/test0008/struct.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0008-amd64-binary --exec_enable || exit 3 +hex2 \ + -f M2libc/amd64/ELF-amd64-debug.hex2 \ + -f test/test0008/struct.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0008-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0008/hello-armv7l.sh b/test/test0008/hello-armv7l.sh index 5ff0e86..a15c197 100755 --- a/test/test0008/hello-armv7l.sh +++ b/test/test0008/hello-armv7l.sh @@ -17,23 +17,36 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/common_armv7l/functions/malloc.c \ -f test/test0008/struct.c \ --bootstrap-mode \ - -o test/test0008/struct.M1 || exit 1 + -o test/test0008/struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0008/struct.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0008/struct.hex2 || exit 2 + -o test/test0008/struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0008/struct.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0008-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0008/struct.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0008-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0008/hello-knight-native.sh b/test/test0008/hello-knight-native.sh index 0f9a628..af9a711 100755 --- a/test/test0008/hello-knight-native.sh +++ b/test/test0008/hello-knight-native.sh @@ -17,23 +17,35 @@ set -x # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/common_knight/functions/malloc.c \ -f test/test0008/struct.c \ --bootstrap-mode \ - -o test/test0008/struct.M1 || exit 1 + -o test/test0008/struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0008/struct.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0008/struct.hex2 || exit 2 + -o test/test0008/struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0008/struct.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0008-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0008/struct.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0008-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0008/hello-knight-posix.sh b/test/test0008/hello-knight-posix.sh index e4e04ea..5383d09 100755 --- a/test/test0008/hello-knight-posix.sh +++ b/test/test0008/hello-knight-posix.sh @@ -17,23 +17,36 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/common_knight/functions/malloc.c \ -f test/test0008/struct.c \ --bootstrap-mode \ - -o test/test0008/struct.M1 || exit 1 + -o test/test0008/struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0008/struct.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0008/struct.hex2 || exit 2 + -o test/test0008/struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0008/struct.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0008-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0008/struct.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0008-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0008/hello-x86.sh b/test/test0008/hello-x86.sh index 567d3c7..f962790 100755 --- a/test/test0008/hello-x86.sh +++ b/test/test0008/hello-x86.sh @@ -17,31 +17,45 @@ set -x # Build the test -bin/M2-Planet --architecture x86 \ +bin/M2-Planet \ + --architecture x86 \ -f M2libc/x86/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/x86/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0008/struct.c \ --debug \ - -o test/test0008/struct.M1 || exit 1 + -o test/test0008/struct.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0008/struct.M1 \ +blood-elf \ + -f test/test0008/struct.M1 \ --entry _start \ - -o test/test0008/struct-footer.M1 || exit 2 + -o test/test0008/struct-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/x86/x86_defs.M1 \ +M1 \ + -f M2libc/x86/x86_defs.M1 \ -f M2libc/x86/libc-full.M1 \ -f test/test0008/struct.M1 \ -f test/test0008/struct-footer.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0008/struct.hex2 || exit 2 + -o test/test0008/struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386-debug.hex2 -f test/test0008/struct.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0008-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386-debug.hex2 \ + -f test/test0008/struct.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0008-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0009/hello-aarch64.sh b/test/test0009/hello-aarch64.sh index 13c6325..ad55739 100755 --- a/test/test0009/hello-aarch64.sh +++ b/test/test0009/hello-aarch64.sh @@ -18,30 +18,36 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0009/goto.c \ - -o test/test0009/goto.M1 || exit 1 + -o test/test0009/goto.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0009/goto.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0009/goto.hex2 || exit 2 + -o test/test0009/goto.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0009/goto.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0009-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0009/hello-amd64.sh b/test/test0009/hello-amd64.sh index bfa964d..b470442 100755 --- a/test/test0009/hello-amd64.sh +++ b/test/test0009/hello-amd64.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/exit.c \ -f test/test0009/goto.c \ - -o test/test0009/goto.M1 || exit 1 + -o test/test0009/goto.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0009/goto.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0009/goto.hex2 || exit 2 + -o test/test0009/goto.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0009/goto.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0009-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0009/goto.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0009-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0009/hello-armv7l.sh b/test/test0009/hello-armv7l.sh index 5aa9f08..2639a45 100755 --- a/test/test0009/hello-armv7l.sh +++ b/test/test0009/hello-armv7l.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/test0009/goto.c \ - -o test/test0009/goto.M1 || exit 1 + -o test/test0009/goto.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0009/goto.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0009/goto.hex2 || exit 2 + -o test/test0009/goto.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0009/goto.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0009-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0009/goto.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0009-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0009/hello-knight-native.sh b/test/test0009/hello-knight-native.sh index bfb698c..1f2d1dc 100755 --- a/test/test0009/hello-knight-native.sh +++ b/test/test0009/hello-knight-native.sh @@ -17,21 +17,33 @@ set -x # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/test0009/goto.c \ - -o test/test0009/goto.M1 || exit 1 + -o test/test0009/goto.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0009/goto.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0009/goto.hex2 || exit 2 + -o test/test0009/goto.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0009/goto.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0009-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0009/goto.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0009-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0009/hello-knight-posix.sh b/test/test0009/hello-knight-posix.sh index 0f2ef39..fea31a6 100755 --- a/test/test0009/hello-knight-posix.sh +++ b/test/test0009/hello-knight-posix.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/test0009/goto.c \ - -o test/test0009/goto.M1 || exit 1 + -o test/test0009/goto.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0009/goto.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0009/goto.hex2 || exit 2 + -o test/test0009/goto.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0009/goto.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0009-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0009/goto.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0009-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0009/hello-x86.sh b/test/test0009/hello-x86.sh index 2e2df87..ff1f4e5 100755 --- a/test/test0009/hello-x86.sh +++ b/test/test0009/hello-x86.sh @@ -17,21 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/exit.c \ -f test/test0009/goto.c \ - -o test/test0009/goto.M1 || exit 1 + -o test/test0009/goto.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0009/goto.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0009/goto.hex2 || exit 2 + -o test/test0009/goto.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0009/goto.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0009-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0009/goto.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0009-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0010/hello-aarch64.sh b/test/test0010/hello-aarch64.sh index 5a481db..1f4c5b8 100755 --- a/test/test0010/hello-aarch64.sh +++ b/test/test0010/hello-aarch64.sh @@ -18,30 +18,36 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0010/nested_struct.c \ - -o test/test0010/nested_struct.M1 || exit 1 + -o test/test0010/nested_struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0010/nested_struct.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0010/nested_struct.hex2 || exit 2 + -o test/test0010/nested_struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0010/nested_struct.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0010-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0010/hello-amd64.sh b/test/test0010/hello-amd64.sh index 9c8f894..eba15de 100755 --- a/test/test0010/hello-amd64.sh +++ b/test/test0010/hello-amd64.sh @@ -17,23 +17,36 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/exit.c \ -f test/common_amd64/functions/malloc.c \ -f test/test0010/nested_struct.c \ --bootstrap-mode \ - -o test/test0010/nested_struct.M1 || exit 1 + -o test/test0010/nested_struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0010/nested_struct.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0010/nested_struct.hex2 || exit 2 + -o test/test0010/nested_struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0010/nested_struct.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0010-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0010/nested_struct.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0010-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0010/hello-armv7l.sh b/test/test0010/hello-armv7l.sh index e0d365f..fdde4c6 100755 --- a/test/test0010/hello-armv7l.sh +++ b/test/test0010/hello-armv7l.sh @@ -17,23 +17,36 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/common_armv7l/functions/malloc.c \ -f test/test0010/nested_struct.c \ --bootstrap-mode \ - -o test/test0010/nested_struct.M1 || exit 1 + -o test/test0010/nested_struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0010/nested_struct.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0010/nested_struct.hex2 || exit 2 + -o test/test0010/nested_struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0010/nested_struct.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0010-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0010/nested_struct.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0010-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0010/hello-knight-native.sh b/test/test0010/hello-knight-native.sh index 37785c2..aada645 100755 --- a/test/test0010/hello-knight-native.sh +++ b/test/test0010/hello-knight-native.sh @@ -17,23 +17,35 @@ set -x # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/common_knight/functions/malloc.c \ -f test/test0010/nested_struct.c \ --bootstrap-mode \ - -o test/test0010/nested_struct.M1 || exit 1 + -o test/test0010/nested_struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0010/nested_struct.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0010/nested_struct.hex2 || exit 2 + -o test/test0010/nested_struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0010/nested_struct.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0010-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0010/nested_struct.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0010-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0010/hello-knight-posix.sh b/test/test0010/hello-knight-posix.sh index dd79019..e213209 100755 --- a/test/test0010/hello-knight-posix.sh +++ b/test/test0010/hello-knight-posix.sh @@ -17,23 +17,36 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/common_knight/functions/malloc.c \ -f test/test0010/nested_struct.c \ --bootstrap-mode \ - -o test/test0010/nested_struct.M1 || exit 1 + -o test/test0010/nested_struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0010/nested_struct.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0010/nested_struct.hex2 || exit 2 + -o test/test0010/nested_struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0010/nested_struct.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0010-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0010/nested_struct.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0010-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0010/hello-x86.sh b/test/test0010/hello-x86.sh index bee1208..128e7b4 100755 --- a/test/test0010/hello-x86.sh +++ b/test/test0010/hello-x86.sh @@ -17,23 +17,36 @@ set -x # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/exit.c \ -f test/common_x86/functions/malloc.c \ -f test/test0010/nested_struct.c \ --bootstrap-mode \ - -o test/test0010/nested_struct.M1 || exit 1 + -o test/test0010/nested_struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0010/nested_struct.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0010/nested_struct.hex2 || exit 2 + -o test/test0010/nested_struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0010/nested_struct.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0010-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0010/nested_struct.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0010-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0011/hello-aarch64.sh b/test/test0011/hello-aarch64.sh index a0cb266..3918ccd 100755 --- a/test/test0011/hello-aarch64.sh +++ b/test/test0011/hello-aarch64.sh @@ -18,30 +18,36 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0011/break-do.c \ - -o test/test0011/break-do.M1 || exit 1 + -o test/test0011/break-do.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0011/break-do.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0011/break-do.hex2 || exit 2 + -o test/test0011/break-do.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0011/break-do.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0011-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0011/hello-amd64.sh b/test/test0011/hello-amd64.sh index 7e1c987..11b78a7 100755 --- a/test/test0011/hello-amd64.sh +++ b/test/test0011/hello-amd64.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/exit.c \ -f test/test0011/break-do.c \ - -o test/test0011/break-do.M1 || exit 1 + -o test/test0011/break-do.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0011/break-do.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0011/break-do.hex2 || exit 2 + -o test/test0011/break-do.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0011/break-do.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0011-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0011/break-do.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0011-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0011/hello-armv7l.sh b/test/test0011/hello-armv7l.sh index e457a8f..177a4a8 100755 --- a/test/test0011/hello-armv7l.sh +++ b/test/test0011/hello-armv7l.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/test0011/break-do.c \ - -o test/test0011/break-do.M1 || exit 1 + -o test/test0011/break-do.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0011/break-do.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0011/break-do.hex2 || exit 2 + -o test/test0011/break-do.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0011/break-do.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0011-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0011/break-do.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0011-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0011/hello-knight-native.sh b/test/test0011/hello-knight-native.sh index d7e410a..10c8c04 100755 --- a/test/test0011/hello-knight-native.sh +++ b/test/test0011/hello-knight-native.sh @@ -17,21 +17,33 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/test0011/break-do.c \ - -o test/test0011/break-do.M1 || exit 1 + -o test/test0011/break-do.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0011/break-do.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0011/break-do.hex2 || exit 2 + -o test/test0011/break-do.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0011/break-do.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0011-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0011/break-do.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0011-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0011/hello-knight-posix.sh b/test/test0011/hello-knight-posix.sh index f54c3bd..496dc65 100755 --- a/test/test0011/hello-knight-posix.sh +++ b/test/test0011/hello-knight-posix.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/test0011/break-do.c \ - -o test/test0011/break-do.M1 || exit 1 + -o test/test0011/break-do.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0011/break-do.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0011/break-do.hex2 || exit 2 + -o test/test0011/break-do.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0011/break-do.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0011-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0011/break-do.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0011-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0011/hello-x86.sh b/test/test0011/hello-x86.sh index 41af3b7..4a6f0c0 100755 --- a/test/test0011/hello-x86.sh +++ b/test/test0011/hello-x86.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/exit.c \ -f test/test0011/break-do.c \ - -o test/test0011/break-do.M1 || exit 1 + -o test/test0011/break-do.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0011/break-do.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0011/break-do.hex2 || exit 2 + -o test/test0011/break-do.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0011/break-do.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0011-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0011/break-do.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0011-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0012/hello-aarch64.sh b/test/test0012/hello-aarch64.sh index 183611d..12a9017 100755 --- a/test/test0012/hello-aarch64.sh +++ b/test/test0012/hello-aarch64.sh @@ -18,30 +18,36 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0012/break-for.c \ - -o test/test0012/break-for.M1 || exit 1 + -o test/test0012/break-for.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0012/break-for.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0012/break-for.hex2 || exit 2 + -o test/test0012/break-for.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0012/break-for.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0012-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0012/hello-amd64.sh b/test/test0012/hello-amd64.sh index a693cd7..5706710 100755 --- a/test/test0012/hello-amd64.sh +++ b/test/test0012/hello-amd64.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/exit.c \ -f test/test0012/break-for.c \ - -o test/test0012/break-for.M1 || exit 1 + -o test/test0012/break-for.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0012/break-for.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0012/break-for.hex2 || exit 2 + -o test/test0012/break-for.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0012/break-for.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0012-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0012/break-for.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0012-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0012/hello-armv7l.sh b/test/test0012/hello-armv7l.sh index 14f9826..8e301c7 100755 --- a/test/test0012/hello-armv7l.sh +++ b/test/test0012/hello-armv7l.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/test0012/break-for.c \ - -o test/test0012/break-for.M1 || exit 1 + -o test/test0012/break-for.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0012/break-for.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0012/break-for.hex2 || exit 2 + -o test/test0012/break-for.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0012/break-for.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0012-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0012/break-for.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0012-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0012/hello-knight-native.sh b/test/test0012/hello-knight-native.sh index b13554b..a37faad 100755 --- a/test/test0012/hello-knight-native.sh +++ b/test/test0012/hello-knight-native.sh @@ -17,21 +17,33 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/test0012/break-for.c \ - -o test/test0012/break-for.M1 || exit 1 + -o test/test0012/break-for.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0012/break-for.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0012/break-for.hex2 || exit 2 + -o test/test0012/break-for.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0012/break-for.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0012-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0012/break-for.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0012-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0012/hello-knight-posix.sh b/test/test0012/hello-knight-posix.sh index d024ece..c8dbadb 100755 --- a/test/test0012/hello-knight-posix.sh +++ b/test/test0012/hello-knight-posix.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/test0012/break-for.c \ - -o test/test0012/break-for.M1 || exit 1 + -o test/test0012/break-for.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0012/break-for.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0012/break-for.hex2 || exit 2 + -o test/test0012/break-for.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0012/break-for.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0012-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0012/break-for.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0012-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0012/hello-x86.sh b/test/test0012/hello-x86.sh index e43d07f..44fa14e 100755 --- a/test/test0012/hello-x86.sh +++ b/test/test0012/hello-x86.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/exit.c \ -f test/test0012/break-for.c \ - -o test/test0012/break-for.M1 || exit 1 + -o test/test0012/break-for.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0012/break-for.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0012/break-for.hex2 || exit 2 + -o test/test0012/break-for.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0012/break-for.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0012-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0012/break-for.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0012-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0013/hello-aarch64.sh b/test/test0013/hello-aarch64.sh index e108114..9d726a6 100755 --- a/test/test0013/hello-aarch64.sh +++ b/test/test0013/hello-aarch64.sh @@ -18,30 +18,36 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0013/break-while.c \ - -o test/test0013/break-while.M1 || exit 1 + -o test/test0013/break-while.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0013/break-while.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0013/break-while.hex2 || exit 2 + -o test/test0013/break-while.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0013/break-while.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0013-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0013/hello-amd64.sh b/test/test0013/hello-amd64.sh index 117f202..5a9ab27 100755 --- a/test/test0013/hello-amd64.sh +++ b/test/test0013/hello-amd64.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/exit.c \ -f test/test0013/break-while.c \ - -o test/test0013/break-while.M1 || exit 1 + -o test/test0013/break-while.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0013/break-while.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0013/break-while.hex2 || exit 2 + -o test/test0013/break-while.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0013/break-while.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0013-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0013/break-while.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0013-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0013/hello-armv7l.sh b/test/test0013/hello-armv7l.sh index b7f74c5..b0ba70e 100755 --- a/test/test0013/hello-armv7l.sh +++ b/test/test0013/hello-armv7l.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/test0013/break-while.c \ - -o test/test0013/break-while.M1 || exit 1 + -o test/test0013/break-while.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0013/break-while.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0013/break-while.hex2 || exit 2 + -o test/test0013/break-while.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0013/break-while.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0013-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0013/break-while.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0013-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0013/hello-knight-native.sh b/test/test0013/hello-knight-native.sh index 2cdfeb5..fb291dc 100755 --- a/test/test0013/hello-knight-native.sh +++ b/test/test0013/hello-knight-native.sh @@ -17,21 +17,33 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/test0013/break-while.c \ - -o test/test0013/break-while.M1 || exit 1 + -o test/test0013/break-while.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0013/break-while.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0013/break-while.hex2 || exit 2 + -o test/test0013/break-while.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0013/break-while.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0013-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0013/break-while.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0013-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0013/hello-knight-posix.sh b/test/test0013/hello-knight-posix.sh index a4438b6..26603f6 100755 --- a/test/test0013/hello-knight-posix.sh +++ b/test/test0013/hello-knight-posix.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/test0013/break-while.c \ - -o test/test0013/break-while.M1 || exit 1 + -o test/test0013/break-while.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0013/break-while.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0013/break-while.hex2 || exit 2 + -o test/test0013/break-while.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0013/break-while.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0013-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0013/break-while.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0013-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0013/hello-x86.sh b/test/test0013/hello-x86.sh index 19025cb..04e3ab2 100755 --- a/test/test0013/hello-x86.sh +++ b/test/test0013/hello-x86.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/exit.c \ -f test/test0013/break-while.c \ - -o test/test0013/break-while.M1 || exit 1 + -o test/test0013/break-while.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0013/break-while.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0013/break-while.hex2 || exit 2 + -o test/test0013/break-while.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0013/break-while.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0013-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0013/break-while.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0013-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0014/hello-aarch64.sh b/test/test0014/hello-aarch64.sh index d3131d9..d24a281 100755 --- a/test/test0014/hello-aarch64.sh +++ b/test/test0014/hello-aarch64.sh @@ -18,30 +18,36 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0014/basic_args.c \ - -o test/test0014/basic_args.M1 || exit 1 + -o test/test0014/basic_args.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0014/basic_args.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0014/basic_args.hex2 || exit 2 + -o test/test0014/basic_args.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0014/basic_args.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0014-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0014/hello-amd64.sh b/test/test0014/hello-amd64.sh index 5825c89..b332900 100755 --- a/test/test0014/hello-amd64.sh +++ b/test/test0014/hello-amd64.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/test0014/basic_args.c \ --bootstrap-mode \ - -o test/test0014/basic_args.M1 || exit 1 + -o test/test0014/basic_args.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0014/basic_args.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0014/basic_args.hex2 || exit 2 + -o test/test0014/basic_args.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0014/basic_args.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0014-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0014/basic_args.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0014-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0014/hello-armv7l.sh b/test/test0014/hello-armv7l.sh index 99b273c..ac7be66 100755 --- a/test/test0014/hello-armv7l.sh +++ b/test/test0014/hello-armv7l.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/test0014/basic_args.c \ --bootstrap-mode \ - -o test/test0014/basic_args.M1 || exit 1 + -o test/test0014/basic_args.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0014/basic_args.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0014/basic_args.hex2 || exit 2 + -o test/test0014/basic_args.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0014/basic_args.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0014-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0014/basic_args.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0014-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0014/hello-knight-posix.sh b/test/test0014/hello-knight-posix.sh index 7712b12..61e6317 100755 --- a/test/test0014/hello-knight-posix.sh +++ b/test/test0014/hello-knight-posix.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/test0014/basic_args.c \ --bootstrap-mode \ - -o test/test0014/basic_args.M1 || exit 1 + -o test/test0014/basic_args.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0014/basic_args.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0014/basic_args.hex2 || exit 2 + -o test/test0014/basic_args.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0014/basic_args.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0014-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0014/basic_args.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0014-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0014/hello-x86.sh b/test/test0014/hello-x86.sh index 2f4357f..ad531bf 100755 --- a/test/test0014/hello-x86.sh +++ b/test/test0014/hello-x86.sh @@ -17,21 +17,34 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/test0014/basic_args.c \ --bootstrap-mode \ - -o test/test0014/basic_args.M1 || exit 1 + -o test/test0014/basic_args.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0014/basic_args.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0014/basic_args.hex2 || exit 2 + -o test/test0014/basic_args.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0014/basic_args.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0014-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0014/basic_args.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0014-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0015/hello-aarch64.sh b/test/test0015/hello-aarch64.sh index 350bd96..f2304f0 100755 --- a/test/test0015/hello-aarch64.sh +++ b/test/test0015/hello-aarch64.sh @@ -18,30 +18,36 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0015/file_read.c \ - -o test/test0015/file_read.M1 || exit 1 + -o test/test0015/file_read.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0015/file_read.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0015/file_read.hex2 || exit 2 + -o test/test0015/file_read.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0015/file_read.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0015-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0015/hello-amd64.sh b/test/test0015/hello-amd64.sh index f69c420..d8ae046 100755 --- a/test/test0015/hello-amd64.sh +++ b/test/test0015/hello-amd64.sh @@ -17,22 +17,35 @@ set -ex # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/file.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/file.c \ -f test/common_amd64/functions/putchar.c \ -f test/test0015/file_read.c \ --bootstrap-mode \ - -o test/test0015/file_read.M1 || exit 1 + -o test/test0015/file_read.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0015/file_read.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0015/file_read.hex2 || exit 2 + -o test/test0015/file_read.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0015/file_read.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0015-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0015/file_read.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0015-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0015/hello-armv7l.sh b/test/test0015/hello-armv7l.sh index 54a62f6..6650d6d 100755 --- a/test/test0015/hello-armv7l.sh +++ b/test/test0015/hello-armv7l.sh @@ -17,22 +17,35 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/file.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/file.c \ -f test/common_armv7l/functions/putchar.c \ -f test/test0015/file_read.c \ --bootstrap-mode \ - -o test/test0015/file_read.M1 || exit 1 + -o test/test0015/file_read.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0015/file_read.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0015/file_read.hex2 || exit 2 + -o test/test0015/file_read.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0015/file_read.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0015-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0015/file_read.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0015-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0015/hello-knight-posix.sh b/test/test0015/hello-knight-posix.sh index ed58a62..9fc3b4b 100755 --- a/test/test0015/hello-knight-posix.sh +++ b/test/test0015/hello-knight-posix.sh @@ -17,22 +17,35 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/file.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/file.c \ -f test/common_knight/functions/putchar.c \ -f test/test0015/file_read.c \ --bootstrap-mode \ - -o test/test0015/file_read.M1 || exit 1 + -o test/test0015/file_read.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0015/file_read.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0015/file_read.hex2 || exit 2 + -o test/test0015/file_read.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0015/file_read.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0015-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0015/file_read.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0015-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "Knight*" ] diff --git a/test/test0015/hello-x86.sh b/test/test0015/hello-x86.sh index e7db788..63e9581 100755 --- a/test/test0015/hello-x86.sh +++ b/test/test0015/hello-x86.sh @@ -17,22 +17,35 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/file.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/file.c \ -f test/common_x86/functions/putchar.c \ -f test/test0015/file_read.c \ --bootstrap-mode \ - -o test/test0015/file_read.M1 || exit 1 + -o test/test0015/file_read.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0015/file_read.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0015/file_read.hex2 || exit 2 + -o test/test0015/file_read.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0015/file_read.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0015-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0015/file_read.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0015-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0016/hello-aarch64.sh b/test/test0016/hello-aarch64.sh index eb0457f..eebc97b 100755 --- a/test/test0016/hello-aarch64.sh +++ b/test/test0016/hello-aarch64.sh @@ -18,30 +18,36 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0016/file_write.c \ - -o test/test0016/file_write.M1 || exit 1 + -o test/test0016/file_write.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0016/file_write.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0016/file_write.hex2 || exit 2 + -o test/test0016/file_write.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0016/file_write.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0016-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0016/hello-amd64.sh b/test/test0016/hello-amd64.sh index 9ad1e53..987423d 100755 --- a/test/test0016/hello-amd64.sh +++ b/test/test0016/hello-amd64.sh @@ -17,22 +17,35 @@ set -ex # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/file.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/file.c \ -f test/common_amd64/functions/putchar.c \ -f test/test0016/file_write.c \ --bootstrap-mode \ - -o test/test0016/file_write.M1 || exit 1 + -o test/test0016/file_write.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0016/file_write.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0016/file_write.hex2 || exit 2 + -o test/test0016/file_write.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0016/file_write.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0016-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0016/file_write.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0016-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0016/hello-armv7l.sh b/test/test0016/hello-armv7l.sh index 6a321b2..a656743 100755 --- a/test/test0016/hello-armv7l.sh +++ b/test/test0016/hello-armv7l.sh @@ -17,22 +17,35 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/file.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/file.c \ -f test/common_armv7l/functions/putchar.c \ -f test/test0016/file_write.c \ --bootstrap-mode \ - -o test/test0016/file_write.M1 || exit 1 + -o test/test0016/file_write.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0016/file_write.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0016/file_write.hex2 || exit 2 + -o test/test0016/file_write.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0016/file_write.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0016-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0016/file_write.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0016-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0016/hello-knight-posix.sh b/test/test0016/hello-knight-posix.sh index 393cdc3..72a87e6 100755 --- a/test/test0016/hello-knight-posix.sh +++ b/test/test0016/hello-knight-posix.sh @@ -17,22 +17,35 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/file.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/file.c \ -f test/common_knight/functions/putchar.c \ -f test/test0016/file_write.c \ --bootstrap-mode \ - -o test/test0016/file_write.M1 || exit 1 + -o test/test0016/file_write.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0016/file_write.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0016/file_write.hex2 || exit 2 + -o test/test0016/file_write.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0016/file_write.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0016-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0016/file_write.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0016-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0016/hello-x86.sh b/test/test0016/hello-x86.sh index 2255b48..59e874a 100755 --- a/test/test0016/hello-x86.sh +++ b/test/test0016/hello-x86.sh @@ -17,22 +17,35 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/file.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/file.c \ -f test/common_x86/functions/putchar.c \ -f test/test0016/file_write.c \ --bootstrap-mode \ - -o test/test0016/file_write.M1 || exit 1 + -o test/test0016/file_write.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0016/file_write.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0016/file_write.hex2 || exit 2 + -o test/test0016/file_write.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0016/file_write.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0016-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0016/file_write.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0016-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0017/hello-aarch64.sh b/test/test0017/hello-aarch64.sh index 0b971b3..a9b5dae 100755 --- a/test/test0017/hello-aarch64.sh +++ b/test/test0017/hello-aarch64.sh @@ -18,30 +18,36 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0017/memset.c \ - -o test/test0017/memset.M1 || exit 1 + -o test/test0017/memset.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0017/memset.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0017/memset.hex2 || exit 2 + -o test/test0017/memset.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0017/memset.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0017-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0017/hello-amd64.sh b/test/test0017/hello-amd64.sh index 700835e..b656568 100755 --- a/test/test0017/hello-amd64.sh +++ b/test/test0017/hello-amd64.sh @@ -17,23 +17,36 @@ set -ex # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/malloc.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/malloc.c \ -f functions/calloc.c \ -f test/common_amd64/functions/putchar.c \ -f test/test0017/memset.c \ --bootstrap-mode \ - -o test/test0017/memset.M1 || exit 1 + -o test/test0017/memset.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0017/memset.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0017/memset.hex2 || exit 2 + -o test/test0017/memset.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0017/memset.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0017-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0017/memset.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0017-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0017/hello-armv7l.sh b/test/test0017/hello-armv7l.sh index 590493c..0368943 100755 --- a/test/test0017/hello-armv7l.sh +++ b/test/test0017/hello-armv7l.sh @@ -17,23 +17,36 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/malloc.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/malloc.c \ -f functions/calloc.c \ -f test/common_armv7l/functions/putchar.c \ -f test/test0017/memset.c \ --bootstrap-mode \ - -o test/test0017/memset.M1 || exit 1 + -o test/test0017/memset.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0017/memset.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0017/memset.hex2 || exit 2 + -o test/test0017/memset.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0017/memset.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0017-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0017/memset.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0017-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0017/hello-knight-native.sh b/test/test0017/hello-knight-native.sh index dd1e56b..6d59819 100755 --- a/test/test0017/hello-knight-native.sh +++ b/test/test0017/hello-knight-native.sh @@ -17,23 +17,35 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/malloc.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/malloc.c \ -f functions/calloc.c \ -f test/common_knight/functions/putchar-native.c \ -f test/test0017/memset.c \ --bootstrap-mode \ - -o test/test0017/memset.M1 || exit 1 + -o test/test0017/memset.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0017/memset.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0017/memset.hex2 || exit 2 + -o test/test0017/memset.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0017/memset.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0017-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0017/memset.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0017-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0017/hello-knight-posix.sh b/test/test0017/hello-knight-posix.sh index 4223473..fbc852f 100755 --- a/test/test0017/hello-knight-posix.sh +++ b/test/test0017/hello-knight-posix.sh @@ -17,23 +17,36 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/malloc.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/malloc.c \ -f functions/calloc.c \ -f test/common_knight/functions/putchar.c \ -f test/test0017/memset.c \ --bootstrap-mode \ - -o test/test0017/memset.M1 || exit 1 + -o test/test0017/memset.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0017/memset.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0017/memset.hex2 || exit 2 + -o test/test0017/memset.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0017/memset.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0017-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0017/memset.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0017-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0017/hello-x86.sh b/test/test0017/hello-x86.sh index 47419c9..3095fdd 100755 --- a/test/test0017/hello-x86.sh +++ b/test/test0017/hello-x86.sh @@ -17,23 +17,36 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/malloc.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/malloc.c \ -f functions/calloc.c \ -f test/common_x86/functions/putchar.c \ -f test/test0017/memset.c \ --bootstrap-mode \ - -o test/test0017/memset.M1 || exit 1 + -o test/test0017/memset.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0017/memset.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0017/memset.hex2 || exit 2 + -o test/test0017/memset.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0017/memset.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0017-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0017/memset.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0017-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0018/hello-aarch64.sh b/test/test0018/hello-aarch64.sh index 40d36b5..95adfbc 100755 --- a/test/test0018/hello-aarch64.sh +++ b/test/test0018/hello-aarch64.sh @@ -18,30 +18,36 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0018/math.c \ - -o test/test0018/math.M1 || exit 1 + -o test/test0018/math.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0018/math.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0018/math.hex2 || exit 2 + -o test/test0018/math.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0018/math.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0018-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0018/hello-amd64.sh b/test/test0018/hello-amd64.sh index b50f7ae..9ca3396 100755 --- a/test/test0018/hello-amd64.sh +++ b/test/test0018/hello-amd64.sh @@ -17,23 +17,36 @@ set -ex # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/file.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/file.c \ -f test/common_amd64/functions/malloc.c \ -f functions/calloc.c \ -f test/test0018/math.c \ --bootstrap-mode \ - -o test/test0018/math.M1 || exit 1 + -o test/test0018/math.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0018/math.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0018/math.hex2 || exit 2 + -o test/test0018/math.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0018/math.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0018-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0018/math.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0018-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0018/hello-armv7l.sh b/test/test0018/hello-armv7l.sh index 4886d39..47a8dc9 100755 --- a/test/test0018/hello-armv7l.sh +++ b/test/test0018/hello-armv7l.sh @@ -17,23 +17,36 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/file.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/file.c \ -f test/common_armv7l/functions/malloc.c \ -f functions/calloc.c \ -f test/test0018/math.c \ --bootstrap-mode \ - -o test/test0018/math.M1 || exit 1 + -o test/test0018/math.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0018/math.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0018/math.hex2 || exit 2 + -o test/test0018/math.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0018/math.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0018-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0018/math.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0018-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0018/hello-knight-native.sh b/test/test0018/hello-knight-native.sh index 1ec7602..e5e31e8 100755 --- a/test/test0018/hello-knight-native.sh +++ b/test/test0018/hello-knight-native.sh @@ -17,24 +17,36 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/file-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/file-native.c \ -f test/common_knight/functions/malloc.c \ -f functions/calloc.c \ -f functions/match.c \ -f test/test0018/math.c \ --bootstrap-mode \ - -o test/test0018/math.M1 || exit 1 + -o test/test0018/math.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native-file.M1 \ -f test/test0018/math.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0018/math.hex2 || exit 2 + -o test/test0018/math.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0018/math.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0018-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0018/math.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0018-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0018/hello-knight-posix.sh b/test/test0018/hello-knight-posix.sh index a4ba544..e1a7235 100755 --- a/test/test0018/hello-knight-posix.sh +++ b/test/test0018/hello-knight-posix.sh @@ -17,23 +17,36 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/file.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/file.c \ -f test/common_knight/functions/malloc.c \ -f functions/calloc.c \ -f test/test0018/math.c \ --bootstrap-mode \ - -o test/test0018/math.M1 || exit 1 + -o test/test0018/math.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0018/math.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0018/math.hex2 || exit 2 + -o test/test0018/math.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0018/math.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0018-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0018/math.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0018-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0018/hello-x86.sh b/test/test0018/hello-x86.sh index 5def030..4749bbf 100755 --- a/test/test0018/hello-x86.sh +++ b/test/test0018/hello-x86.sh @@ -17,23 +17,36 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/file.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/file.c \ -f test/common_x86/functions/malloc.c \ -f functions/calloc.c \ -f test/test0018/math.c \ --bootstrap-mode \ - -o test/test0018/math.M1 || exit 1 + -o test/test0018/math.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0018/math.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0018/math.hex2 || exit 2 + -o test/test0018/math.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0018/math.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0018-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0018/math.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0018-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0019/hello-aarch64.sh b/test/test0019/hello-aarch64.sh index 9f41a18..79324c2 100755 --- a/test/test0019/hello-aarch64.sh +++ b/test/test0019/hello-aarch64.sh @@ -18,7 +18,8 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ @@ -28,24 +29,29 @@ bin/M2-Planet --architecture aarch64 \ -f functions/numerate_number.c \ -f functions/file_print.c \ -f test/test0019/getopt.c \ - -o test/test0019/getopt.M1 || exit 1 + -o test/test0019/getopt.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0019/getopt.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0019/getopt.hex2 || exit 2 + -o test/test0019/getopt.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0019/getopt.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0019-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0019/hello-amd64.sh b/test/test0019/hello-amd64.sh index 1f8790f..3649683 100755 --- a/test/test0019/hello-amd64.sh +++ b/test/test0019/hello-amd64.sh @@ -17,7 +17,9 @@ set -ex # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/file.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/file.c \ -f test/common_amd64/functions/malloc.c \ -f functions/calloc.c \ -f test/common_amd64/functions/exit.c \ @@ -27,18 +29,29 @@ bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/file.c \ -f functions/file_print.c \ -f test/test0019/getopt.c \ --bootstrap-mode \ - -o test/test0019/getopt.M1 || exit 1 + -o test/test0019/getopt.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0019/getopt.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0019/getopt.hex2 || exit 2 + -o test/test0019/getopt.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0019/getopt.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0019-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0019/getopt.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0019-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0019/hello-armv7l.sh b/test/test0019/hello-armv7l.sh index a8b3e01..8afa0c5 100755 --- a/test/test0019/hello-armv7l.sh +++ b/test/test0019/hello-armv7l.sh @@ -17,7 +17,9 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/file.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/file.c \ -f test/common_armv7l/functions/malloc.c \ -f functions/calloc.c \ -f test/common_armv7l/functions/exit.c \ @@ -27,18 +29,29 @@ bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/file.c \ -f functions/file_print.c \ -f test/test0019/getopt.c \ --bootstrap-mode \ - -o test/test0019/getopt.M1 || exit 1 + -o test/test0019/getopt.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0019/getopt.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0019/getopt.hex2 || exit 2 + -o test/test0019/getopt.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0019/getopt.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0019-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0019/getopt.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0019-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0019/hello-knight-posix.sh b/test/test0019/hello-knight-posix.sh index 93b9e9e..67a76c4 100755 --- a/test/test0019/hello-knight-posix.sh +++ b/test/test0019/hello-knight-posix.sh @@ -17,7 +17,9 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/file.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/file.c \ -f test/common_knight/functions/malloc.c \ -f functions/calloc.c \ -f test/common_knight/functions/exit.c \ @@ -27,18 +29,29 @@ bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/file.c -f functions/file_print.c \ -f test/test0019/getopt.c \ --bootstrap-mode \ - -o test/test0019/getopt.M1 || exit 1 + -o test/test0019/getopt.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0019/getopt.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0019/getopt.hex2 || exit 2 + -o test/test0019/getopt.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0019/getopt.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0019-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0019/getopt.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0019-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0019/hello-x86.sh b/test/test0019/hello-x86.sh index 125ef3a..80eda80 100755 --- a/test/test0019/hello-x86.sh +++ b/test/test0019/hello-x86.sh @@ -17,7 +17,9 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/file.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/file.c \ -f test/common_x86/functions/malloc.c \ -f functions/calloc.c \ -f test/common_x86/functions/exit.c \ @@ -27,18 +29,29 @@ bin/M2-Planet --architecture x86 -f test/common_x86/functions/file.c \ -f functions/file_print.c \ -f test/test0019/getopt.c \ --bootstrap-mode \ - -o test/test0019/getopt.M1 || exit 1 + -o test/test0019/getopt.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0019/getopt.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0019/getopt.hex2 || exit 2 + -o test/test0019/getopt.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0019/getopt.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0019-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0019/getopt.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0019-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0020/hello-aarch64.sh b/test/test0020/hello-aarch64.sh index 7879902..32e4756 100755 --- a/test/test0020/hello-aarch64.sh +++ b/test/test0020/hello-aarch64.sh @@ -18,30 +18,36 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0020/struct.c \ - -o test/test0020/struct.M1 || exit 1 + -o test/test0020/struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0020/struct.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0020/struct.hex2 || exit 2 + -o test/test0020/struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0020/struct.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0020-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0020/hello-amd64.sh b/test/test0020/hello-amd64.sh index 44e3ecf..e548175 100755 --- a/test/test0020/hello-amd64.sh +++ b/test/test0020/hello-amd64.sh @@ -17,23 +17,36 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/putchar.c \ +bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/exit.c \ -f test/common_amd64/functions/malloc.c \ -f test/test0020/struct.c \ --bootstrap-mode \ - -o test/test0020/struct.M1 || exit 1 + -o test/test0020/struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0020/struct.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0020/struct.hex2 || exit 2 + -o test/test0020/struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0020/struct.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0020-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0020/struct.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0020-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0020/hello-armv7l.sh b/test/test0020/hello-armv7l.sh index 655b328..6229d1b 100755 --- a/test/test0020/hello-armv7l.sh +++ b/test/test0020/hello-armv7l.sh @@ -17,23 +17,36 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \ +bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/common_armv7l/functions/malloc.c \ -f test/test0020/struct.c \ --bootstrap-mode \ - -o test/test0020/struct.M1 || exit 1 + -o test/test0020/struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0020/struct.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0020/struct.hex2 || exit 2 + -o test/test0020/struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0020/struct.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0020-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0020/struct.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0020-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0020/hello-knight-native.sh b/test/test0020/hello-knight-native.sh index 42ffb31..b2d78b4 100755 --- a/test/test0020/hello-knight-native.sh +++ b/test/test0020/hello-knight-native.sh @@ -17,23 +17,35 @@ set -x # Build the test -bin/M2-Planet --architecture knight-native -f test/common_knight/functions/putchar-native.c \ +bin/M2-Planet \ + --architecture knight-native \ + -f test/common_knight/functions/putchar-native.c \ -f test/common_knight/functions/exit-native.c \ -f test/common_knight/functions/malloc.c \ -f test/test0020/struct.c \ --bootstrap-mode \ - -o test/test0020/struct.M1 || exit 1 + -o test/test0020/struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0020/struct.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0020/struct.hex2 || exit 2 + -o test/test0020/struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0020/struct.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0020-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0020/struct.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0020-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0020/hello-knight-posix.sh b/test/test0020/hello-knight-posix.sh index ad2bea7..0acca97 100755 --- a/test/test0020/hello-knight-posix.sh +++ b/test/test0020/hello-knight-posix.sh @@ -17,23 +17,36 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/putchar.c \ +bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/exit.c \ -f test/common_knight/functions/malloc.c \ -f test/test0020/struct.c \ --bootstrap-mode \ - -o test/test0020/struct.M1 || exit 1 + -o test/test0020/struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0020/struct.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0020/struct.hex2 || exit 2 + -o test/test0020/struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0020/struct.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0020-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0020/struct.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0020-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0020/hello-x86.sh b/test/test0020/hello-x86.sh index df4b4e6..9ea21cc 100755 --- a/test/test0020/hello-x86.sh +++ b/test/test0020/hello-x86.sh @@ -17,23 +17,36 @@ set -x # Build the test -bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \ +bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/exit.c \ -f test/common_x86/functions/malloc.c \ -f test/test0020/struct.c \ --bootstrap-mode \ - -o test/test0020/struct.M1 || exit 1 + -o test/test0020/struct.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0020/struct.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0020/struct.hex2 || exit 2 + -o test/test0020/struct.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0020/struct.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0020-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0020/struct.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0020-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0021/hello-aarch64.sh b/test/test0021/hello-aarch64.sh index da3c3bf..97317bd 100755 --- a/test/test0021/hello-aarch64.sh +++ b/test/test0021/hello-aarch64.sh @@ -17,7 +17,8 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f test/common_aarch64/functions/chdir.c \ -f test/common_aarch64/functions/malloc.c \ -f test/common_aarch64/functions/getcwd.c \ @@ -29,30 +30,38 @@ bin/M2-Planet --architecture aarch64 \ -f test/test0021/chdir.c \ --debug \ --bootstrap-mode \ - -o test/test0021/chdir.M1 || exit 1 + -o test/test0021/chdir.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0021/chdir.M1 \ +blood-elf \ + --64 \ + -f test/test0021/chdir.M1 \ --entry _start \ - -o test/test0021/chdir-footer.M1 || exit 2 + -o test/test0021/chdir-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_aarch64/aarch64_defs.M1 \ +M1 \ + -f test/common_aarch64/aarch64_defs.M1 \ -f test/common_aarch64/libc-core.M1 \ -f test/test0021/chdir.M1 \ -f test/test0021/chdir-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0021/chdir.hex2 || exit 3 + -o test/test0021/chdir.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_aarch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f test/common_aarch64/ELF-aarch64-debug.hex2 \ -f test/test0021/chdir.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0021-aarch64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0021/hello-amd64.sh b/test/test0021/hello-amd64.sh index a3c9c07..a5d9d3c 100755 --- a/test/test0021/hello-amd64.sh +++ b/test/test0021/hello-amd64.sh @@ -17,7 +17,8 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 \ +bin/M2-Planet \ + --architecture amd64 \ -f test/common_amd64/functions/chdir.c \ -f test/common_amd64/functions/malloc.c \ -f test/common_amd64/functions/getcwd.c \ @@ -29,30 +30,38 @@ bin/M2-Planet --architecture amd64 \ -f test/test0021/chdir.c \ --debug \ --bootstrap-mode \ - -o test/test0021/chdir.M1 || exit 1 + -o test/test0021/chdir.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0021/chdir.M1 \ +blood-elf \ + --64 \ + -f test/test0021/chdir.M1 \ --entry _start \ - -o test/test0021/chdir-footer.M1 || exit 2 + -o test/test0021/chdir-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0021/chdir.M1 \ -f test/test0021/chdir-footer.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0021/chdir.hex2 || exit 3 + -o test/test0021/chdir.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64-debug.hex2 \ +hex2 \ + -f test/common_amd64/ELF-amd64-debug.hex2 \ -f test/test0021/chdir.hex2 \ --LittleEndian \ --architecture amd64 \ --BaseAddress 0x00600000 \ -o test/results/test0021-amd64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0021/hello-armv7l.sh b/test/test0021/hello-armv7l.sh index d6ad08a..d402381 100755 --- a/test/test0021/hello-armv7l.sh +++ b/test/test0021/hello-armv7l.sh @@ -17,7 +17,8 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l \ +bin/M2-Planet \ + --architecture armv7l \ -f test/common_armv7l/functions/chdir.c \ -f test/common_armv7l/functions/malloc.c \ -f test/common_armv7l/functions/getcwd.c \ @@ -29,30 +30,37 @@ bin/M2-Planet --architecture armv7l \ -f test/test0021/chdir.c \ --debug \ --bootstrap-mode \ - -o test/test0021/chdir.M1 || exit 1 + -o test/test0021/chdir.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0021/chdir.M1 \ +blood-elf \ + -f test/test0021/chdir.M1 \ --entry _start \ - -o test/test0021/chdir-footer.M1 || exit 2 + -o test/test0021/chdir-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0021/chdir.M1 \ -f test/test0021/chdir-footer.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0021/chdir.hex2 || exit 3 + -o test/test0021/chdir.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l-debug.hex2 \ +hex2 \ + -f test/common_armv7l/ELF-armv7l-debug.hex2 \ -f test/test0021/chdir.hex2 \ --LittleEndian \ --architecture armv7l \ --BaseAddress 0x10000 \ -o test/results/test0021-armv7l-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0021/hello-knight-posix.sh b/test/test0021/hello-knight-posix.sh index 837b1ff..3428795 100755 --- a/test/test0021/hello-knight-posix.sh +++ b/test/test0021/hello-knight-posix.sh @@ -17,7 +17,8 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix \ +bin/M2-Planet \ + --architecture knight-posix \ -f test/common_knight/functions/chdir.c \ -f test/common_knight/functions/malloc.c \ -f test/common_knight/functions/getcwd.c \ @@ -29,24 +30,29 @@ bin/M2-Planet --architecture knight-posix \ -f test/test0021/chdir.c \ --debug \ --bootstrap-mode \ - -o test/test0021/chdir.M1 || exit 1 + -o test/test0021/chdir.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0021/chdir.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0021/chdir.hex2 || exit 3 + -o test/test0021/chdir.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 \ +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ -f test/test0021/chdir.hex2 \ --BigEndian \ --architecture knight-posix \ --BaseAddress 0x0 \ -o test/results/test0021-knight-posix-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0021/hello-x86.sh b/test/test0021/hello-x86.sh index 29b7cdb..a74fe32 100755 --- a/test/test0021/hello-x86.sh +++ b/test/test0021/hello-x86.sh @@ -17,7 +17,8 @@ set -x # Build the test -bin/M2-Planet --architecture x86 \ +bin/M2-Planet \ + --architecture x86 \ -f test/common_x86/functions/chdir.c \ -f test/common_x86/functions/malloc.c \ -f test/common_x86/functions/getcwd.c \ @@ -31,30 +32,37 @@ bin/M2-Planet --architecture x86 \ -f test/test0021/chdir.c \ --debug \ --bootstrap-mode \ - -o test/test0021/chdir.M1 || exit 1 + -o test/test0021/chdir.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0021/chdir.M1 \ +blood-elf \ + -f test/test0021/chdir.M1 \ --entry _start \ - -o test/test0021/chdir-footer.M1 || exit 2 + -o test/test0021/chdir-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0021/chdir.M1 \ -f test/test0021/chdir-footer.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0021/chdir.hex2 || exit 3 + -o test/test0021/chdir.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386-debug.hex2 \ +hex2 \ + -f test/common_x86/ELF-i386-debug.hex2 \ -f test/test0021/chdir.hex2 \ --LittleEndian \ --architecture x86 \ --BaseAddress 0x8048000 \ -o test/results/test0021-x86-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0022/hello-aarch64.sh b/test/test0022/hello-aarch64.sh index 3e2144d..756d038 100755 --- a/test/test0022/hello-aarch64.sh +++ b/test/test0022/hello-aarch64.sh @@ -17,7 +17,8 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ @@ -27,30 +28,38 @@ bin/M2-Planet --architecture aarch64 \ -f functions/file_print.c \ -f test/test0022/continue.c \ --debug \ - -o test/test0022/continue.M1 || exit 1 + -o test/test0022/continue.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0022/continue.M1 \ +blood-elf \ + --64 \ + -f test/test0022/continue.M1 \ --entry _start \ - -o test/test0022/continue-footer.M1 || exit 2 + -o test/test0022/continue-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0022/continue.M1 \ -f test/test0022/continue-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0022/continue.hex2 || exit 3 + -o test/test0022/continue.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ -f test/test0022/continue.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0022-aarch64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0022/hello-amd64.sh b/test/test0022/hello-amd64.sh index b7bd886..1e26f2c 100755 --- a/test/test0022/hello-amd64.sh +++ b/test/test0022/hello-amd64.sh @@ -17,7 +17,8 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 \ +bin/M2-Planet \ + --architecture amd64 \ -f test/common_amd64/functions/malloc.c \ -f test/common_amd64/functions/file.c \ -f test/common_amd64/functions/exit.c \ @@ -28,30 +29,38 @@ bin/M2-Planet --architecture amd64 \ -f test/test0022/continue.c \ --debug \ --bootstrap-mode \ - -o test/test0022/continue.M1 || exit 1 + -o test/test0022/continue.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0022/continue.M1 \ +blood-elf \ + --64 \ + -f test/test0022/continue.M1 \ --entry _start \ - -o test/test0022/continue-footer.M1 || exit 2 + -o test/test0022/continue-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0022/continue.M1 \ -f test/test0022/continue-footer.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0022/continue.hex2 || exit 3 + -o test/test0022/continue.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64-debug.hex2 \ +hex2 \ + -f test/common_amd64/ELF-amd64-debug.hex2 \ -f test/test0022/continue.hex2 \ --LittleEndian \ --architecture amd64 \ --BaseAddress 0x00600000 \ -o test/results/test0022-amd64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0022/hello-armv7l.sh b/test/test0022/hello-armv7l.sh index c376baa..2912c3f 100755 --- a/test/test0022/hello-armv7l.sh +++ b/test/test0022/hello-armv7l.sh @@ -17,7 +17,8 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l \ +bin/M2-Planet \ + --architecture armv7l \ -f test/common_armv7l/functions/malloc.c \ -f test/common_armv7l/functions/file.c \ -f test/common_armv7l/functions/exit.c \ @@ -28,30 +29,37 @@ bin/M2-Planet --architecture armv7l \ -f test/test0022/continue.c \ --debug \ --bootstrap-mode \ - -o test/test0022/continue.M1 || exit 1 + -o test/test0022/continue.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0022/continue.M1 \ +blood-elf \ + -f test/test0022/continue.M1 \ --entry _start \ - -o test/test0022/continue-footer.M1 || exit 2 + -o test/test0022/continue-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0022/continue.M1 \ -f test/test0022/continue-footer.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0022/continue.hex2 || exit 3 + -o test/test0022/continue.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l-debug.hex2 \ +hex2 \ + -f test/common_armv7l/ELF-armv7l-debug.hex2 \ -f test/test0022/continue.hex2 \ --LittleEndian \ --architecture armv7l \ --BaseAddress 0x10000 \ -o test/results/test0022-armv7l-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0022/hello-knight-posix.sh b/test/test0022/hello-knight-posix.sh index 452955d..3f8231b 100755 --- a/test/test0022/hello-knight-posix.sh +++ b/test/test0022/hello-knight-posix.sh @@ -17,7 +17,8 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix \ +bin/M2-Planet \ + --architecture knight-posix \ -f test/common_knight/functions/malloc.c \ -f test/common_knight/functions/file.c \ -f test/common_knight/functions/exit.c \ @@ -27,24 +28,29 @@ bin/M2-Planet --architecture knight-posix \ -f functions/file_print.c \ -f test/test0022/continue.c \ --bootstrap-mode \ - -o test/test0022/continue.M1 || exit 1 + -o test/test0022/continue.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0022/continue.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0022/continue.hex2 || exit 3 + -o test/test0022/continue.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 \ +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ -f test/test0022/continue.hex2 \ --BigEndian \ --architecture knight-posix \ --BaseAddress 0x0 \ -o test/results/test0022-knight-posix-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0022/hello-x86.sh b/test/test0022/hello-x86.sh index 50a9889..87bf890 100755 --- a/test/test0022/hello-x86.sh +++ b/test/test0022/hello-x86.sh @@ -17,7 +17,8 @@ set -x # Build the test -bin/M2-Planet --architecture x86 \ +bin/M2-Planet \ + --architecture x86 \ -f test/common_x86/functions/malloc.c \ -f test/common_x86/functions/file.c \ -f test/common_x86/functions/exit.c \ @@ -28,30 +29,37 @@ bin/M2-Planet --architecture x86 \ -f test/test0022/continue.c \ --debug \ --bootstrap-mode \ - -o test/test0022/continue.M1 || exit 1 + -o test/test0022/continue.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0022/continue.M1 \ +blood-elf \ + -f test/test0022/continue.M1 \ --entry _start \ - -o test/test0022/continue-footer.M1 || exit 2 + -o test/test0022/continue-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0022/continue.M1 \ -f test/test0022/continue-footer.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0022/continue.hex2 || exit 3 + -o test/test0022/continue.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386-debug.hex2 \ +hex2 \ + -f test/common_x86/ELF-i386-debug.hex2 \ -f test/test0022/continue.hex2 \ --LittleEndian \ --architecture x86 \ --BaseAddress 0x8048000 \ -o test/results/test0022-x86-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0023/hello-aarch64.sh b/test/test0023/hello-aarch64.sh index 9204002..4e4bcb5 100755 --- a/test/test0023/hello-aarch64.sh +++ b/test/test0023/hello-aarch64.sh @@ -17,37 +17,46 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0023/fseek.c \ --debug \ - -o test/test0023/fseek.M1 || exit 1 + -o test/test0023/fseek.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0023/fseek.M1 \ +blood-elf \ + --64 \ + -f test/test0023/fseek.M1 \ --entry _start \ - -o test/test0023/fseek-footer.M1 || exit 2 + -o test/test0023/fseek-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0023/fseek.M1 \ -f test/test0023/fseek-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0023/fseek.hex2 || exit 3 + -o test/test0023/fseek.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ -f test/test0023/fseek.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0023-aarch64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0023/hello-amd64.sh b/test/test0023/hello-amd64.sh index 80857ca..908283c 100755 --- a/test/test0023/hello-amd64.sh +++ b/test/test0023/hello-amd64.sh @@ -17,35 +17,44 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 \ +bin/M2-Planet \ + --architecture amd64 \ -f test/common_amd64/functions/file.c \ -f test/test0023/fseek.c \ --debug \ --bootstrap-mode \ - -o test/test0023/fseek.M1 || exit 1 + -o test/test0023/fseek.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0023/fseek.M1 \ +blood-elf \ + --64 \ + -f test/test0023/fseek.M1 \ --entry _start \ - -o test/test0023/fseek-footer.M1 || exit 2 + -o test/test0023/fseek-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0023/fseek.M1 \ -f test/test0023/fseek-footer.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0023/fseek.hex2 || exit 3 + -o test/test0023/fseek.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64-debug.hex2 \ +hex2 \ + -f test/common_amd64/ELF-amd64-debug.hex2 \ -f test/test0023/fseek.hex2 \ --LittleEndian \ --architecture amd64 \ --BaseAddress 0x00600000 \ -o test/results/test0023-amd64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0023/hello-armv7l.sh b/test/test0023/hello-armv7l.sh index 0f1fdb9..28f6e85 100755 --- a/test/test0023/hello-armv7l.sh +++ b/test/test0023/hello-armv7l.sh @@ -17,35 +17,43 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l \ +bin/M2-Planet \ + --architecture armv7l \ -f test/common_armv7l/functions/file.c \ -f test/test0023/fseek.c \ --debug \ --bootstrap-mode \ - -o test/test0023/fseek.M1 || exit 1 + -o test/test0023/fseek.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0023/fseek.M1 \ +blood-elf \ + -f test/test0023/fseek.M1 \ --entry _start \ - -o test/test0023/fseek-footer.M1 || exit 2 + -o test/test0023/fseek-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0023/fseek.M1 \ -f test/test0023/fseek-footer.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0023/fseek.hex2 || exit 3 + -o test/test0023/fseek.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l-debug.hex2 \ +hex2 \ + -f test/common_armv7l/ELF-armv7l-debug.hex2 \ -f test/test0023/fseek.hex2 \ --LittleEndian \ --architecture armv7l \ --BaseAddress 0x10000 \ -o test/results/test0023-armv7l-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0023/hello-knight-posix.sh b/test/test0023/hello-knight-posix.sh index 95c402c..c837d8c 100755 --- a/test/test0023/hello-knight-posix.sh +++ b/test/test0023/hello-knight-posix.sh @@ -17,28 +17,34 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix \ +bin/M2-Planet \ + --architecture knight-posix \ -f test/common_knight/functions/file.c \ -f test/test0023/fseek.c \ --bootstrap-mode \ - -o test/test0023/fseek.M1 || exit 1 + -o test/test0023/fseek.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0023/fseek.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0023/fseek.hex2 || exit 3 + -o test/test0023/fseek.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 \ +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ -f test/test0023/fseek.hex2 \ --BigEndian \ --architecture knight-posix \ --BaseAddress 0x0 \ -o test/results/test0023-knight-posix-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0023/hello-x86.sh b/test/test0023/hello-x86.sh index 258801b..78fbacc 100755 --- a/test/test0023/hello-x86.sh +++ b/test/test0023/hello-x86.sh @@ -17,35 +17,43 @@ set -x # Build the test -bin/M2-Planet --architecture x86 \ +bin/M2-Planet \ + --architecture x86 \ -f test/common_x86/functions/file.c \ -f test/test0023/fseek.c \ --debug \ --bootstrap-mode \ - -o test/test0023/fseek.M1 || exit 1 + -o test/test0023/fseek.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0023/fseek.M1 \ +blood-elf \ + -f test/test0023/fseek.M1 \ --entry _start \ - -o test/test0023/fseek-footer.M1 || exit 2 + -o test/test0023/fseek-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0023/fseek.M1 \ -f test/test0023/fseek-footer.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0023/fseek.hex2 || exit 3 + -o test/test0023/fseek.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386-debug.hex2 \ +hex2 \ + -f test/common_x86/ELF-i386-debug.hex2 \ -f test/test0023/fseek.hex2 \ --LittleEndian \ --architecture x86 \ --BaseAddress 0x8048000 \ -o test/results/test0023-x86-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0024/hello-aarch64.sh b/test/test0024/hello-aarch64.sh index 3ae98d2..e1f8f57 100755 --- a/test/test0024/hello-aarch64.sh +++ b/test/test0024/hello-aarch64.sh @@ -18,26 +18,32 @@ set -x # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f test/test0024/return.c \ - -o test/test0024/return.M1 || exit 1 + -o test/test0024/return.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-core.M1 \ -f test/test0024/return.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0024/return.hex2 || exit 2 + -o test/test0024/return.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0024/return.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0024-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0024/hello-amd64.sh b/test/test0024/hello-amd64.sh index 68a7cbe..8601d31 100755 --- a/test/test0024/hello-amd64.sh +++ b/test/test0024/hello-amd64.sh @@ -17,19 +17,32 @@ set -x # Build the test -bin/M2-Planet --architecture amd64 -f test/test0024/return.c \ - -o test/test0024/return.M1 || exit 1 +bin/M2-Planet \ + --architecture amd64 \ + -f test/test0024/return.c \ + -o test/test0024/return.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0024/return.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0024/return.hex2 || exit 2 + -o test/test0024/return.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0024/return.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0024-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0024/return.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0024-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0024/hello-armv7l.sh b/test/test0024/hello-armv7l.sh index 17d2025..a7916a2 100755 --- a/test/test0024/hello-armv7l.sh +++ b/test/test0024/hello-armv7l.sh @@ -17,19 +17,32 @@ set -x # Build the test -bin/M2-Planet --architecture armv7l -f test/test0024/return.c \ - -o test/test0024/return.M1 || exit 1 +bin/M2-Planet \ + --architecture armv7l \ + -f test/test0024/return.c \ + -o test/test0024/return.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0024/return.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0024/return.hex2 || exit 2 + -o test/test0024/return.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0024/return.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0024-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0024/return.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0024-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0024/hello-knight-native.sh b/test/test0024/hello-knight-native.sh index 5dbfb7c..d864e6b 100755 --- a/test/test0024/hello-knight-native.sh +++ b/test/test0024/hello-knight-native.sh @@ -17,19 +17,31 @@ set -x # Build the test -bin/M2-Planet --architecture knight-native -f test/test0024/return.c \ - -o test/test0024/return.M1 || exit 1 +bin/M2-Planet \ + --architecture knight-native \ + -f test/test0024/return.c \ + -o test/test0024/return.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native.M1 \ -f test/test0024/return.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0024/return.hex2 || exit 2 + -o test/test0024/return.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0024/return.hex2 --BigEndian --architecture knight-native --BaseAddress 0x0 -o test/results/test0024-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0024/return.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x0 \ + -o test/results/test0024-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0024/hello-knight-posix.sh b/test/test0024/hello-knight-posix.sh index 0e05178..832c100 100755 --- a/test/test0024/hello-knight-posix.sh +++ b/test/test0024/hello-knight-posix.sh @@ -17,19 +17,32 @@ set -x # Build the test -bin/M2-Planet --architecture knight-posix -f test/test0024/return.c \ - -o test/test0024/return.M1 || exit 1 +bin/M2-Planet \ + --architecture knight-posix \ + -f test/test0024/return.c \ + -o test/test0024/return.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0024/return.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0024/return.hex2 || exit 2 + -o test/test0024/return.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0024/return.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x0 -o test/results/test0024-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0024/return.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x0 \ + -o test/results/test0024-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0024/hello-x86.sh b/test/test0024/hello-x86.sh index 2a8bb0c..2cf5824 100755 --- a/test/test0024/hello-x86.sh +++ b/test/test0024/hello-x86.sh @@ -17,19 +17,32 @@ set -x # Build the test -bin/M2-Planet --architecture x86 -f test/test0024/return.c \ - -o test/test0024/return.M1 || exit 1 +bin/M2-Planet \ + --architecture x86 \ + -f test/test0024/return.c \ + -o test/test0024/return.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0024/return.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0024/return.hex2 || exit 2 + -o test/test0024/return.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0024/return.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0024-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0024/return.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0024-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0025/hello-aarch64.sh b/test/test0025/hello-aarch64.sh index 66f3e9d..205c248 100755 --- a/test/test0025/hello-aarch64.sh +++ b/test/test0025/hello-aarch64.sh @@ -18,37 +18,46 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0025/array.c \ --debug \ - -o test/test0025/array.M1 || exit 1 + -o test/test0025/array.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0025/array.M1 \ +blood-elf \ + --64 \ + -f test/test0025/array.M1 \ --entry _start \ - -o test/test0025/array-footer.M1 || exit 2 + -o test/test0025/array-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0025/array.M1 \ -f test/test0025/array-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0025/array.hex2 || exit 2 + -o test/test0025/array.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ -f test/test0025/array.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0025-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0025/hello-amd64.sh b/test/test0025/hello-amd64.sh index 139c40d..6aeb238 100755 --- a/test/test0025/hello-amd64.sh +++ b/test/test0025/hello-amd64.sh @@ -16,37 +16,46 @@ ## along with M2-Planet. If not, see . set -ex -bin/M2-Planet --architecture amd64 \ +bin/M2-Planet \ + --architecture amd64 \ -f M2libc/amd64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/amd64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0025/array.c \ --debug \ - -o test/test0025/array.M1 || exit 1 + -o test/test0025/array.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0025/array.M1 \ +blood-elf \ + --64 \ + -f test/test0025/array.M1 \ --entry _start \ - -o test/test0025/array-footer.M1 || exit 2 + -o test/test0025/array-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/amd64/amd64_defs.M1 \ +M1 \ + -f M2libc/amd64/amd64_defs.M1 \ -f M2libc/amd64/libc-full.M1 \ -f test/test0025/array.M1 \ -f test/test0025/array-footer.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0025/array.hex2 || exit 2 + -o test/test0025/array.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/amd64/ELF-amd64-debug.hex2 \ +hex2 \ + -f M2libc/amd64/ELF-amd64-debug.hex2 \ -f test/test0025/array.hex2 \ --LittleEndian \ --architecture amd64 \ --BaseAddress 0x400000 \ -o test/results/test0025-amd64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0025/hello-armv7l.sh b/test/test0025/hello-armv7l.sh index edce747..666acf3 100755 --- a/test/test0025/hello-armv7l.sh +++ b/test/test0025/hello-armv7l.sh @@ -17,37 +17,45 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l \ +bin/M2-Planet \ + --architecture armv7l \ -f M2libc/armv7l/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/armv7l/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0025/array.c \ --debug \ - -o test/test0025/array.M1 || exit 1 + -o test/test0025/array.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0025/array.M1 \ +blood-elf \ + -f test/test0025/array.M1 \ --entry _start \ - -o test/test0025/array-footer.M1 || exit 2 + -o test/test0025/array-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/armv7l/armv7l_defs.M1 \ +M1 \ + -f M2libc/armv7l/armv7l_defs.M1 \ -f M2libc/armv7l/libc-full.M1 \ -f test/test0025/array.M1 \ -f test/test0025/array-footer.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0025/array.hex2 || exit 2 + -o test/test0025/array.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/armv7l/ELF-armv7l-debug.hex2 \ +hex2 \ + -f M2libc/armv7l/ELF-armv7l-debug.hex2 \ -f test/test0025/array.hex2 \ --LittleEndian \ --architecture armv7l \ --BaseAddress 0x400000 \ -o test/results/test0025-armv7l-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0025/hello-x86.sh b/test/test0025/hello-x86.sh index b4bbd25..d940c30 100755 --- a/test/test0025/hello-x86.sh +++ b/test/test0025/hello-x86.sh @@ -17,37 +17,46 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 \ +bin/M2-Planet \ + --architecture x86 \ -f M2libc/x86/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/x86/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0025/array.c \ --debug \ - -o test/test0025/array.M1 || exit 1 + -o test/test0025/array.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0025/array.M1 \ +blood-elf \ + --64 \ + -f test/test0025/array.M1 \ --entry _start \ - -o test/test0025/array-footer.M1 || exit 2 + -o test/test0025/array-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/x86/x86_defs.M1 \ +M1 \ + -f M2libc/x86/x86_defs.M1 \ -f M2libc/x86/libc-full.M1 \ -f test/test0025/array.M1 \ -f test/test0025/array-footer.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0025/array.hex2 || exit 2 + -o test/test0025/array.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/x86/ELF-i386-debug.hex2 \ +hex2 \ + -f M2libc/x86/ELF-i386-debug.hex2 \ -f test/test0025/array.hex2 \ --LittleEndian \ --architecture x86 \ --BaseAddress 0x400000 \ -o test/results/test0025-x86-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0100/hello-aarch64.sh b/test/test0100/hello-aarch64.sh index 0078ed8..eacc870 100755 --- a/test/test0100/hello-aarch64.sh +++ b/test/test0100/hello-aarch64.sh @@ -18,7 +18,8 @@ set -x # Build the test -./bin/M2-Planet --architecture aarch64 \ +./bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ @@ -27,30 +28,38 @@ set -x -f functions/match.c \ -f test/test0100/blood-elf.c \ --debug \ - -o test/test0100/blood-elf.M1 || exit 1 + -o test/test0100/blood-elf.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0100/blood-elf.M1 \ +blood-elf \ + --64 \ + -f test/test0100/blood-elf.M1 \ --entry _start \ - -o test/test0100/blood-elf-footer.M1 || exit 2 + -o test/test0100/blood-elf-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0100/blood-elf.M1 \ -f test/test0100/blood-elf-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0100/blood-elf.hex2 || exit 3 + -o test/test0100/blood-elf.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64.hex2 \ -f test/test0100/blood-elf.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0100-aarch64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0100/hello-amd64.sh b/test/test0100/hello-amd64.sh index 9436266..088db3c 100755 --- a/test/test0100/hello-amd64.sh +++ b/test/test0100/hello-amd64.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/exit.c \ +./bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/exit.c \ -f test/common_amd64/functions/file.c \ -f functions/file_print.c \ -f test/common_amd64/functions/malloc.c \ @@ -26,30 +28,38 @@ set -x -f test/test0100/blood-elf.c \ --debug \ --bootstrap-mode \ - -o test/test0100/blood-elf.M1 || exit 1 + -o test/test0100/blood-elf.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0100/blood-elf.M1 \ +blood-elf \ + --64 \ + -f test/test0100/blood-elf.M1 \ --entry _start \ - -o test/test0100/blood-elf-footer.M1 || exit 2 + -o test/test0100/blood-elf-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0100/blood-elf.M1 \ -f test/test0100/blood-elf-footer.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0100/blood-elf.hex2 || exit 3 + -o test/test0100/blood-elf.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64-debug.hex2 \ - -f test/test0100/blood-elf.hex2 \ - --LittleEndian \ - --architecture amd64 \ - --BaseAddress 0x00600000 \ - -o test/results/test0100-amd64-binary \ - --exec_enable || exit 4 +hex2 \ + -f test/common_amd64/ELF-amd64-debug.hex2 \ + -f test/test0100/blood-elf.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0100-amd64-binary \ + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0100/hello-armv7l.sh b/test/test0100/hello-armv7l.sh index c4a13d6..8717139 100755 --- a/test/test0100/hello-armv7l.sh +++ b/test/test0100/hello-armv7l.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/exit.c \ +./bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/exit.c \ -f test/common_armv7l/functions/file.c \ -f functions/file_print.c \ -f test/common_armv7l/functions/malloc.c \ @@ -26,30 +28,37 @@ set -x -f test/test0100/blood-elf.c \ --debug \ --bootstrap-mode \ - -o test/test0100/blood-elf.M1 || exit 1 + -o test/test0100/blood-elf.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0100/blood-elf.M1 \ +blood-elf \ + -f test/test0100/blood-elf.M1 \ --entry _start \ - -o test/test0100/blood-elf-footer.M1 || exit 2 + -o test/test0100/blood-elf-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0100/blood-elf.M1 \ -f test/test0100/blood-elf-footer.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0100/blood-elf.hex2 || exit 3 + -o test/test0100/blood-elf.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l-debug.hex2 \ - -f test/test0100/blood-elf.hex2 \ - --LittleEndian \ - --architecture armv7l \ - --BaseAddress 0x10000 \ - -o test/results/test0100-armv7l-binary \ - --exec_enable || exit 4 +hex2 \ + -f test/common_armv7l/ELF-armv7l-debug.hex2 \ + -f test/test0100/blood-elf.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0100-armv7l-binary \ + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0100/hello-knight-posix.sh b/test/test0100/hello-knight-posix.sh index 25b4dcb..bceb8a3 100755 --- a/test/test0100/hello-knight-posix.sh +++ b/test/test0100/hello-knight-posix.sh @@ -17,7 +17,8 @@ set -x # Build the test -./bin/M2-Planet --architecture knight-posix \ +./bin/M2-Planet \ + --architecture knight-posix \ -f test/common_knight/functions/exit.c \ -f test/common_knight/functions/file.c \ -f functions/file_print.c \ @@ -26,24 +27,29 @@ set -x -f functions/match.c \ -f test/test0100/blood-elf.c \ --bootstrap-mode \ - -o test/test0100/blood-elf.M1 || exit 1 + -o test/test0100/blood-elf.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0100/blood-elf.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0100/blood-elf.hex2 || exit 3 + -o test/test0100/blood-elf.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 \ +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ -f test/test0100/blood-elf.hex2 \ --BigEndian \ --architecture knight-posix \ --BaseAddress 0x00 \ -o test/results/test0100-knight-posix-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0100/hello-x86.sh b/test/test0100/hello-x86.sh index 88f8bab..23762a0 100755 --- a/test/test0100/hello-x86.sh +++ b/test/test0100/hello-x86.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture x86 -f test/common_x86/functions/exit.c \ +./bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/exit.c \ -f test/common_x86/functions/file.c \ -f functions/file_print.c \ -f test/common_x86/functions/malloc.c \ @@ -26,30 +28,37 @@ set -x -f test/test0100/blood-elf.c \ --debug \ --bootstrap-mode \ - -o test/test0100/blood-elf.M1 || exit 1 + -o test/test0100/blood-elf.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0100/blood-elf.M1 \ +blood-elf \ + -f test/test0100/blood-elf.M1 \ --entry _start \ - -o test/test0100/blood-elf-footer.M1 || exit 2 + -o test/test0100/blood-elf-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0100/blood-elf.M1 \ -f test/test0100/blood-elf-footer.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0100/blood-elf.hex2 || exit 3 + -o test/test0100/blood-elf.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386-debug.hex2 \ - -f test/test0100/blood-elf.hex2 \ - --LittleEndian \ - --architecture x86 \ - --BaseAddress 0x8048000 \ - -o test/results/test0100-x86-binary \ - --exec_enable || exit 4 +hex2 \ + -f test/common_x86/ELF-i386-debug.hex2 \ + -f test/test0100/blood-elf.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0100-x86-binary \ + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0101/hello-aarch64.sh b/test/test0101/hello-aarch64.sh index 4582015..424e649 100755 --- a/test/test0101/hello-aarch64.sh +++ b/test/test0101/hello-aarch64.sh @@ -18,7 +18,8 @@ set -x # Build the test -./bin/M2-Planet --architecture aarch64 \ +./bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ @@ -29,30 +30,38 @@ set -x -f functions/numerate_number.c \ -f test/test0101/hex2_linker.c \ --debug \ - -o test/test0101/hex2_linker.M1 || exit 1 + -o test/test0101/hex2_linker.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0101/hex2_linker.M1 \ +blood-elf \ + --64 \ + -f test/test0101/hex2_linker.M1 \ --entry _start \ - -o test/test0101/hex2_linker-footer.M1 || exit 2 + -o test/test0101/hex2_linker-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0101/hex2_linker.M1 \ -f test/test0101/hex2_linker-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0101/hex2_linker.hex2 || exit 3 + -o test/test0101/hex2_linker.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ -f test/test0101/hex2_linker.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0101-aarch64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0101/hello-amd64.sh b/test/test0101/hello-amd64.sh index d478044..cefc3ea 100755 --- a/test/test0101/hello-amd64.sh +++ b/test/test0101/hello-amd64.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/exit.c \ +./bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/exit.c \ -f test/common_amd64/functions/file.c \ -f functions/file_print.c \ -f test/common_amd64/functions/malloc.c \ @@ -29,30 +31,38 @@ set -x -f test/test0101/hex2_linker.c \ --debug \ --bootstrap-mode \ - -o test/test0101/hex2_linker.M1 || exit 1 + -o test/test0101/hex2_linker.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0101/hex2_linker.M1 \ +blood-elf \ + --64 \ + -f test/test0101/hex2_linker.M1 \ --entry _start \ - -o test/test0101/hex2_linker-footer.M1 || exit 2 + -o test/test0101/hex2_linker-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0101/hex2_linker.M1 \ -f test/test0101/hex2_linker-footer.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0101/hex2_linker.hex2 || exit 3 + -o test/test0101/hex2_linker.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64-debug.hex2 \ +hex2 \ + -f test/common_amd64/ELF-amd64-debug.hex2 \ -f test/test0101/hex2_linker.hex2 \ --LittleEndian \ --architecture amd64 \ --BaseAddress 0x00600000 \ -o test/results/test0101-amd64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0101/hello-armv7l.sh b/test/test0101/hello-armv7l.sh index 12a6c7f..c8b5da6 100755 --- a/test/test0101/hello-armv7l.sh +++ b/test/test0101/hello-armv7l.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/exit.c \ +./bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/exit.c \ -f test/common_armv7l/functions/file.c \ -f functions/file_print.c \ -f test/common_armv7l/functions/malloc.c \ @@ -29,30 +31,37 @@ set -x -f test/test0101/hex2_linker.c \ --debug \ --bootstrap-mode \ - -o test/test0101/hex2_linker.M1 || exit 1 + -o test/test0101/hex2_linker.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0101/hex2_linker.M1 \ +blood-elf \ + -f test/test0101/hex2_linker.M1 \ --entry _start \ - -o test/test0101/hex2_linker-footer.M1 || exit 2 + -o test/test0101/hex2_linker-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0101/hex2_linker.M1 \ -f test/test0101/hex2_linker-footer.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0101/hex2_linker.hex2 || exit 3 + -o test/test0101/hex2_linker.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l-debug.hex2 \ +hex2 \ + -f test/common_armv7l/ELF-armv7l-debug.hex2 \ -f test/test0101/hex2_linker.hex2 \ --LittleEndian \ --architecture armv7l \ --BaseAddress 0x10000 \ -o test/results/test0101-armv7l-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0101/hello-knight-posix.sh b/test/test0101/hello-knight-posix.sh index f010686..12b4045 100755 --- a/test/test0101/hello-knight-posix.sh +++ b/test/test0101/hello-knight-posix.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/exit.c \ +./bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/exit.c \ -f test/common_knight/functions/file.c \ -f functions/file_print.c \ -f test/common_knight/functions/malloc.c \ @@ -28,24 +30,29 @@ set -x -f test/common_knight/functions/stat.c \ -f test/test0101/hex2_linker.c \ --bootstrap-mode \ - -o test/test0101/hex2_linker.M1 || exit 1 + -o test/test0101/hex2_linker.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0101/hex2_linker.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0101/hex2_linker.hex2 || exit 3 + -o test/test0101/hex2_linker.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 \ +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ -f test/test0101/hex2_linker.hex2 \ --BigEndian \ --architecture knight-posix \ --BaseAddress 0x00 \ -o test/results/test0101-knight-posix-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0101/hello-x86.sh b/test/test0101/hello-x86.sh index 9b6fbce..f836a90 100755 --- a/test/test0101/hello-x86.sh +++ b/test/test0101/hello-x86.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture x86 -f test/common_x86/functions/exit.c \ +./bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/exit.c \ -f test/common_x86/functions/file.c \ -f functions/file_print.c \ -f test/common_x86/functions/malloc.c \ @@ -29,30 +31,37 @@ set -x -f test/test0101/hex2_linker.c \ --debug \ --bootstrap-mode \ - -o test/test0101/hex2_linker.M1 || exit 1 + -o test/test0101/hex2_linker.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0101/hex2_linker.M1 \ +blood-elf \ + -f test/test0101/hex2_linker.M1 \ --entry _start \ - -o test/test0101/hex2_linker-footer.M1 || exit 2 + -o test/test0101/hex2_linker-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0101/hex2_linker.M1 \ -f test/test0101/hex2_linker-footer.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0101/hex2_linker.hex2 || exit 3 + -o test/test0101/hex2_linker.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386-debug.hex2 \ +hex2 \ + -f test/common_x86/ELF-i386-debug.hex2 \ -f test/test0101/hex2_linker.hex2 \ --LittleEndian \ --architecture x86 \ --BaseAddress 0x8048000 \ -o test/results/test0101-x86-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0102/hello-aarch64.sh b/test/test0102/hello-aarch64.sh index 384fb1f..1fa7977 100755 --- a/test/test0102/hello-aarch64.sh +++ b/test/test0102/hello-aarch64.sh @@ -18,7 +18,8 @@ set -x # Build the test -./bin/M2-Planet --architecture aarch64 \ +./bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ @@ -31,30 +32,38 @@ set -x -f functions/require.c \ -f test/test0102/M1-macro.c \ --debug \ - -o test/test0102/M1-macro.M1 || exit 1 + -o test/test0102/M1-macro.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0102/M1-macro.M1 \ +blood-elf \ + --64 \ + -f test/test0102/M1-macro.M1 \ --entry _start \ - -o test/test0102/M1-macro-footer.M1 || exit 2 + -o test/test0102/M1-macro-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0102/M1-macro.M1 \ -f test/test0102/M1-macro-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0102/M1-macro.hex2 || exit 3 + -o test/test0102/M1-macro.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ -f test/test0102/M1-macro.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0102-aarch64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0102/hello-amd64.sh b/test/test0102/hello-amd64.sh index 0b6813b..47d958b 100755 --- a/test/test0102/hello-amd64.sh +++ b/test/test0102/hello-amd64.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/exit.c \ +./bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/exit.c \ -f test/common_amd64/functions/file.c \ -f functions/file_print.c \ -f test/common_amd64/functions/malloc.c \ @@ -30,30 +32,38 @@ set -x -f test/test0102/M1-macro.c \ --debug \ --bootstrap-mode \ - -o test/test0102/M1-macro.M1 || exit 1 + -o test/test0102/M1-macro.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0102/M1-macro.M1 \ +blood-elf \ + --64 \ + -f test/test0102/M1-macro.M1 \ --entry _start \ - -o test/test0102/M1-macro-footer.M1 || exit 2 + -o test/test0102/M1-macro-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0102/M1-macro.M1 \ -f test/test0102/M1-macro-footer.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0102/M1-macro.hex2 || exit 3 + -o test/test0102/M1-macro.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64-debug.hex2 \ +hex2 \ + -f test/common_amd64/ELF-amd64-debug.hex2 \ -f test/test0102/M1-macro.hex2 \ --LittleEndian \ --architecture amd64 \ --BaseAddress 0x00600000 \ -o test/results/test0102-amd64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0102/hello-armv7l.sh b/test/test0102/hello-armv7l.sh index 4e4b482..2e31f01 100755 --- a/test/test0102/hello-armv7l.sh +++ b/test/test0102/hello-armv7l.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/exit.c \ +./bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/exit.c \ -f test/common_armv7l/functions/file.c \ -f functions/file_print.c \ -f test/common_armv7l/functions/malloc.c \ @@ -30,30 +32,37 @@ set -x -f test/test0102/M1-macro.c \ --debug \ --bootstrap-mode \ - -o test/test0102/M1-macro.M1 || exit 1 + -o test/test0102/M1-macro.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0102/M1-macro.M1 \ +blood-elf \ + -f test/test0102/M1-macro.M1 \ --entry _start \ - -o test/test0102/M1-macro-footer.M1 || exit 2 + -o test/test0102/M1-macro-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0102/M1-macro.M1 \ -f test/test0102/M1-macro-footer.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0102/M1-macro.hex2 || exit 3 + -o test/test0102/M1-macro.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l-debug.hex2 \ +hex2 \ + -f test/common_armv7l/ELF-armv7l-debug.hex2 \ -f test/test0102/M1-macro.hex2 \ --LittleEndian \ --architecture armv7l \ --BaseAddress 0x10000 \ -o test/results/test0102-armv7l-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0102/hello-knight-posix.sh b/test/test0102/hello-knight-posix.sh index 976c01f..cb581e1 100755 --- a/test/test0102/hello-knight-posix.sh +++ b/test/test0102/hello-knight-posix.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/exit.c \ +./bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/exit.c \ -f test/common_knight/functions/file.c \ -f functions/file_print.c \ -f test/common_knight/functions/malloc.c \ @@ -29,24 +31,29 @@ set -x -f functions/require.c \ -f test/test0102/M1-macro.c \ --bootstrap-mode \ - -o test/test0102/M1-macro.M1 || exit 1 + -o test/test0102/M1-macro.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0102/M1-macro.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0102/M1-macro.hex2 || exit 3 + -o test/test0102/M1-macro.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 \ +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ -f test/test0102/M1-macro.hex2 \ --BigEndian \ --architecture knight-posix \ --BaseAddress 0x00 \ -o test/results/test0102-knight-posix-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0102/hello-x86.sh b/test/test0102/hello-x86.sh index 907bca9..e835f91 100755 --- a/test/test0102/hello-x86.sh +++ b/test/test0102/hello-x86.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture x86 -f test/common_x86/functions/exit.c \ +./bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/exit.c \ -f test/common_x86/functions/file.c \ -f functions/file_print.c \ -f test/common_x86/functions/malloc.c \ @@ -30,30 +32,37 @@ set -x -f test/test0102/M1-macro.c \ --debug \ --bootstrap-mode \ - -o test/test0102/M1-macro.M1 || exit 1 + -o test/test0102/M1-macro.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0102/M1-macro.M1 \ +blood-elf \ + -f test/test0102/M1-macro.M1 \ --entry _start \ - -o test/test0102/M1-macro-footer.M1 || exit 2 + -o test/test0102/M1-macro-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0102/M1-macro.M1 \ -f test/test0102/M1-macro-footer.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0102/M1-macro.hex2 || exit 3 + -o test/test0102/M1-macro.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386-debug.hex2 \ +hex2 \ + -f test/common_x86/ELF-i386-debug.hex2 \ -f test/test0102/M1-macro.hex2 \ --LittleEndian \ --architecture x86 \ --BaseAddress 0x8048000 \ -o test/results/test0102-x86-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0103/hello-aarch64.sh b/test/test0103/hello-aarch64.sh index febcf42..c9761e9 100755 --- a/test/test0103/hello-aarch64.sh +++ b/test/test0103/hello-aarch64.sh @@ -18,7 +18,8 @@ set -x # Build the test -./bin/M2-Planet --architecture aarch64 \ +./bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ @@ -27,30 +28,38 @@ set -x -f functions/match.c \ -f test/test0103/get_machine.c \ --debug \ - -o test/test0103/get_machine.M1 || exit 1 + -o test/test0103/get_machine.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0103/get_machine.M1 \ +blood-elf \ + --64 \ + -f test/test0103/get_machine.M1 \ --entry _start \ - -o test/test0103/get_machine-footer.M1 || exit 2 + -o test/test0103/get_machine-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0103/get_machine.M1 \ -f test/test0103/get_machine-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0103/get_machine.hex2 || exit 3 + -o test/test0103/get_machine.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ -f test/test0103/get_machine.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0103-aarch64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0103/hello-amd64.sh b/test/test0103/hello-amd64.sh index 52b8243..ede0268 100755 --- a/test/test0103/hello-amd64.sh +++ b/test/test0103/hello-amd64.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/exit.c \ +./bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/exit.c \ -f test/common_amd64/functions/file.c \ -f functions/file_print.c \ -f test/common_amd64/functions/malloc.c \ @@ -27,30 +29,38 @@ set -x -f test/test0103/get_machine.c \ --debug \ --bootstrap-mode \ - -o test/test0103/get_machine.M1 || exit 1 + -o test/test0103/get_machine.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0103/get_machine.M1 \ +blood-elf \ + --64 \ + -f test/test0103/get_machine.M1 \ --entry _start \ - -o test/test0103/get_machine-footer.M1 || exit 2 + -o test/test0103/get_machine-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0103/get_machine.M1 \ -f test/test0103/get_machine-footer.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0103/get_machine.hex2 || exit 3 + -o test/test0103/get_machine.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64-debug.hex2 \ +hex2 \ + -f test/common_amd64/ELF-amd64-debug.hex2 \ -f test/test0103/get_machine.hex2 \ --LittleEndian \ --architecture amd64 \ --BaseAddress 0x00600000 \ -o test/results/test0103-amd64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0103/hello-armv7l.sh b/test/test0103/hello-armv7l.sh index 4ec4b47..529b120 100755 --- a/test/test0103/hello-armv7l.sh +++ b/test/test0103/hello-armv7l.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/exit.c \ +./bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/exit.c \ -f test/common_armv7l/functions/file.c \ -f functions/file_print.c \ -f test/common_armv7l/functions/malloc.c \ @@ -27,30 +29,37 @@ set -x -f test/test0103/get_machine.c \ --debug \ --bootstrap-mode \ - -o test/test0103/get_machine.M1 || exit 1 + -o test/test0103/get_machine.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0103/get_machine.M1 \ +blood-elf \ + -f test/test0103/get_machine.M1 \ --entry _start \ - -o test/test0103/get_machine-footer.M1 || exit 2 + -o test/test0103/get_machine-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0103/get_machine.M1 \ -f test/test0103/get_machine-footer.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0103/get_machine.hex2 || exit 3 + -o test/test0103/get_machine.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l-debug.hex2 \ +hex2 \ + -f test/common_armv7l/ELF-armv7l-debug.hex2 \ -f test/test0103/get_machine.hex2 \ --LittleEndian \ --architecture armv7l \ --BaseAddress 0x10000 \ -o test/results/test0103-armv7l-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0103/hello-knight-posix.sh b/test/test0103/hello-knight-posix.sh index 225f4ee..8684ff1 100755 --- a/test/test0103/hello-knight-posix.sh +++ b/test/test0103/hello-knight-posix.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture knight-posix -f test/common_knight/functions/exit.c \ +./bin/M2-Planet \ + --architecture knight-posix \ + -f test/common_knight/functions/exit.c \ -f test/common_knight/functions/file.c \ -f functions/file_print.c \ -f test/common_knight/functions/malloc.c \ @@ -26,24 +28,29 @@ set -x -f functions/match.c \ -f test/test0103/get_machine.c \ --bootstrap-mode \ - -o test/test0103/get_machine.M1 || exit 1 + -o test/test0103/get_machine.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0103/get_machine.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0103/get_machine.hex2 || exit 3 + -o test/test0103/get_machine.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 \ +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ -f test/test0103/get_machine.hex2 \ --BigEndian \ --architecture knight-posix \ --BaseAddress 0x00 \ -o test/results/test0103-knight-posix-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0103/hello-x86.sh b/test/test0103/hello-x86.sh index bb34721..701d9fd 100755 --- a/test/test0103/hello-x86.sh +++ b/test/test0103/hello-x86.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture x86 -f test/common_x86/functions/exit.c \ +./bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/exit.c \ -f test/common_x86/functions/file.c \ -f functions/file_print.c \ -f test/common_x86/functions/malloc.c \ @@ -27,30 +29,37 @@ set -x -f test/test0103/get_machine.c \ --debug \ --bootstrap-mode \ - -o test/test0103/get_machine.M1 || exit 1 + -o test/test0103/get_machine.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0103/get_machine.M1 \ +blood-elf \ + -f test/test0103/get_machine.M1 \ --entry _start \ - -o test/test0103/get_machine-footer.M1 || exit 2 + -o test/test0103/get_machine-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0103/get_machine.M1 \ -f test/test0103/get_machine-footer.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0103/get_machine.hex2 || exit 3 + -o test/test0103/get_machine.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386-debug.hex2 \ +hex2 \ + -f test/common_x86/ELF-i386-debug.hex2 \ -f test/test0103/get_machine.hex2 \ --LittleEndian \ --architecture x86 \ --BaseAddress 0x8048000 \ -o test/results/test0103-x86-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0104/hello-aarch64.sh b/test/test0104/hello-aarch64.sh index 62c20ba..c849bbb 100755 --- a/test/test0104/hello-aarch64.sh +++ b/test/test0104/hello-aarch64.sh @@ -18,7 +18,8 @@ set -x # Build the test -./bin/M2-Planet --architecture aarch64 \ +./bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ @@ -29,30 +30,38 @@ set -x -f functions/numerate_number.c \ -f test/test0104/kaem.c \ --debug \ - -o test/test0104/kaem.M1 || exit 1 + -o test/test0104/kaem.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0104/kaem.M1 \ +blood-elf \ + --64 \ + -f test/test0104/kaem.M1 \ --entry _start \ - -o test/test0104/kaem-footer.M1 || exit 2 + -o test/test0104/kaem-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0104/kaem.M1 \ -f test/test0104/kaem-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0104/kaem.hex2 || exit 3 + -o test/test0104/kaem.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ -f test/test0104/kaem.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0104-aarch64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] then diff --git a/test/test0104/hello-amd64.sh b/test/test0104/hello-amd64.sh index 802fca3..fa33689 100755 --- a/test/test0104/hello-amd64.sh +++ b/test/test0104/hello-amd64.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture amd64 -f test/common_amd64/functions/exit.c \ +./bin/M2-Planet \ + --architecture amd64 \ + -f test/common_amd64/functions/exit.c \ -f test/common_amd64/functions/file.c \ -f functions/file_print.c \ -f test/common_amd64/functions/malloc.c \ @@ -30,30 +32,38 @@ set -x -f test/test0104/kaem.c \ --debug \ --bootstrap-mode \ - -o test/test0104/kaem.M1 || exit 1 + -o test/test0104/kaem.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0104/kaem.M1 \ +blood-elf \ + --64 \ + -f test/test0104/kaem.M1 \ --entry _start \ - -o test/test0104/kaem-footer.M1 || exit 2 + -o test/test0104/kaem-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0104/kaem.M1 \ -f test/test0104/kaem-footer.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0104/kaem.hex2 || exit 3 + -o test/test0104/kaem.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64-debug.hex2 \ +hex2 \ + -f test/common_amd64/ELF-amd64-debug.hex2 \ -f test/test0104/kaem.hex2 \ --LittleEndian \ --architecture amd64 \ --BaseAddress 0x00600000 \ -o test/results/test0104-amd64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] then diff --git a/test/test0104/hello-armv7l.sh b/test/test0104/hello-armv7l.sh index c52fac5..719a4ef 100755 --- a/test/test0104/hello-armv7l.sh +++ b/test/test0104/hello-armv7l.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/exit.c \ +./bin/M2-Planet \ + --architecture armv7l \ + -f test/common_armv7l/functions/exit.c \ -f test/common_armv7l/functions/file.c \ -f functions/file_print.c \ -f test/common_armv7l/functions/malloc.c \ @@ -30,30 +32,37 @@ set -x -f test/test0104/kaem.c \ --debug \ --bootstrap-mode \ - -o test/test0104/kaem.M1 || exit 1 + -o test/test0104/kaem.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0104/kaem.M1 \ +blood-elf \ + -f test/test0104/kaem.M1 \ --entry _start \ - -o test/test0104/kaem-footer.M1 || exit 2 + -o test/test0104/kaem-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0104/kaem.M1 \ -f test/test0104/kaem-footer.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0104/kaem.hex2 || exit 3 + -o test/test0104/kaem.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l-debug.hex2 \ +hex2 \ + -f test/common_armv7l/ELF-armv7l-debug.hex2 \ -f test/test0104/kaem.hex2 \ --LittleEndian \ --architecture armv7l \ --BaseAddress 0x10000 \ -o test/results/test0104-armv7l-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] then diff --git a/test/test0104/hello-x86.sh b/test/test0104/hello-x86.sh index 4be3240..ed7de2a 100755 --- a/test/test0104/hello-x86.sh +++ b/test/test0104/hello-x86.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture x86 -f test/common_x86/functions/exit.c \ +./bin/M2-Planet \ + --architecture x86 \ + -f test/common_x86/functions/exit.c \ -f test/common_x86/functions/file.c \ -f functions/file_print.c \ -f test/common_x86/functions/malloc.c \ @@ -30,30 +32,37 @@ set -x -f test/test0104/kaem.c \ --debug \ --bootstrap-mode \ - -o test/test0104/kaem.M1 || exit 1 + -o test/test0104/kaem.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0104/kaem.M1 \ +blood-elf \ + -f test/test0104/kaem.M1 \ --entry _start \ - -o test/test0104/kaem-footer.M1 || exit 2 + -o test/test0104/kaem-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0104/kaem.M1 \ -f test/test0104/kaem-footer.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0104/kaem.hex2 || exit 3 + -o test/test0104/kaem.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386-debug.hex2 \ +hex2 \ + -f test/common_x86/ELF-i386-debug.hex2 \ -f test/test0104/kaem.hex2 \ --LittleEndian \ --architecture x86 \ --BaseAddress 0x8048000 \ -o test/results/test0104-x86-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] then diff --git a/test/test0105/hello-aarch64.sh b/test/test0105/hello-aarch64.sh index 71b8d01..9f110f4 100755 --- a/test/test0105/hello-aarch64.sh +++ b/test/test0105/hello-aarch64.sh @@ -18,7 +18,8 @@ set -x # Build the test -./bin/M2-Planet --architecture aarch64 \ +./bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ @@ -34,30 +35,38 @@ set -x -f test/test0105/lisp_print.c \ -f test/test0105/lisp_read.c \ --debug \ - -o test/test0105/lisp.M1 || exit 1 + -o test/test0105/lisp.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0105/lisp.M1 \ +blood-elf \ + --64 \ + -f test/test0105/lisp.M1 \ --entry _start \ - -o test/test0105/lisp-footer.M1 || exit 2 + -o test/test0105/lisp-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0105/lisp.M1 \ -f test/test0105/lisp-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0105/lisp.hex2 || exit 3 + -o test/test0105/lisp.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ -f test/test0105/lisp.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0105-aarch64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0105/hello-amd64.sh b/test/test0105/hello-amd64.sh index ba13ea9..279eeca 100755 --- a/test/test0105/hello-amd64.sh +++ b/test/test0105/hello-amd64.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture amd64 -f test/test0105/lisp.h \ +./bin/M2-Planet \ + --architecture amd64 \ + -f test/test0105/lisp.h \ -f test/common_amd64/functions/malloc.c \ -f functions/calloc.c \ -f functions/in_set.c \ @@ -33,30 +35,38 @@ set -x -f test/test0105/lisp_read.c \ --debug \ --bootstrap-mode \ - -o test/test0105/lisp.M1 || exit 1 + -o test/test0105/lisp.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test0105/lisp.M1 \ +blood-elf \ + --64 \ + -f test/test0105/lisp.M1 \ --entry _start \ - -o test/test0105/lisp-footer.M1 || exit 2 + -o test/test0105/lisp-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0105/lisp.M1 \ -f test/test0105/lisp-footer.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0105/lisp.hex2 || exit 3 + -o test/test0105/lisp.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64-debug.hex2 \ +hex2 \ + -f test/common_amd64/ELF-amd64-debug.hex2 \ -f test/test0105/lisp.hex2 \ --LittleEndian \ --architecture amd64 \ --BaseAddress 0x00600000 \ -o test/results/test0105-amd64-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0105/hello-armv7l.sh b/test/test0105/hello-armv7l.sh index 31da9b0..eb8c2ce 100755 --- a/test/test0105/hello-armv7l.sh +++ b/test/test0105/hello-armv7l.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture armv7l -f test/test0105/lisp.h \ +./bin/M2-Planet \ + --architecture armv7l \ + -f test/test0105/lisp.h \ -f test/common_armv7l/functions/malloc.c \ -f functions/calloc.c \ -f functions/in_set.c \ @@ -33,30 +35,37 @@ set -x -f test/test0105/lisp_read.c \ --debug \ --bootstrap-mode \ - -o test/test0105/lisp.M1 || exit 1 + -o test/test0105/lisp.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0105/lisp.M1 \ +blood-elf \ + -f test/test0105/lisp.M1 \ --entry _start \ - -o test/test0105/lisp-footer.M1 || exit 2 + -o test/test0105/lisp-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0105/lisp.M1 \ -f test/test0105/lisp-footer.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0105/lisp.hex2 || exit 3 + -o test/test0105/lisp.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l-debug.hex2 \ +hex2 \ + -f test/common_armv7l/ELF-armv7l-debug.hex2 \ -f test/test0105/lisp.hex2 \ --LittleEndian \ --architecture armv7l \ --BaseAddress 0x10000 \ -o test/results/test0105-armv7l-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0105/hello-x86.sh b/test/test0105/hello-x86.sh index 92bd592..917f512 100755 --- a/test/test0105/hello-x86.sh +++ b/test/test0105/hello-x86.sh @@ -17,7 +17,9 @@ set -x # Build the test -./bin/M2-Planet --architecture x86 -f test/test0105/lisp.h \ +./bin/M2-Planet \ + --architecture x86 \ + -f test/test0105/lisp.h \ -f test/common_x86/functions/malloc.c \ -f functions/calloc.c \ -f functions/in_set.c \ @@ -33,30 +35,37 @@ set -x -f test/test0105/lisp_read.c \ --debug \ --bootstrap-mode \ - -o test/test0105/lisp.M1 || exit 1 + -o test/test0105/lisp.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test0105/lisp.M1 \ +blood-elf \ + -f test/test0105/lisp.M1 \ --entry _start \ - -o test/test0105/lisp-footer.M1 || exit 2 + -o test/test0105/lisp-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0105/lisp.M1 \ -f test/test0105/lisp-footer.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0105/lisp.hex2 || exit 3 + -o test/test0105/lisp.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386-debug.hex2 \ +hex2 \ + -f test/common_x86/ELF-i386-debug.hex2 \ -f test/test0105/lisp.hex2 \ --LittleEndian \ --architecture x86 \ --BaseAddress 0x8048000 \ -o test/results/test0105-x86-binary \ - --exec_enable || exit 4 + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test0106/hello-aarch64.sh b/test/test0106/hello-aarch64.sh index 151c67e..cf2c9c3 100755 --- a/test/test0106/hello-aarch64.sh +++ b/test/test0106/hello-aarch64.sh @@ -18,36 +18,45 @@ set -ex # Build the test -bin/M2-Planet --architecture aarch64 \ +bin/M2-Planet \ + --architecture aarch64 \ -f M2libc/AArch64/Linux/unistd.h \ -f M2libc/stdlib.c \ -f M2libc/AArch64/Linux/fcntl.h \ -f M2libc/stdio.c \ -f test/test0106/cc500.c \ --debug \ - -o test/test0106/cc0.M1 || exit 1 + -o test/test0106/cc0.M1 \ + || exit 1 -blood-elf --64 -f test/test0106/cc0.M1 \ +blood-elf \ + --64 \ + -f test/test0106/cc0.M1 \ --entry _start \ - -o test/test0106/cc0-footer.M1 || exit 2 + -o test/test0106/cc0-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f M2libc/AArch64/aarch64_defs.M1 \ +M1 \ + -f M2libc/AArch64/aarch64_defs.M1 \ -f M2libc/AArch64/libc-full.M1 \ -f test/test0106/cc0.M1 \ -f test/test0106/cc0-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test0106/cc0.hex2 || exit 2 + -o test/test0106/cc0.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f M2libc/AArch64/ELF-aarch64-debug.hex2 \ -f test/test0106/cc0.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ -o test/results/test0106-aarch64-binary \ - --exec_enable || exit 3 + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test0106/hello-amd64.sh b/test/test0106/hello-amd64.sh index 62bab3e..12640e9 100755 --- a/test/test0106/hello-amd64.sh +++ b/test/test0106/hello-amd64.sh @@ -17,25 +17,37 @@ set -ex # Build the test -bin/M2-Planet --architecture amd64 \ +bin/M2-Planet \ + --architecture amd64 \ -f test/common_amd64/functions/putchar.c \ -f test/common_amd64/functions/getchar.c \ -f test/common_amd64/functions/exit.c \ -f test/common_amd64/functions/malloc.c \ -f test/test0106/cc500.c \ --bootstrap-mode \ - -o test/test0106/cc0.M1 || exit 1 + -o test/test0106/cc0.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test0106/cc0.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test0106/cc0.hex2 || exit 2 + -o test/test0106/cc0.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64.hex2 -f test/test0106/cc0.hex2 --LittleEndian --architecture amd64 --BaseAddress 0x00600000 -o test/results/test0106-amd64-binary --exec_enable || exit 3 +hex2 \ + -f test/common_amd64/ELF-amd64.hex2 \ + -f test/test0106/cc0.hex2 \ + --LittleEndian \ + --architecture amd64 \ + --BaseAddress 0x00600000 \ + -o test/results/test0106-amd64-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test0106/hello-armv7l.sh b/test/test0106/hello-armv7l.sh index 1b5297a..10852dc 100755 --- a/test/test0106/hello-armv7l.sh +++ b/test/test0106/hello-armv7l.sh @@ -17,25 +17,37 @@ set -ex # Build the test -bin/M2-Planet --architecture armv7l \ +bin/M2-Planet \ + --architecture armv7l \ -f test/common_armv7l/functions/putchar.c \ -f test/common_armv7l/functions/getchar.c \ -f test/common_armv7l/functions/exit.c \ -f test/common_armv7l/functions/malloc.c \ -f test/test0106/cc500.c \ --bootstrap-mode \ - -o test/test0106/cc0.M1 || exit 1 + -o test/test0106/cc0.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test0106/cc0.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test0106/cc0.hex2 || exit 2 + -o test/test0106/cc0.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0106/cc0.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0106-armv7l-binary --exec_enable || exit 3 +hex2 \ + -f test/common_armv7l/ELF-armv7l.hex2 \ + -f test/test0106/cc0.hex2 \ + --LittleEndian \ + --architecture armv7l \ + --BaseAddress 0x10000 \ + -o test/results/test0106-armv7l-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test0106/hello-knight-native.sh b/test/test0106/hello-knight-native.sh index 93f2685..cf83d9e 100755 --- a/test/test0106/hello-knight-native.sh +++ b/test/test0106/hello-knight-native.sh @@ -17,25 +17,36 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-native \ +bin/M2-Planet \ + --architecture knight-native \ -f test/common_knight/functions/putchar-tape2.c \ -f test/common_knight/functions/getchar-tape1.c \ -f test/common_knight/functions/exit-native.c \ -f test/common_knight/functions/malloc.c \ -f test/test0106/cc500.c \ --bootstrap-mode \ - -o test/test0106/cc0.M1 || exit 1 + -o test/test0106/cc0.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight-native_defs.M1 \ +M1 \ + -f test/common_knight/knight-native_defs.M1 \ -f test/common_knight/libc-native-file.M1 \ -f test/test0106/cc0.M1 \ --BigEndian \ --architecture knight-native \ - -o test/test0106/cc0.hex2 || exit 2 + -o test/test0106/cc0.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/test0106/cc0.hex2 --BigEndian --architecture knight-native --BaseAddress 0x00 -o test/results/test0106-knight-native-binary --exec_enable || exit 3 +hex2 \ + -f test/test0106/cc0.hex2 \ + --BigEndian \ + --architecture knight-native \ + --BaseAddress 0x00 \ + -o test/results/test0106-knight-native-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0106/hello-knight-posix.sh b/test/test0106/hello-knight-posix.sh index e66c0a2..2373ebb 100755 --- a/test/test0106/hello-knight-posix.sh +++ b/test/test0106/hello-knight-posix.sh @@ -17,25 +17,37 @@ set -ex # Build the test -bin/M2-Planet --architecture knight-posix \ +bin/M2-Planet \ + --architecture knight-posix \ -f test/common_knight/functions/putchar.c \ -f test/common_knight/functions/getchar.c \ -f test/common_knight/functions/exit.c \ -f test/common_knight/functions/malloc.c \ -f test/test0106/cc500.c \ --bootstrap-mode \ - -o test/test0106/cc0.M1 || exit 1 + -o test/test0106/cc0.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test0106/cc0.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test0106/cc0.hex2 || exit 2 + -o test/test0106/cc0.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 -f test/test0106/cc0.hex2 --BigEndian --architecture knight-posix --BaseAddress 0x00 -o test/results/test0106-knight-posix-binary --exec_enable || exit 3 +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ + -f test/test0106/cc0.hex2 \ + --BigEndian \ + --architecture knight-posix \ + --BaseAddress 0x00 \ + -o test/results/test0106-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test0106/hello-x86.sh b/test/test0106/hello-x86.sh index 7d68b28..93341cd 100755 --- a/test/test0106/hello-x86.sh +++ b/test/test0106/hello-x86.sh @@ -17,25 +17,37 @@ set -ex # Build the test -bin/M2-Planet --architecture x86 \ +bin/M2-Planet \ + --architecture x86 \ -f test/common_x86/functions/putchar.c \ -f test/common_x86/functions/getchar.c \ -f test/common_x86/functions/exit.c \ -f test/common_x86/functions/malloc.c \ -f test/test0106/cc500.c \ --bootstrap-mode \ - -o test/test0106/cc0.M1 || exit 1 + -o test/test0106/cc0.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test0106/cc0.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test0106/cc0.hex2 || exit 2 + -o test/test0106/cc0.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0106/cc0.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0106-x86-binary --exec_enable || exit 3 +hex2 \ + -f test/common_x86/ELF-i386.hex2 \ + -f test/test0106/cc0.hex2 \ + --LittleEndian \ + --architecture x86 \ + --BaseAddress 0x8048000 \ + -o test/results/test0106-x86-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ] diff --git a/test/test1000/hello-aarch64.sh b/test/test1000/hello-aarch64.sh index 681f5de..3ce1bc5 100755 --- a/test/test1000/hello-aarch64.sh +++ b/test/test1000/hello-aarch64.sh @@ -18,7 +18,8 @@ set -ex # Build the test -./bin/M2-Planet --architecture aarch64 \ +./bin/M2-Planet \ + --architecture aarch64 \ -f test/common_aarch64/functions/file.c \ -f test/common_aarch64/functions/malloc.c \ -f functions/calloc.c \ @@ -41,29 +42,38 @@ set -ex -f cc.c \ --debug \ --bootstrap-mode \ - -o test/test1000/cc.M1 || exit 1 + -o test/test1000/cc.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test1000/cc.M1 \ +blood-elf \ + --64 \ + -f test/test1000/cc.M1 \ --entry _start \ - -o test/test1000/cc-footer.M1 || exit 2 + -o test/test1000/cc-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_aarch64/aarch64_defs.M1 \ +M1 \ + -f test/common_aarch64/aarch64_defs.M1 \ -f test/common_aarch64/libc-core.M1 \ -f test/test1000/cc.M1 \ -f test/test1000/cc-footer.M1 \ --LittleEndian \ --architecture aarch64 \ - -o test/test1000/cc.hex2 || exit 3 + -o test/test1000/cc.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_aarch64/ELF-aarch64-debug.hex2 \ +hex2 \ + -f test/common_aarch64/ELF-aarch64-debug.hex2 \ -f test/test1000/cc.hex2 \ --LittleEndian \ --architecture aarch64 \ --BaseAddress 0x400000 \ - -o test/results/test1000-aarch64-binary --exec_enable || exit 4 + -o test/results/test1000-aarch64-binary \ + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ] diff --git a/test/test1000/hello-amd64.sh b/test/test1000/hello-amd64.sh index 31dc544..0f2e560 100755 --- a/test/test1000/hello-amd64.sh +++ b/test/test1000/hello-amd64.sh @@ -17,7 +17,8 @@ set -ex # Build the test -./bin/M2-Planet --architecture amd64 \ +./bin/M2-Planet \ + --architecture amd64 \ -f test/common_amd64/functions/file.c \ -f test/common_amd64/functions/malloc.c \ -f functions/calloc.c \ @@ -40,29 +41,38 @@ set -ex -f cc.c \ --debug \ --bootstrap-mode \ - -o test/test1000/cc.M1 || exit 1 + -o test/test1000/cc.M1 \ + || exit 1 # Build debug footer -blood-elf --64 -f test/test1000/cc.M1 \ +blood-elf \ + --64 \ + -f test/test1000/cc.M1 \ --entry _start \ - -o test/test1000/cc-footer.M1 || exit 2 + -o test/test1000/cc-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_amd64/amd64_defs.M1 \ +M1 \ + -f test/common_amd64/amd64_defs.M1 \ -f test/common_amd64/libc-core.M1 \ -f test/test1000/cc.M1 \ -f test/test1000/cc-footer.M1 \ --LittleEndian \ --architecture amd64 \ - -o test/test1000/cc.hex2 || exit 3 + -o test/test1000/cc.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_amd64/ELF-amd64-debug.hex2 \ +hex2 \ + -f test/common_amd64/ELF-amd64-debug.hex2 \ -f test/test1000/cc.hex2 \ --LittleEndian \ --architecture amd64 \ --BaseAddress 0x00600000 \ - -o test/results/test1000-amd64-binary --exec_enable || exit 4 + -o test/results/test1000-amd64-binary \ + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "amd64" ] diff --git a/test/test1000/hello-armv7l.sh b/test/test1000/hello-armv7l.sh index 89d776b..d82bbaf 100755 --- a/test/test1000/hello-armv7l.sh +++ b/test/test1000/hello-armv7l.sh @@ -17,7 +17,8 @@ set -ex # Build the test -./bin/M2-Planet --architecture armv7l \ +./bin/M2-Planet \ + --architecture armv7l \ -f test/common_armv7l/functions/file.c \ -f test/common_armv7l/functions/malloc.c \ -f functions/calloc.c \ @@ -40,29 +41,37 @@ set -ex -f cc.c \ --debug \ --bootstrap-mode \ - -o test/test1000/cc.M1 || exit 1 + -o test/test1000/cc.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test1000/cc.M1 \ +blood-elf \ + -f test/test1000/cc.M1 \ --entry _start \ - -o test/test1000/cc-footer.M1 || exit 2 + -o test/test1000/cc-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_armv7l/armv7l_defs.M1 \ +M1 \ + -f test/common_armv7l/armv7l_defs.M1 \ -f test/common_armv7l/libc-core.M1 \ -f test/test1000/cc.M1 \ -f test/test1000/cc-footer.M1 \ --LittleEndian \ --architecture armv7l \ - -o test/test1000/cc.hex2 || exit 3 + -o test/test1000/cc.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_armv7l/ELF-armv7l-debug.hex2 \ +hex2 \ + -f test/common_armv7l/ELF-armv7l-debug.hex2 \ -f test/test1000/cc.hex2 \ --LittleEndian \ --architecture armv7l \ --BaseAddress 0x10000 \ - -o test/results/test1000-armv7l-binary --exec_enable || exit 4 + -o test/results/test1000-armv7l-binary \ + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ] diff --git a/test/test1000/hello-knight-posix.sh b/test/test1000/hello-knight-posix.sh index 6c64a80..99180e5 100755 --- a/test/test1000/hello-knight-posix.sh +++ b/test/test1000/hello-knight-posix.sh @@ -17,7 +17,8 @@ set -ex # Build the test -./bin/M2-Planet --architecture knight-posix \ +./bin/M2-Planet \ + --architecture knight-posix \ -f test/common_knight/functions/file.c \ -f test/common_knight/functions/malloc.c \ -f functions/calloc.c \ @@ -40,23 +41,29 @@ set -ex -f cc.c \ --debug \ --bootstrap-mode \ - -o test/test1000/cc.M1 || exit 1 + -o test/test1000/cc.M1 \ + || exit 1 # Macro assemble with libc written in M1-Macro -M1 -f test/common_knight/knight_defs.M1 \ +M1 \ + -f test/common_knight/knight_defs.M1 \ -f test/common_knight/libc-core.M1 \ -f test/test1000/cc.M1 \ --BigEndian \ --architecture knight-posix \ - -o test/test1000/cc.hex2 || exit 2 + -o test/test1000/cc.hex2 \ + || exit 2 # Resolve all linkages -hex2 -f test/common_knight/ELF-knight.hex2 \ +hex2 \ + -f test/common_knight/ELF-knight.hex2 \ -f test/test1000/cc.hex2 \ --BigEndian \ --architecture knight-posix \ --BaseAddress 0x00 \ - -o test/results/test1000-knight-posix-binary --exec_enable || exit 3 + -o test/results/test1000-knight-posix-binary \ + --exec_enable \ + || exit 3 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "knight*" ] diff --git a/test/test1000/hello-x86.sh b/test/test1000/hello-x86.sh index 1201507..2ff3e40 100755 --- a/test/test1000/hello-x86.sh +++ b/test/test1000/hello-x86.sh @@ -17,7 +17,8 @@ set -ex # Build the test -./bin/M2-Planet --architecture x86 \ +./bin/M2-Planet \ + --architecture x86 \ -f test/common_x86/functions/file.c \ -f test/common_x86/functions/malloc.c \ -f functions/calloc.c \ @@ -40,29 +41,37 @@ set -ex -f cc.c \ --debug \ --bootstrap-mode \ - -o test/test1000/cc.M1 || exit 1 + -o test/test1000/cc.M1 \ + || exit 1 # Build debug footer -blood-elf -f test/test1000/cc.M1 \ +blood-elf \ + -f test/test1000/cc.M1 \ --entry _start \ - -o test/test1000/cc-footer.M1 || exit 2 + -o test/test1000/cc-footer.M1 \ + || exit 2 # Macro assemble with libc written in M1-Macro -M1 -f test/common_x86/x86_defs.M1 \ +M1 \ + -f test/common_x86/x86_defs.M1 \ -f test/common_x86/libc-core.M1 \ -f test/test1000/cc.M1 \ -f test/test1000/cc-footer.M1 \ --LittleEndian \ --architecture x86 \ - -o test/test1000/cc.hex2 || exit 3 + -o test/test1000/cc.hex2 \ + || exit 3 # Resolve all linkages -hex2 -f test/common_x86/ELF-i386-debug.hex2 \ +hex2 \ + -f test/common_x86/ELF-i386-debug.hex2 \ -f test/test1000/cc.hex2 \ --LittleEndian \ --architecture x86 \ --BaseAddress 0x8048000 \ - -o test/results/test1000-x86-binary --exec_enable || exit 4 + -o test/results/test1000-x86-binary \ + --exec_enable \ + || exit 4 # Ensure binary works if host machine supports test if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ]