-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into outbound/seqFix
- Loading branch information
Showing
3 changed files
with
19 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3420,7 +3420,9 @@ TEST_F(ProjMgrUnitTests, RunProjMgr_UpdateRte) { | |
const string rteDir = testinput_folder + "/TestSolution/TestProject1/RTE/"; | ||
const string configFile = rteDir + "Device/RteTest_ARMCM0/startup_ARMCM0.c"; | ||
const string baseFile = configFile + "[email protected]"; | ||
const string& testdir = testoutput_folder + "/OutputDir"; | ||
RteFsUtils::RemoveDir(rteDir); | ||
RteFsUtils::RemoveDir(testdir); | ||
RteFsUtils::CreateFile(configFile, "// config file"); | ||
RteFsUtils::CreateFile(baseFile, "// config file@base"); | ||
|
||
|
@@ -3433,7 +3435,7 @@ TEST_F(ProjMgrUnitTests, RunProjMgr_UpdateRte) { | |
argv[3] = (char*)"-c"; | ||
argv[4] = (char*)"test1.Debug+CM0"; | ||
argv[5] = (char*)"-o"; | ||
argv[6] = (char*)testoutput_folder.c_str(); | ||
argv[6] = (char*)testdir.c_str(); | ||
argv[7] = (char*)"-v"; | ||
EXPECT_EQ(0, RunProjMgr(8, argv, 0)); | ||
EXPECT_TRUE(RteFsUtils::Exists(rteDir + "/_Debug_CM0/RTE_Components.h")); | ||
|
@@ -3445,10 +3447,12 @@ info csolution: config files for each component:\n\ | |
- .*/TestSolution/TestProject1/RTE/Device/RteTest_ARMCM0/ARMCM0_ac6.sct \\([email protected]\\)\n\ | ||
- .*/TestSolution/TestProject1/RTE/Device/RteTest_ARMCM0/startup_ARMCM0.c \\([email protected]\\) \\([email protected]\\)\n\ | ||
- .*/TestSolution/TestProject1/RTE/Device/RteTest_ARMCM0/system_ARMCM0.c \\([email protected]\\)\n\ | ||
.*/test.cbuild-idx.yml - info csolution: file generated successfully\n\ | ||
"; | ||
|
||
auto outStr = streamRedirect.GetOutString(); | ||
EXPECT_TRUE(regex_match(outStr, regex(expected))); | ||
EXPECT_TRUE(regex_match(outStr, regex(expected))) << | ||
"Expected regex: \n" << expected << "\nActual:\n" << outStr; | ||
|
||
streamRedirect.ClearStringStreams(); | ||
argv[1] = (char*)"list"; | ||
|