diff options
| -rwxr-xr-x | lua/test.sh | 5 | ||||
| -rwxr-xr-x | sam/test.sh | 5 | ||||
| -rwxr-xr-x | vis/test.sh | 5 |
3 files changed, 15 insertions, 0 deletions
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 |
