Skip to content

Commit

Permalink
Speed up Git version info test by setting <Project>_TRACE_DEPENDENCY_…
Browse files Browse the repository at this point in the history
…HANDLING_ONLY=ON (TriBITSPub#597)

This spead up these tests on my machine 'crf450' from about 3.4 sec to about
0.45 sec.

We don't need to enable the compilers and process the package CMakeLists.txt
files to test this version info.
  • Loading branch information
bartlettroscoe committed Jan 24, 2024
1 parent ce4728b commit 1548b6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/core/ExamplesUnitTests/TribitsHelloWorld_Tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ tribits_add_advanced_test( TribitsHelloWorld_config_git_version_single_repo_one_
-DTribitsHelloWorld_TRIBITS_DIR=${${PROJECT_NAME}_TRIBITS_DIR}
-DTribitsHelloWorld_ENABLE_TESTS=ON
-DTribitsHelloWorld_GENERATE_REPO_VERSION_FILE=ON
-DTribitsHelloWorld_TRACE_DEPENDENCY_HANDLING_ONLY=ON
-DGIT_EXECUTABLE=${${PROJECT_NAME}_TRIBITS_DIR}/python_utils/mockprogram.py
../TribitsHelloWorld
PASS_REGULAR_EXPRESSION_ALL
Expand Down Expand Up @@ -122,6 +123,7 @@ tribits_add_advanced_test( TribitsHelloWorld_config_git_version_single_repo_two_
-DTribitsHelloWorld_TRIBITS_DIR=${${PROJECT_NAME}_TRIBITS_DIR}
-DTribitsHelloWorld_ENABLE_TESTS=ON
-DTribitsHelloWorld_GENERATE_REPO_VERSION_FILE=ON
-DTribitsHelloWorld_TRACE_DEPENDENCY_HANDLING_ONLY=ON
-DTribitsHelloWorld_SHOW_GIT_COMMIT_PARENTS=ON
-DGIT_EXECUTABLE=${${PROJECT_NAME}_TRIBITS_DIR}/python_utils/mockprogram.py
../TribitsHelloWorld
Expand Down

0 comments on commit 1548b6f

Please sign in to comment.