X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fgeode-native%2Fapache-geode-native-test%2Fnew_integrationtest.sh;fp=jjb%2Fgeode-native%2Fapache-geode-native-test%2Fnew_integrationtest.sh;h=c587f0048d2c7b00f646f5c819e503fb108b170e;hb=2222f82d576bfe03ea0b01d218d72ea16d872fdf;hp=ee159ae0a4e9cb6cece17cfde5cef8df6c0cc731;hpb=a0987134ab782297b3986bf79127f61cc347d381;p=infra%2Fcicd.git diff --git a/jjb/geode-native/apache-geode-native-test/new_integrationtest.sh b/jjb/geode-native/apache-geode-native-test/new_integrationtest.sh index ee159ae0..c587f004 100755 --- a/jjb/geode-native/apache-geode-native-test/new_integrationtest.sh +++ b/jjb/geode-native/apache-geode-native-test/new_integrationtest.sh @@ -24,11 +24,17 @@ set -o pipefail GEODE_NATIVE_DIR="${WORKSPACE}/geode-native" SOURCE_DIR="/geode-native" -DOCKER_ARGS="--rm --volume=${GEODE_NATIVE_DIR}:${SOURCE_DIR}" +CTEST_TIMEOUT=600 +CTEST_JOBS=$(( $(nproc) / 4 )) +CTEST_ARGS="--output-on-failure --repeat until-pass:4 --schedule-random" + +DOCKER_ARGS="--rm --volume=${GEODE_NATIVE_DIR}:${SOURCE_DIR}\ + -e LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libSegFault.so" COMMAND="echo -e '\n*** Build ***\n' && mkdir build && cd build &&\ cmake ${SOURCE_DIR} -DCMAKE_CXX_FLAGS=-stdlib=libc++ \\ -DCMAKE_CXX_CLANG_TIDY=clang-tidy -DWITH_IPV6=ON &&\ cmake --build . -- -j${JOBS} && echo -e '\n*** New Integration Tests ***\n' &&\ - cd /build/cppcache/integration/test && ctest -j1 --extra-verbose" + cd /build/cppcache/integration/test &&\ + ctest -j${CTEST_JOBS} --timeout ${CTEST_TIMEOUT} ${CTEST_ARGS}" docker run ${DOCKER_ARGS} "${GEODE_NATIVE_DOCKER_IMAGE}" bash -c "${COMMAND}"