forked from TriBITSPub/TriBITS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error check and test for asserting correct order of PRE and POST …
…extra repos (SQUASH ME) (TriBITS TriBITSPub#73)
- Loading branch information
Roscoe A. Bartlett
committed
Jun 2, 2015
1 parent
1491d93
commit b0e3e4b
Showing
3 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,8 +124,6 @@ FUNCTION(UNITTEST_TRIBITS_PARSE_EXTRAREPO_PACKSTAT) | |
UNITTEST_COMPARE_CONST( HASPKGS "HASPACKAGES") | ||
UNITTEST_COMPARE_CONST( PREPOST "POST") | ||
|
||
# ToDo: TriBITS:73: Test invalid input that causes error | ||
|
||
ENDFUNCTION() | ||
|
||
|
||
|
@@ -269,6 +267,24 @@ FUNCTION(UNITTEST_TRIBITS_PROCESS_EXTRAREPOS_LISTS) | |
|
||
# ToDo: Test error when invalid VC type is given | ||
|
||
MESSAGE("\n***") | ||
MESSAGE("*** Test TRIBITS_PROCESS_EXTRAREPOS_LISTS() POST before PRE") | ||
MESSAGE("***\n") | ||
|
||
SET(${PROJECT_NAME}_ENABLE_KNOWN_EXTERNAL_REPOS_TYPE Nightly) | ||
SET(MESSAGE_WRAPPER_UNIT_TEST_MODE TRUE) | ||
GLOBAL_SET(MESSAGE_WRAPPER_INPUT) | ||
|
||
TRIBITS_PROJECT_DEFINE_EXTRA_REPOSITORIES( | ||
repo0_name "" GIT "[email protected]:repo0" POST Continuous | ||
repo1_name "some/sub/dir" SVN "[email protected]:repo1" PRE Nightly | ||
) | ||
|
||
TRIBITS_PROCESS_EXTRAREPOS_LISTS() | ||
|
||
UNITTEST_COMPARE_CONST(MESSAGE_WRAPPER_INPUT | ||
"FATAL_ERROR;Error, the 'PRE' extra repo 'repo1_name'; specified in the PACKSTAT field 'PRE' came directly after; a 'POST' extra repo! All 'PRE' extra repos must be listed before all; 'POST' extra repos!") | ||
|
||
# ToDo: Test that all PRE repos come before all POST repos | ||
|
||
ENDFUNCTION() | ||
|
@@ -569,4 +585,4 @@ UNITTEST_TRIBITS_PROCESS_EXTRAREPOS_LISTS_OLD_REPOTYPE() | |
UNITTEST_TRIBITS_GET_AND_PROCESS_EXTRA_REPOSITORIES_LISTS() | ||
|
||
# Pass in the number of expected tests that must pass! | ||
UNITTEST_FINAL_RESULT(142) | ||
UNITTEST_FINAL_RESULT(143) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters