From 7c069cf6b13e86b52850f94544339df7a09b3916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sat, 17 Mar 2018 23:17:28 +0200 Subject: [PATCH] Allow running tests remotely for armv7/aarch64 --- run-tests.sh | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index 885095b..838b65f 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -17,10 +17,26 @@ for arch in $ARCHS; do $arch-w64-mingw32-clang hello-tls.c -o hello-tls-$arch.exe $arch-w64-mingw32-clang++ hello.cpp -o hello-cpp-$arch.exe -fno-exceptions $arch-w64-mingw32-clang++ hello-exception.cpp -o hello-exception-$arch.exe - if [ "$arch" = "i686" ] || [ "$arch" = "x86_64" ]; then - wine hello-$arch.exe - wine hello-tls-$arch.exe - wine hello-cpp-$arch.exe - wine hello-exception-$arch.exe - fi + case $arch in + i686|x86_64) + RUN=wine + COPY= + ;; + armv7) + RUN="$RUN_ARMV7" + COPY="$COPY_ARMV7" + ;; + aarch64) + RUN="$RUN_AARCH64" + COPY="$COPY_AARCH64" + ;; + esac + for file in hello-$arch.exe hello-tls-$arch.exe hello-cpp-$arch.exe hello-exception-$arch.exe; do + if [ -n "$COPY" ]; then + $COPY $file + fi + if [ -n "$RUN" ]; then + $RUN $file + fi + done done