Docker based tests should be explicit instead of auto-detected. It is
good that they do not run if docker is not available. It would be bad if
they run when the developer does not expect them to create docker
containers.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
AC_DEFINE([DEBUG_GATHER], [1], [Define if you want C_Gather debugging])
+AC_ARG_ENABLE([docker],
+ [AS_HELP_STRING([--enable-docker], [enable docker based functional tests])],
+ [],
+ [enable_docker=no])
+AM_CONDITIONAL(ENABLE_DOCKER, test "x$enable_docker" != xno)
+
# code coverage?
AC_ARG_ENABLE([coverage],
[AS_HELP_STRING([--enable-coverage], [enable code coverage tracking])],
test/osd/osd-config.sh \
test/osd/osd-bench.sh \
test/ceph-disk.sh \
- test/ceph-disk-root.sh \
test/mon/mon-handle-forward.sh
+if ENABLE_DOCKER
+check_SCRIPTS += \
+ test/ceph-disk-root.sh
+endif
+
EXTRA_DIST += \
$(srcdir)/test/mon/mon-test-helpers.sh \
$(srcdir)/test/osd/osd-test-helpers.sh \