From e491a98a2c79c372bb72aa75e19c5d55f19bffa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 14 Feb 2017 14:23:58 +0100 Subject: Skip tests if Lua support is not compiled in --- lua/test.sh | 5 +++++ sam/test.sh | 5 +++++ vis/test.sh | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/lua/test.sh b/lua/test.sh index 4209f5c..d4193e0 100755 --- a/lua/test.sh +++ b/lua/test.sh @@ -4,6 +4,11 @@ export VIS_PATH=. [ -z "$VIS" ] && VIS="../../vis" $VIS -v +if ! $VIS -v | grep '+lua' >/dev/null 2>&1; then + echo "vis compiled without lua support, skipping tests" + exit 0 +fi + TESTS_OK=0 TESTS_RUN=0 diff --git a/sam/test.sh b/sam/test.sh index a6d5b4e..03b083a 100755 --- a/sam/test.sh +++ b/sam/test.sh @@ -24,6 +24,11 @@ type "$SAM" >/dev/null 2>&1 || { echo "$SAM" $VIS -v +if ! $VIS -v | grep '+lua' >/dev/null 2>&1; then + echo "vis compiled without lua support, skipping tests" + exit 0 +fi + TESTS=$1 [ -z "$TESTS" ] && TESTS=$(find . -name '*.cmd' | sed 's/\.cmd$//g') diff --git a/vis/test.sh b/vis/test.sh index 3b80818..733c9a1 100755 --- a/vis/test.sh +++ b/vis/test.sh @@ -4,6 +4,11 @@ export VIS_PATH=. [ -z "$VIS" ] && VIS="../../vis" $VIS -v +if ! $VIS -v | grep '+lua' >/dev/null 2>&1; then + echo "vis compiled without lua support, skipping tests" + exit 0 +fi + TESTS_OK=0 TESTS_RUN=0 -- cgit v1.2.3