AC_MSG_FAILURE([no suitable crypto library found])
fi
+AC_ARG_ENABLE([root-make-check],
+ [AS_HELP_STRING([--enable-root-make-check], [enable make check tests that require root privileges])],
+ [],
+ [enable_root_make_check=no])
+AM_CONDITIONAL(ENABLE_ROOT_MAKE_CHECK, test "x$enable_root_make_check" != xno)
+
# profiler?
AC_ARG_WITH([profiler],
[AS_HELP_STRING([--with-profiler], [build extra profiler binaries])],
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])],
fi
}
-#
-# Return true if the working tree is after the commit that
-# enabled docker based tests
-#
-function maybe_enable_docker() {
- local commit=e038b1266b8d427308ab9e498d93a47bd8e3053a
- if git rev-list HEAD | grep --quiet $commit ; then
- echo --enable-docker
- fi
-}
-
function run() {
sudo $(which apt-get yum zypper 2>/dev/null) install -y ccache jq
sudo modprobe rbd
$DRY_RUN ./install-deps.sh || return 1
fi
$DRY_RUN ./autogen.sh || return 1
- $DRY_RUN ./configure $(maybe_enable_docker) --disable-static --with-radosgw --with-debug \
+ $DRY_RUN ./configure "$@" --disable-static --with-radosgw --with-debug --without-lttng \
CC="ccache gcc" CXX="ccache g++" CFLAGS="-Wall -g" CXXFLAGS="-Wall -g" || return 1
$DRY_RUN make -j$(get_processors) || return 1
$DRY_RUN make $(maybe_parallel_make_check) check || return 1
test/osd/osd-config.sh \
test/osd/osd-bench.sh \
test/osd/osd-copy-from.sh \
- test/ceph-disk.sh \
test/mon/mon-handle-forward.sh
-if ENABLE_DOCKER
-check_SCRIPTS += \
- test/ceph-disk-root.sh
+if ENABLE_ROOT_MAKE_CHECK
+check_SCRIPTS += test/ceph-disk-root.sh
+else
+check_SCRIPTS += test/ceph-disk.sh
endif
EXTRA_DIST += \
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Library Public License for more details.
#
-source test/docker-test-helper.sh
-
-supported='([ubuntu]="14.04" [centos]="centos7")'
-main_docker "$@" --all "$supported" --compile
-main_docker "$@" --all "$supported" --user root --dev test/ceph-disk.sh test_activate_dev
+set -e
+sudo test/ceph-disk.sh test_activate_dev
+test/ceph-disk.sh
# Local Variables:
-# compile-command: "cd ../.. ; make -j4 && test/osd/ceph-disk-root.sh"
+# compile-command: "cd ../.. ; make -j4 && test/ceph-disk-root.sh"
# End: