Skip to content

Commit

Permalink
CI: Old CTest (#1519)
Browse files Browse the repository at this point in the history
CTest <3.20 does not support `--test-dir` and will then silently
skip tests, because it cannot find any in the current directory.
  • Loading branch information
ax3l authored Aug 20, 2023
1 parent acf1c11 commit 1cf46fd
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
-DopenPMD_USE_INVASIVE_TESTS=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON
cmake --build build --parallel 2
ctest --test-dir build --output-on-failure
cd build
ctest --output-on-failure
clang7_nopy_ompi_h5_ad2_libcpp:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -74,11 +75,13 @@ jobs:
-DopenPMD_USE_INVASIVE_TESTS=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON
cmake --build build --parallel 2
ctest --test-dir build --output-on-failure
cd build
ctest --output-on-failure
find . -name *.bp | xargs -n1 -P1 -I {} rm -rf {}
find . -name *.bp.dir | xargs -n1 -P1 -I {} rm -rf {}
ctest --test-dir build --output-on-failure
ctest --output-on-failure
clang7_nopy_ompi_h5_ad2:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -108,7 +111,8 @@ jobs:
-DopenPMD_USE_INVASIVE_TESTS=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON
cmake --build build --parallel 2
ctest --test-dir build --output-on-failure
cd build
ctest --output-on-failure
# TODO
# clang7_py36_nompi_h5_ad2_libstdc++
Expand Down Expand Up @@ -179,7 +183,8 @@ jobs:
-DopenPMD_USE_ADIOS2=ON \
-DopenPMD_USE_INVASIVE_TESTS=ON
cmake --build build --parallel 2
ctest --test-dir build --output-on-failure
cd build
ctest --output-on-failure
# TODO: (old Travis-CI coverage)
# clang10_py38_ompi_h5_1-10-6_ad2_release
Expand Down Expand Up @@ -229,7 +234,8 @@ jobs:
-DopenPMD_USE_ADIOS2=ON \
-DopenPMD_USE_INVASIVE_TESTS=ON
cmake --build build --parallel 2
ctest --test-dir build --output-on-failure
cd build
ctest --output-on-failure
gcc9_py38_pd_nompi_h5_ad2_libcpp:
runs-on: ubuntu-20.04
Expand All @@ -251,7 +257,8 @@ jobs:
-DopenPMD_USE_HDF5=ON \
-DopenPMD_USE_INVASIVE_TESTS=ON
cmake --build build --parallel 2
ctest --test-dir build --output-on-failure
cd build
ctest --output-on-failure
musllinux_py10:
runs-on: ubuntu-20.04
Expand All @@ -276,7 +283,8 @@ jobs:
-DopenPMD_USE_INVASIVE_TESTS=ON \
-DPython_EXECUTABLE=$(which python3.10)
cmake --build build --parallel 2
ctest --test-dir build --output-on-failure
cd build
ctest --output-on-failure
conda_ompi_all:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -310,4 +318,5 @@ jobs:
-DopenPMD_USE_ADIOS2=ON \
-DopenPMD_USE_INVASIVE_TESTS=ON
cmake --build build --parallel 2
ctest --test-dir build --output-on-failure
cd build
ctest --output-on-failure

0 comments on commit 1cf46fd

Please sign in to comment.