run-tests: Allow overriding the command for running separately for i686 and x86_64

This commit is contained in:
Martin Storsjö committed 2022-10-25 11:09:38 +03:00
1 parent 5c375afc11
commit 3eb7f64593
1 file changed
+13 -6
+13 -6
View File
@@ -63,13 +63,15 @@ if [ -z "$RUN_X86" ]; then
MINGW*|MSYS*)
NATIVE_X86=1
# A non-empty string to trigger running, even if no wrapper is needed.
RUN_X86=" "
RUN_X86_64=" "
RUN_I686=" "
export PATH=.:$PATH
;;
*)
case $(uname -m) in
x86_64)
RUN_X86=wine
: ${RUN_X86_64:=wine}
: ${RUN_I686:=wine}
;;
esac
;;
@@ -101,9 +103,14 @@ if [ -n "$HAS_CFGUARD" ]; then
fi
for arch in $ARCHS; do
case $arch in
i686|x86_64)
RUN="$RUN_X86"
COPY="$COPY_X86"
i686)
RUN="$RUN_I686"
COPY="$COPY_I686"
NATIVE="$NATIVE_X86"
;;
x86_64)
RUN="$RUN_X86_64"
COPY="$COPY_X86_64"
NATIVE="$NATIVE_X86"
;;
armv7)
@@ -289,7 +296,7 @@ for arch in $ARCHS; do
done
$COPY $COPYFILES
fi
if [ -n "$RUN" ]; then
if [ -n "$RUN" ] && [ "$RUN" != "false" ]; then
for test in $RUN_TESTS; do
file=$test.exe
$RUN $file