Skip to content

Commit

Permalink
CI: use ctest --output-on-failure option (#3084) (#3086)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Taves <mwtoews@gmail.com>
  • Loading branch information
github-actions[bot] and mwtoews authored Mar 4, 2022
1 parent 9e1f836 commit c34b0ac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mingw_w64/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ cmake -G "Unix Makefiles" \
..
make
# Run a subset of tests that should pass
ctest -R "proj_test_cpp_api|geodesic-test|proj_errno_string_test|proj_angular_io_test|proj_context_test|pj_phi2_test|gie_self_tests|test_network|test_defmodel|test_tinshift|test_misc|test_fork"
ctest --output-on-failure -R "proj_test_cpp_api|geodesic-test|proj_errno_string_test|proj_angular_io_test|proj_context_test|pj_phi2_test|gie_self_tests|test_network|test_defmodel|test_tinshift|test_misc|test_fork"
# TODO: fix failing tests with .gie files; see #2168 and run
# PROJ_LIB=./data/for_tests wine64 ./bin/gie.exe ../test/gie/more_builtins.gie

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
set PROJ_DIR=%GITHUB_WORKSPACE%\proj_dir
set PROJ_BUILD=%GITHUB_WORKSPACE%\build
cd %PROJ_BUILD%
ctest -V -C "${{ env.BUILD_TYPE }}"
ctest --output-on-failure -C "${{ env.BUILD_TYPE }}"
set PATH=%PROJ_DIR%\bin;%PATH%
set BUILD_MODE=shared
if "${{ env.BUILD_SHARED_LIBS }}"=="OFF" (set BUILD_MODE=static)
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ test_script:
- echo test_script
- set PROJ_LIB=%PROJ_DIR%\share\proj
- cd %PROJ_BUILD%
- ctest -V -C Release
- ctest --output-on-failure -C Release
- set PATH=%PROJ_DIR%\bin;%PATH%
- set BUILD_MODE=shared
- if BUILD_SHARED_LIBS==OFF (set BUILD_MODE=static)
Expand Down
6 changes: 3 additions & 3 deletions travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if objdump -TC "lib/libproj.so" | grep "elf64-x86-64">/dev/null; then
fi
fi

ctest
ctest --output-on-failure
make install
# find /tmp/proj_shared_install_from_dist
$TRAVIS_BUILD_DIR/test/postinstall/test_cmake.sh /tmp/proj_shared_install_from_dist shared
Expand All @@ -88,7 +88,7 @@ cmake \
..
make

ctest
ctest --output-on-failure
make install
# find /tmp/proj_static_install_from_dist
$TRAVIS_BUILD_DIR/test/postinstall/test_cmake.sh /tmp/proj_static_install_from_dist static
Expand Down Expand Up @@ -225,7 +225,7 @@ if [ "$BUILD_NAME" != "linux_gcc8" -a "$BUILD_NAME" != "linux_gcc_32bit" ]; then
. ;
fi
make
ctest
ctest --output-on-failure
fi

if [ "${USE_CCACHE}" = "ON" ]; then
Expand Down

0 comments on commit c34b0ac

Please sign in to comment.