vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit c8bc1fdbdb7d8db31aa9e8a6f7ab551db9cab4bc parent 21b72931faf26c998c09321cba185c694b78aac4 Author: Marc André Tanner <mat@brain-dump.org> Date: Tue, 14 Feb 2017 14:23:58 +0100 Skip tests if Lua support is not compiled in Diffstat:
| M | lua/test.sh | | | 5 | +++++ |
| M | sam/test.sh | | | 5 | +++++ |
| M | vis/test.sh | | | 5 | +++++ |
3 files changed, 15 insertions(+), 0 deletions(-)
diff --git 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 @@ -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 @@ -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