Skip to content

Commit

Permalink
Another attempt to understand why rnp_tests aborts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Jan 12, 2024
1 parent fa5a40e commit c88e668
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ task:
build_script: |
su rnpuser -c 'cmake --build build --config Release --parallel $(sysctl -n hw.ncpu)'
su rnpuser -c 'ldd build/src/tests/rnp_tests'
su rnpuser -c 'LD_DEBUG=All ./build/src/tests/rnp_tests'
su rnpuser -c 'PATH=$PWD/build/src/lib:$PATH \
strace ./build/src/tests/rnp_tests'
test_script: |
su rnpuser -c 'mkdir -p build/Testing/Temporary'
Expand Down
15 changes: 10 additions & 5 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,16 @@ if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_VERSION VERS
set_target_properties(rnp_tests PROPERTIES CXX_VISIBILITY_PRESET hidden)
endif()

gtest_discover_tests(rnp_tests
PROPERTIES
FIXTURES_REQUIRED testdata
TIMEOUT 3000
ENVIRONMENT "RNP_TEST_DATA=${CMAKE_CURRENT_SOURCE_DIR}/data"
#gtest_discover_tests(rnp_tests
# PROPERTIES
# FIXTURES_REQUIRED testdata
# TIMEOUT 3000
# ENVIRONMENT "RNP_TEST_DATA=${CMAKE_CURRENT_SOURCE_DIR}/data"
#)
execute_process(
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/rnp_tests"
ECHO_OUTPUT_VARIABLE
ECHO_ERROR_VARIABLE
)

# cli_tests
Expand Down

0 comments on commit c88e668

Please sign in to comment.