From 605328314f266e01c4b670addcb2e5a2991d2f49 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Tue, 28 Feb 2023 08:34:08 -0600 Subject: make it simpler to test on a non-Linux system --- scripts/test | 8 +++++--- 1 file 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 @@ #!/bin/sh set -e +set -x unset CC ENABLE_ASM="${ENABLE_ASM:=ON}" -if type apt-get >/dev/null -then +if type apt-get >/dev/null 2>&1; then sudo apt-get update sudo apt-get install -y cmake ninja-build fi @@ -53,7 +53,9 @@ elif [ "x$ARCH" = "xmingw32" -o "x$ARCH" = "xmingw64" ]; then CPU=x86_64 fi - sudo apt-get install -y mingw-w64 + if ! type i686-w64-mingw32-gcc > /dev/null; then + sudo apt-get install -y mingw-w64 + fi ./configure --host=$CPU-w64-mingw32 make -j 4 -- cgit v1.2.3-55-g6feb