Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Test out updated CDash URLs for builds and nonpassing tests for same repo version (#483) #484

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
21c919f
Fix some typos in comments
bartlettroscoe May 26, 2022
a99bf60
Fix the comment line for a test block
bartlettroscoe May 26, 2022
d9646f0
Standardize comments (#299)
bartlettroscoe May 3, 2022
a7c2282
Add "" initializers for several vars (#299)
bartlettroscoe May 3, 2022
e8bb3d7
Snapshot FindTPLNetcdf.cmake from Trilinos 8c1028df724 with small mod…
bartlettroscoe May 18, 2022
bed095e
Switch to relying on TRIBITS_TESTONLY_LIB property only (#299)
bartlettroscoe May 4, 2022
ca3f5e3
Switch to linking against <Package>::all_libs (#299)
bartlettroscoe May 3, 2022
969abad
WIP: Comment out old TriBITS manual manipulation of includes and libs…
bartlettroscoe May 3, 2022
2e51918
Factor out new module TribitsConfigureFile.cmake (#63, #299)
bartlettroscoe May 5, 2022
31fbaea
WIP: Remove old TriBITS manual manipulation of includes and libs (#299)
bartlettroscoe May 5, 2022
ed1597c
Factor out TribitsAddLibrary.cmake for tribits_add_library() (#299)
bartlettroscoe May 5, 2022
5011e8b
tribits_add_library(): Factor out functions and some cleanup (#299)
bartlettroscoe May 6, 2022
81f7f44
Add test for ADD_DIR_TO_NAME (#299)
bartlettroscoe May 13, 2022
f4752b3
Rename local var to test tribits_create_name_from_current_source_dire…
bartlettroscoe May 13, 2022
d7a81de
Fix return arg in tribits_create_name_from_current_source_directory()…
bartlettroscoe May 13, 2022
24a2a8e
tribits_add_executable(): Factor out functions and cleanup (#299)
bartlettroscoe May 6, 2022
dcb616f
Remove comments about being hard to maintain (#299)
bartlettroscoe May 7, 2022
cb6bdbd
Remove all obsolete doc references to include dirs and lib dirs (#299)
bartlettroscoe May 7, 2022
d430376
TribitsExampleProject2: Remove hacked dependencies on indirect TPLs (…
bartlettroscoe May 13, 2022
7ef19a1
Update changelog for final switch to modern CMake targets (#299)
bartlettroscoe May 13, 2022
6ddc67a
Add changelog note about no longer setting dir property INCLUDE_DIREC…
bartlettroscoe May 17, 2022
a9cdb79
Add changelog note for setting <Package>_ENABLE_<depPkg> for required…
bartlettroscoe May 17, 2022
b1895f7
Handle <Project>_EXTRA_LINK_FLAGS as extra TPL that everything depend…
bartlettroscoe May 26, 2022
a168af1
Add back include_guard(GLOBAL) (#299)
bartlettroscoe May 27, 2022
618284a
WIP: Set <Project>_INCLUDE_DIRS in <Project>Config.cmake for the inst…
bartlettroscoe May 27, 2022
ebe89e3
Add test for TribitsExampleApp with MPI enabled (#299)
bartlettroscoe May 27, 2022
e2dbc66
WIP: Make SimpleCxx package dependent on MPI (#299)
bartlettroscoe May 28, 2022
a831472
Fix tests for adding MPI to SimpleCxx and adding back install include…
bartlettroscoe May 28, 2022
4051847
WIP: Add test to expose defect with MPI::all_libs (#299)
bartlettroscoe May 28, 2022
9206994
Have TPL MPI produce MPI::all_libs and MPIConfig.cmake (#299)
bartlettroscoe May 27, 2022
700f916
Remove worthless `if (TARGET <Pkg>::all_libs)` checks (#299)
bartlettroscoe May 28, 2022
97bcf0d
Add headers for different sets of unit tests (#483)
bartlettroscoe Jun 3, 2022
ef2397f
message_wrapper() Use arg forwarding to preserve semi-colons (#483)
bartlettroscoe Jun 2, 2022
3d0306d
Add function unittest_string_var_regex() (#483)
bartlettroscoe Jun 3, 2022
ec9ebfc
Moved arg parsing helper functions into new modules (#483)
bartlettroscoe Jun 2, 2022
64dc7e5
Change parse argument assert functions to accept a list of args (#483)
bartlettroscoe Jun 3, 2022
8721ff0
Factor out functions into TribitsGitRepoVersionInfo.cmake (#483)
bartlettroscoe Jun 2, 2022
9f76105
Set list policy to avoid warning (#483)
bartlettroscoe Jun 3, 2022
a22b038
Rename to TribitsGetCDashUrlsInsideCTestS.cmake (#483)
bartlettroscoe May 31, 2022
d951cc9
Rename to tribits_print_cdash_url(), change print msg (#483)
bartlettroscoe Jun 1, 2022
32cc1ad
Factor out tribits_get_cdash_site_from_drop_site_and_location() (#483)
bartlettroscoe Jun 3, 2022
4354ed0
Produce CDash URLs to all builds and nonpassing tests for same repo v…
bartlettroscoe Jun 5, 2022
e5e9be8
Have 'dashboard' target set CTEST_UPDATE_VERSION_ONLY=TRUE
bartlettroscoe Jun 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/tribits_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ jobs:
- name: URL to results on CDash
run: |
cd ..
echo "Result on CDash are posted at:"
echo "See results posted on CDash:"
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo
cat tribits-build/BUILD/CDashBuildUrl.txt
cat tribits-build/BUILD/CDashResults.txt
echo
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
2 changes: 1 addition & 1 deletion test/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ tribits_add_advanced_test( TestingFunctionMacro_UnitTests
-D${PROJECT_NAME}_TRIBITS_DIR=${${PROJECT_NAME}_TRIBITS_DIR}
-P "${CMAKE_CURRENT_SOURCE_DIR}/TestingFunctionMacro_UnitTests.cmake"
PASS_REGULAR_EXPRESSION_ALL
"Final UnitTests Result: num_run = 695"
"Final UnitTests Result: num_run = 703"
"Final UnitTests Result: PASSED"
)

Expand Down
24 changes: 17 additions & 7 deletions test/core/ExamplesUnitTests/TribitsExampleApp_Tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ TribitsExampleApp_EnableSingleSubpackage(FULL STATIC)
################################################################################


function(TribitsExampleApp_ALL_ST byProjectOrPackage sharedOrStatic)
function(TribitsExampleApp_ALL_ST byProjectOrPackage sharedOrStatic serialOrMpi)

if (byProjectOrPackage STREQUAL "ByProject")
set(findByProjectOrPackageArg -DTribitsExApp_FIND_INDIVIDUAL_PACKAGES=OFF)
Expand All @@ -535,12 +535,21 @@ function(TribitsExampleApp_ALL_ST byProjectOrPackage sharedOrStatic)
set(findByProjectOrPackageArg -DTribitsExApp_FIND_INDIVIDUAL_PACKAGES=ON)
set(foundProjectOrPackageStr "Found SimpleCxx")
else()
message(FATAL_ERROR "Invalid value for findByProjectOrPackageArg='${findByProjectOrPackageArg}'!")
message(FATAL_ERROR
"Invalid value findByProjectOrPackageArg='${findByProjectOrPackageArg}'!")
endif()

TribitsExampleApp_process_sharedOrStatic_arg()

set(testBaseName ${CMAKE_CURRENT_FUNCTION}_${byProjectOrPackage}_${sharedOrStatic})
if (serialOrMpi STREQUAL "SERIAL")
set(tplEnableMpiArg -DTPL_ENABLE_MPI=OFF)
elseif (serialOrMpi STREQUAL "MPI")
set(tplEnableMpiArg -DTPL_ENABLE_MPI=ON)
else()
message(FATAL_ERROR "Invalid value tplEnableMpiArg='${tplEnableMpiArg}'!")
endif()

set(testBaseName ${CMAKE_CURRENT_FUNCTION}_${byProjectOrPackage}_${sharedOrStatic}_${serialOrMpi})
set(testName ${PACKAGE_NAME}_${testBaseName})
set(testDir ${CMAKE_CURRENT_BINARY_DIR}/${testName})

Expand Down Expand Up @@ -577,6 +586,7 @@ function(TribitsExampleApp_ALL_ST byProjectOrPackage sharedOrStatic)
-DSimpleTpl_INCLUDE_DIRS=${SimpleTpl_install_${sharedOrStatic}_DIR}/install/include
-DSimpleTpl_LIBRARY_DIRS=${SimpleTpl_install_${sharedOrStatic}_DIR}/install/lib
${buildSharedLibsArg}
${tplEnableMpiArg}
-DCMAKE_INSTALL_PREFIX=${testDir}/install
${testDir}/TribitsExampleProject

Expand Down Expand Up @@ -641,10 +651,10 @@ function(TribitsExampleApp_ALL_ST byProjectOrPackage sharedOrStatic)
endfunction()


TribitsExampleApp_ALL_ST(ByProject STATIC)
TribitsExampleApp_ALL_ST(ByProject SHARED)
TribitsExampleApp_ALL_ST(ByPackage STATIC)
TribitsExampleApp_ALL_ST(ByPackage SHARED)
TribitsExampleApp_ALL_ST(ByProject STATIC SERIAL)
TribitsExampleApp_ALL_ST(ByProject SHARED MPI)
TribitsExampleApp_ALL_ST(ByPackage STATIC MPI)
TribitsExampleApp_ALL_ST(ByPackage SHARED SERIAL)


################################################################################
Expand Down
10 changes: 1 addition & 9 deletions test/core/ExamplesUnitTests/TribitsExampleProject2_Tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,10 @@ function(TribitsExampleProject2_find_tpl_parts sharedOrStatic findingTplsMethod)
"set[(]Package3_ENABLE_Package1 ON[)]"
"set[(]Package3_ENABLE_Package2 ON[)]"
"set[(]Package3_ENABLE_Tpl2 ON[)]"
"set[(]Package3_ENABLE_Tpl1 ON[)]"
"set[(]Package3_ENABLE_Tpl4 ON[)]"
"set[(]Package3_ENABLE_Tpl3 ON[)]"

TEST_2
MESSAGE "Build verbose to check the link line of Package3"
MESSAGE "Build verbose to check the link lines"
CMND ${CMAKE_COMMAND} ARGS --build . -v
PASS_REGULAR_EXPRESSION_ALL
"[-]o packages/package1/src/package1-prg .* ${tplInstallBaseDir}/install_tpl1/lib/libtpl1${libextregex}"
Expand Down Expand Up @@ -253,9 +251,7 @@ function(TribitsExampleProject2_find_tpl_parts sharedOrStatic findingTplsMethod)
"set[(]Package3_ENABLE_Package1 ON[)]"
"set[(]Package3_ENABLE_Package2 ON[)]"
"set[(]Package3_ENABLE_Tpl2 ON[)]"
"set[(]Package3_ENABLE_Tpl1 ON[)]"
"set[(]Package3_ENABLE_Tpl4 ON[)]"
"set[(]Package3_ENABLE_Tpl3 ON[)]"

${ENV_PATH_HACK_FOR_TPL1_${sharedOrStatic}_ARG}

Expand Down Expand Up @@ -345,9 +341,7 @@ function(TribitsExampleProject2_find_tpl_parts_no_optional_packages_tpls sharedO
"set[(]Package3_ENABLE_Package1 ON[)]"
"set[(]Package3_ENABLE_Package2 OFF[)]"
"set[(]Package3_ENABLE_Tpl2 ON[)]"
"set[(]Package3_ENABLE_Tpl1 ON[)]"
"set[(]Package3_ENABLE_Tpl4 OFF[)]"
"set[(]Package3_ENABLE_Tpl3 OFF[)]"

TEST_2
MESSAGE "Build verbose to check the link line of Package3"
Expand Down Expand Up @@ -378,9 +372,7 @@ function(TribitsExampleProject2_find_tpl_parts_no_optional_packages_tpls sharedO
"set[(]Package3_ENABLE_Package1 ON[)]"
"set[(]Package3_ENABLE_Package2 OFF[)]"
"set[(]Package3_ENABLE_Tpl2 ON[)]"
"set[(]Package3_ENABLE_Tpl1 ON[)]"
"set[(]Package3_ENABLE_Tpl4 OFF[)]"
"set[(]Package3_ENABLE_Tpl3 OFF[)]"

ADDED_TEST_NAME_OUT ${testNameBase}_NAME
)
Expand Down
Loading