diff options
author | Michael Forney <mforney@mforney.org> | 2021-09-04 13:33:19 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-09-04 13:33:19 -0700 |
commit | a1b0a66e186af524a76747fc990df07b6d325f38 (patch) | |
tree | 8c16b6020a55efa1ce12a83e2d5ac662e2efbdf9 | |
parent | 6f874e47b62705b28175b135b3372a19a8108bf3 (diff) |
test: Add the ability to have architecture-specific tests
-rwxr-xr-x | runtests | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -12,12 +12,16 @@ trap 'rm "$got"' EXIT for test ; do name=${test%.c} + case $name in + *+*) arch=${name##*+} ;; + *) arch=x86_64 ;; + esac if [ -f "$name.qbe" ] ; then want=$name.qbe - set -- $CCQBE -o "$got" "$test" + set -- $CCQBE -t $arch -o "$got" "$test" elif [ -f "$name.pp" ] ; then want=$name.pp - set -- $CCQBE -E -o "$got" "$test" + set -- $CCQBE -t $arch -E -o "$got" "$test" else echo "invalid test '$test'" >&2 set -- false |