aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-02-28 08:34:08 -0600
committerBrent Cook <busterb@gmail.com>2023-05-27 01:20:54 -0500
commit605328314f266e01c4b670addcb2e5a2991d2f49 (patch)
treea0af3ea787ad33fcc06f67a58105b63cad29493f /scripts
parenta316f8ab8cf79895062c1d1fcc5d47c3d2cc6f6a (diff)
downloadportable-605328314f266e01c4b670addcb2e5a2991d2f49.tar.gz
portable-605328314f266e01c4b670addcb2e5a2991d2f49.tar.bz2
portable-605328314f266e01c4b670addcb2e5a2991d2f49.zip
make it simpler to test on a non-Linux system
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/test b/scripts/test
index 66c4f54..f1fdd83 100755
--- a/scripts/test
+++ b/scripts/test
@@ -1,11 +1,11 @@
1#!/bin/sh 1#!/bin/sh
2set -e 2set -e
3set -x
3 4
4unset CC 5unset CC
5ENABLE_ASM="${ENABLE_ASM:=ON}" 6ENABLE_ASM="${ENABLE_ASM:=ON}"
6 7
7if type apt-get >/dev/null 8if type apt-get >/dev/null 2>&1; then
8then
9 sudo apt-get update 9 sudo apt-get update
10 sudo apt-get install -y cmake ninja-build 10 sudo apt-get install -y cmake ninja-build
11fi 11fi
@@ -53,7 +53,9 @@ elif [ "x$ARCH" = "xmingw32" -o "x$ARCH" = "xmingw64" ]; then
53 CPU=x86_64 53 CPU=x86_64
54 fi 54 fi
55 55
56 sudo apt-get install -y mingw-w64 56 if ! type i686-w64-mingw32-gcc > /dev/null; then
57 sudo apt-get install -y mingw-w64
58 fi
57 59
58 ./configure --host=$CPU-w64-mingw32 60 ./configure --host=$CPU-w64-mingw32
59 make -j 4 61 make -j 4