-
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.
Replace %Instance% with instance index in [email protected] files
- Loading branch information
1 parent
fa828be
commit 09cde26
Showing
2 changed files
with
18 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 |
---|---|---|
|
@@ -623,10 +623,24 @@ TEST_F(RteModelPrjTest, LoadCprjConfigVer) { | |
ASSERT_NE(loadedCprjProject, nullptr); | ||
|
||
const string rteDir = RteUtils::ExtractFilePath(RteTestM3_cprj, true) + loadedCprjProject->GetRteFolder() + "/"; | ||
const string CompConfig_0_Base_Version = rteDir + "RteTest/" + "[email protected]"; | ||
const string CompConfig_1_Base_Version = rteDir + "RteTest/" + "[email protected]"; | ||
const string CompConfig_0 = rteDir + "RteTest/" + "ComponentLevelConfig_0.h"; | ||
const string CompConfig_0_Base_Version = CompConfig_0 + "[email protected]"; | ||
EXPECT_TRUE(RteFsUtils::Exists(CompConfig_0)); | ||
EXPECT_TRUE(RteFsUtils::Exists(CompConfig_0_Base_Version)); | ||
const string CompConfig_1 = rteDir + "RteTest/" + "ComponentLevelConfig_1.h"; | ||
const string CompConfig_1_Base_Version = CompConfig_1 + "[email protected]"; | ||
EXPECT_TRUE(RteFsUtils::Exists(CompConfig_1)); | ||
EXPECT_TRUE(RteFsUtils::Exists(CompConfig_1_Base_Version)); | ||
// check if freshly copied files match their base | ||
// that also checks if base files expand %Instance% with correct instance | ||
string buf, bufBase; | ||
EXPECT_TRUE(RteFsUtils::ReadFile(CompConfig_0, buf)); | ||
EXPECT_TRUE(RteFsUtils::ReadFile(CompConfig_0_Base_Version, bufBase)); | ||
EXPECT_EQ(buf, bufBase); | ||
|
||
EXPECT_TRUE(RteFsUtils::ReadFile(CompConfig_1, buf)); | ||
EXPECT_TRUE(RteFsUtils::ReadFile(CompConfig_1_Base_Version, bufBase)); | ||
EXPECT_EQ(buf, bufBase); | ||
|
||
const string deviceDir = rteDir + "Device/RteTest_ARMCM3/"; | ||
EXPECT_TRUE(RteFsUtils::Exists(deviceDir + "ARMCM3_ac6.sct")); | ||
|