File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,17 @@ for version in ${GCC}; do
42
42
-DCMAKE_BUILD_TYPE:STRING=" ${BUILD_TYPE} " \
43
43
..
44
44
make -j 4
45
- printf ' \nDone compiling OpenCoarrays and tests!\n\n '
45
+ printf ' \nDone compiling OpenCoarrays and tests!\n'
46
46
CTEST_FLAGS=(--output-on-failure --schedule-random --repeat-until-fail " ${NREPEAT:- 5} " --timeout " ${TEST_TIMEOUT:- 200} " )
47
+ printf " \nctest flags: %s\n" " ${CTEST_FLAGS[*]} "
47
48
if [[ " ${BUILD_TYPE} " =~ Deb ]]; then
48
- ctest " ${CTEST_FLAGS[@]} " > " ${BUILD_TYPE} .log" || cat " ${BUILD_TYPE} .log"
49
+ printf " \nRunning ctest for a debug build...\n\n"
50
+ if ! ctest " ${CTEST_FLAGS[@]} " > " ${BUILD_TYPE} .log" ; then
51
+ cat " ${BUILD_TYPE} .log"
52
+ false
53
+ fi
49
54
else
55
+ printf " \nRunning ctest for a non-debug build...\n\n"
50
56
ctest " ${CTEST_FLAGS[@]} "
51
57
fi
52
58
make install
You can’t perform that action at this time.
0 commit comments