]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
run-make-check.sh: use "make check" for running tests
authorKefu Chai <kchai@redhat.com>
Thu, 7 Jul 2016 04:41:54 +0000 (12:41 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 7 Jul 2016 04:41:57 +0000 (12:41 +0800)
"make all" does not offer "ceph-disk" and "ceph-detect-init" for
testing. as they are solely used for testing purpose. instead, these two
python command line packages are installed by the "install" target. so
we need to use "make check" to 1) prepare the test dependencies 2)
launch ctest to perform the test.

Signed-off-by: Kefu Chai <kchai@redhat.com>
run-make-check.sh

index f321eb1a434a5b359ab0889414d7019bcd52b51f..158f60d90e9e263fa86f8782502a22e4c42bfe83 100755 (executable)
@@ -68,8 +68,8 @@ function run() {
     if test -x ./do_cmake.sh ; then
         $DRY_RUN ./do_cmake.sh || return 1
         cd build
-        $DRY_RUN make $BUILD_MAKEOPTS || return 1
-        $DRY_RUN ctest $CHECK_MAKEOPTS --output-on-failure || return 1
+        export CTEST_OUTPUT_ON_FAILURE=1 CTEST_PARALLEL_LEVEL=$(get_processors)
+        $DRY_RUN make $BUILD_MAKEOPTS check || return 1
     else
         $DRY_RUN ./autogen.sh || return 1
         $DRY_RUN ./configure "$@"  --with-librocksdb-static --disable-static --with-radosgw --with-debug --without-lttng \