Skip to content

Commit

Permalink
Add check of generatead TribitsHelloWorldRepoVersion.txt file (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlettroscoe committed Jan 4, 2024
1 parent 98750bb commit 1db9378
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/core/ExamplesUnitTests/TribitsHelloWorld_Tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ tribits_add_advanced_test( TribitsHelloWorld
tribits_add_advanced_test( TribitsHelloWorld_config_git_version
OVERALL_WORKING_DIRECTORY TEST_NAME
OVERALL_NUM_MPI_PROCS 1
XHOST Windows # We use the 'diff' command below :-(

TEST_0
MESSAGE "Copy the project source so we can copy files into it."
Expand Down Expand Up @@ -72,14 +73,25 @@ tribits_add_advanced_test( TribitsHelloWorld_config_git_version
"This is the git commit summary line"
ALWAYS_FAIL_ON_NONZERO_RETURN

TEST_4
CMND diff ARGS
${CMAKE_CURRENT_SOURCE_DIR}/configure_git_mockprogram_files/TribitsHelloWorldRepoVersion.single_version.txt
BUILD/TribitsHelloWorldRepoVersion.txt

)
# The above directory structure is:
# NOTES:
#
# * The above directory structure is:
#
# TribitsHelloWorld_config_git_version/
# TribitsHelloWorld/
# .git/
# .mockprogram_inout.txt
# BUILD/
#
# * We don't use cmake -E compare_files because it does not print the diff,
# just gives a non-zero error code.



tribits_add_advanced_test( TribitsHelloWorld_EXE_DISABLE
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*** Base Git Repo: TribitsHelloWorld
a1234tgb [Thu Sep 21 19:19:18 2023 -0400] <[email protected]>
This is the git commit summary line

0 comments on commit 1db9378

Please sign in to comment.