Allow running tests remotely for armv7/aarch64

This commit is contained in:
Martin Storsjö committed 2018-03-17 23:17:28 +02:00
1 parent 010854bb20
commit 7c069cf6b1
1 file changed
+22 -6
+22 -6
View File
@@ -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