From 3eb7f6459350fa6c434e4ed5f255694ef4ed3aa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sat, 11 Jun 2022 00:56:15 +0300 Subject: [PATCH] run-tests: Allow overriding the command for running separately for i686 and x86_64 --- run-tests.sh | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index 171a751..0742bf1 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -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