summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-03-15 22:34:03 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2022-03-15 22:34:03 +0100
commitcec9855fa0c8d9566d4c9755ef7677f49634bc60 (patch)
tree8723f591f87b69fe34cb8a832eef814430dd9147
parent2416d291417954a1fd7f4945a100f2c125d4d9a6 (diff)
downloadroux-cec9855fa0c8d9566d4c9755ef7677f49634bc60.tar.gz
detect target in tests
-rwxr-xr-xtools/test.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/test.sh b/tools/test.sh
index fc96dba..15cff88 100755
--- a/tools/test.sh
+++ b/tools/test.sh
@@ -83,6 +83,7 @@ init() {
 			testcc "$cc" || cc="cc"
 			;;
 		esac
+		TARGET=`$bin -t?`
 		;;
 	*)
 		echo "Unknown target '$TARGET'."