Skip to content
Snippets Groups Projects
Commit 7cace083 authored by Imdad Sardharwalla's avatar Imdad Sardharwalla Committed by GitHub Enterprise
Browse files

REFORM-1090 Create a BASE_TEST_CTEST_NAMES_ARE_OUTPUT_PATHS CMake option (#53)

parent 8ef1b3b1
No related branches found
No related tags found
1 merge request!14Merge latest changes to Base from ReForm
...@@ -10,6 +10,12 @@ set(output_lib "Base") ...@@ -10,6 +10,12 @@ set(output_lib "Base")
add_library(${output_lib} STATIC) add_library(${output_lib} STATIC)
# Add option to enable extra parsing of the CTest log
option(BASE_TEST_CTEST_NAMES_ARE_OUTPUT_PATHS "Declare that CTest test names are the same as the test output paths to enable extra CTest log parsing." OFF)
if (BASE_TEST_CTEST_NAMES_ARE_OUTPUT_PATHS)
target_compile_definitions(${output_lib} PRIVATE TEST_REPORT_CTEST_NAMES_ARE_OUTPUT_PATHS)
endif()
function(base_add_subdir subdir) function(base_add_subdir subdir)
# initialize these variables since ASM is printing warnings otherwise # initialize these variables since ASM is printing warnings otherwise
set(my_headers "") set(my_headers "")
......
...@@ -281,7 +281,7 @@ void TestList::parse_ctest_log(const fs::path& _ctest_log_path) ...@@ -281,7 +281,7 @@ void TestList::parse_ctest_log(const fs::path& _ctest_log_path)
<< "WARNING: There are " << ctest_tests_nmbr << "WARNING: There are " << ctest_tests_nmbr
<< " tests listed in the CTest log, but checksums were recorded " << " tests listed in the CTest log, but checksums were recorded "
"for only " "for only "
<< tests_.size() << " tests." << std::endl << tests_.size() << " test(s)." << std::endl
<< std::endl; << std::endl;
} }
#endif // TEST_REPORT_CTEST_NAMES_ARE_OUTPUT_PATHS #endif // TEST_REPORT_CTEST_NAMES_ARE_OUTPUT_PATHS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment