diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-02-14 14:23:58 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-02-14 14:25:43 +0100 |
| commit | e491a98a2c79c372bb72aa75e19c5d55f19bffa1 (patch) | |
| tree | 0558f3b9d1806a87f0f61a5abc519e794af52512 /sam | |
| parent | ae1e5701412378be2b6594142651a314cd6c14ca (diff) | |
| download | vis-e491a98a2c79c372bb72aa75e19c5d55f19bffa1.tar.gz vis-e491a98a2c79c372bb72aa75e19c5d55f19bffa1.tar.xz | |
Skip tests if Lua support is not compiled in
Diffstat (limited to 'sam')
| -rwxr-xr-x | sam/test.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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') |
