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