diff options
| author | Michael Forney <[email protected]> | 2021-10-10 12:47:03 -0700 |
|---|---|---|
| committer | Michael Forney <[email protected]> | 2021-10-10 12:47:44 -0700 |
| commit | 073c33ab2e3cac6e1f5de7299d13ed16916ac7e6 (patch) | |
| tree | b247d68e4f92badc1e16661cff22c46a51585288 /test | |
| parent | 8dd8783aa5b28d4950b9debcf30bd30b367beb7f (diff) | |
Remove requirement for mktemp --suffix option.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test.sh b/test/test.sh index 2584d0a..6999b75 100644 --- a/test/test.sh +++ b/test/test.sh @@ -1,15 +1,15 @@ #!/bin/sh set -eu -tmps="$(mktemp --suffix .s)" -tmpo="$(mktemp --suffix .o)" -tmpb="$(mktemp --suffix .bin)" +tmps="$(mktemp)" +tmpo="$(mktemp)" +tmpb="$(mktemp)" trap "rm -f \"$tmps\" \"$tmpo\" \"$tmpb\"" EXIT t () { echo "$1" > "$tmps" - clang -Wno-everything -c -s "$tmps" -o "$tmpo" + clang -Wno-everything -c -x assembler "$tmps" -o "$tmpo" objcopy -j ".text" -O binary "$tmpo" "$tmpb" want="$(xxd -ps "$tmpb" | head -n 1 | cut -d ' ' -f 2-)" if ! ./minias < "$tmps" > "$tmpo" |
