]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
run-cmake-check.sh: Actually run the tests 11075/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 14 Sep 2016 08:28:41 +0000 (18:28 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Fri, 16 Sep 2016 04:47:38 +0000 (14:47 +1000)
Actually run the tests from run-cmake-check.sh

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
run-cmake-check.sh

index 0d13b6e60b0e7e91563e897273e3f132f9978540..083cafdf9e78304405a8d1c84aa36a28e72ef7c6 100755 (executable)
@@ -48,10 +48,10 @@ function run() {
        $DRY_RUN ./install-deps.sh || return 1
     fi
     git submodule update --init --recursive
-    $DRY_RUN mkdir build
+    $DRY_RUN ./do_cmake.sh $@ || return 1
     $DRY_RUN cd build
-    $DRY_RUN cmake "$@" ../
-    $DRY_RUN make $BUILD_MAKEOPTS || return 1
+    $DRY_RUN make $BUILD_MAKEOPTS tests || return 1
+    $DRY_RUN ctest $CHECK_MAKEOPTS --output-on-failure || return 1
 }
 
 function main() {