-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afb8bed
commit 2ba9658
Showing
5 changed files
with
57 additions
and
25 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
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
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 |
---|---|---|
|
@@ -5930,23 +5930,29 @@ TEST_F(ProjMgrUnitTests, SelectableToolchains) { | |
|
||
TEST_F(ProjMgrUnitTests, SourcesAddedByMultipleComponents) { | ||
StdStreamRedirect streamRedirect; | ||
char* argv[5]; | ||
char* argv[6]; | ||
const string& csolution = testinput_folder + "/TestSolution/ComponentSources/components.csolution.yml"; | ||
argv[1] = (char*)"convert"; | ||
argv[2] = (char*)csolution.c_str(); | ||
argv[3] = (char*)"-o"; | ||
argv[4] = (char*)testoutput_folder.c_str();; | ||
EXPECT_EQ(0, RunProjMgr(5, argv, m_envp)); | ||
|
||
const string expected = "\ | ||
warning csolution: source modules added by multiple components:\n\ | ||
const string& expected = "\ | ||
(warning|error) csolution: source modules added by multiple components:\n\ | ||
filename: .*/ARM/RteTest/0.1.0/Dummy/dummy.c\n\ | ||
- component: ARM::RteTest:[email protected]\n\ | ||
from-pack: ARM::[email protected]\n\ | ||
- component: ARM::RteTest:[email protected]\n\ | ||
from-pack: ARM::[email protected]\n\ | ||
"; | ||
|
||
const string& errStr = streamRedirect.GetErrorString(); | ||
string errStr = streamRedirect.GetErrorString(); | ||
EXPECT_TRUE(regex_search(errStr, regex(expected))); | ||
|
||
argv[5] = (char*)"--cbuild2cmake"; | ||
streamRedirect.ClearStringStreams(); | ||
EXPECT_EQ(1, RunProjMgr(6, argv, m_envp)); | ||
errStr = streamRedirect.GetErrorString(); | ||
EXPECT_TRUE(regex_search(errStr, regex(expected))); | ||
} |