File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 2525 sudo apt update -yq
2626 sudo apt install -yq --no-install-recommends ninja-build gfortran libhdf5-dev
2727
28- - run : ctest -S setup .cmake -V
28+ - run : ctest -S ci .cmake -V
2929
3030 - run : cmake -DCMAKE_INSTALL_PREFIX=~/hdf5
3131 - run : cmake --install build
9898
9999 - run : brew install hdf5 ninja
100100
101- - run : ctest -S setup .cmake -V
101+ - run : ctest -S ci .cmake -V
102102
103103 # - run: cmake -S Examples -B Examples/build
104104 # - run: cmake --build Examples/build --parallel
Original file line number Diff line number Diff line change 4848
4949 - uses : actions/checkout@v2
5050
51- - run : ctest -S setup .cmake -V
51+ - run : ctest -S ci .cmake -V
5252
5353 # - run: cmake -S Examples -B Examples/build
5454 # - run: cmake --build Examples/build --parallel
Original file line number Diff line number Diff line change @@ -89,14 +89,10 @@ gfortran -I~/lib/h5fortran/include myprogram.f90 ~/lib/h5fortran/lib/libh5fortra
8989
9090### [ optional] create distributable archive
9191
92- If you wish to create a .zip archive that is usable on systems with compatible Fortran ABI:
92+ If you wish to create a .zip archive that is usable on systems with compatible Fortran ABI, after building :
9393
9494``` sh
95- ctest -S setup.cmake
96-
97- cd build
98-
99- cpack
95+ cpack --config .\b uild\C PackConfig.cmake
10096```
10197
10298### [ optional] specify a particular HDF5 library
Original file line number Diff line number Diff line change @@ -152,17 +152,21 @@ endif()
152152ctest_test (
153153 # set PARALLEL_LEVEL here as the global option seems to be ignored
154154 PARALLEL_LEVEL ${Ncpu}
155+ # specify BUILD to avoid random return 255 despite tests passing
156+ BUILD ${CTEST_BINARY_DIRECTORY}
157+ SCHEDULE_RANDOM ON
158+ REPEAT UNTIL_PASS:3
155159 RETURN_VALUE _ret
156160 CAPTURE_CMAKE_ERROR _err
157- REPEAT UNTIL_PASS:3 )
161+ )
158162ctest_submit (PARTS Test )
159163
160164ctest_submit (
161165 PARTS Done
162166 BUILD_ID build_id)
163167
164168if (NOT (_ret EQUAL 0 AND _err EQUAL 0))
165- message (FATAL_ERROR "Build ${build_id} failed." )
169+ message (FATAL_ERROR "Build ${build_id} failed: CTest code ${_ret} , CMake code ${_err} ." )
166170endif ()
167171
168172message (STATUS "OK: CTest build ${build_id} " )
You can’t perform that action at this time.
0 commit comments