summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/disabled.sh2
-rw-r--r--tests/local.mk14
2 files changed, 12 insertions, 4 deletions
diff --git a/tests/disabled.sh b/tests/disabled.sh
new file mode 100755
index 0000000..53caf82
--- /dev/null
+++ b/tests/disabled.sh
@@ -0,0 +1,2 @@
+printf 'Test suite support disabled\n' 1>&2
+exit 1
diff --git a/tests/local.mk b/tests/local.mk
index 95671bc..0f8fb45 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -1,5 +1,11 @@
-TESTS = \
+tests = \
%reldir%/parse.sh
+if ENABLE_TESTS
+TESTS = $(tests)
+else
+TESTS = %reldir%/disabled.sh
+endif
+
TEST_EXTENSIONS = .sh
SH_LOG_DRIVER = \
AM_TAP_AWK='$(AWK)' \
@@ -7,7 +13,7 @@ SH_LOG_DRIVER = \
TOP_BUILDDIR="$(abs_top_builddir)" \
$(SHELL) $(top_srcdir)/build-aux/tap-driver.sh
EXTRA_DIST += \
- $(TESTS) \
+ $(tests) \
+ %reldir%/disabled.sh \
$(top_srcdir)/build-aux/tap-driver.sh \
- %reldir%/aux/tap-functions.sh \
- %reldir%/parse.sh
+ %reldir%/aux/tap-functions.sh