diff --git a/.cirrus.yml b/.cirrus.yml index 4ad88b7857..4da141074f 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -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' diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 45f13a7204..03a4ec102c 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -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