]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
autotools: add --enable-docker 2648/head
authorLoic Dachary <loic-201408@dachary.org>
Tue, 7 Oct 2014 19:18:00 +0000 (21:18 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 18 Nov 2014 11:20:01 +0000 (12:20 +0100)
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>
configure.ac
src/test/Makefile.am

index dcd42b093ec4180664cd2081774e2be2940c34c8..28e057467361176265e4501693464da6ccc99e78 100644 (file)
@@ -310,6 +310,12 @@ AM_CONDITIONAL(WITH_DEBUG, test "$with_debug" = "yes")
 
 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])],
index 7b07de399181f913010f3c00b6ed151356c023b0..c114a9c7b9e07ae1581cac5da70daba14f527953 100644 (file)
@@ -251,9 +251,13 @@ check_SCRIPTS += \
        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 \