-
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.
Validate created-for node against cmsis-toolbox manifest version
- Loading branch information
1 parent
4570155
commit 5aff765
Showing
7 changed files
with
119 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -6503,3 +6503,25 @@ TEST_F(ProjMgrUnitTests, ReportPacksUnused) { | |
EXPECT_EQ(1, cbuild2["build-idx"]["cbuilds"][0]["packs-unused"].size()); | ||
EXPECT_EQ("ARM::[email protected]", cbuild2["build-idx"]["cbuilds"][0]["packs-unused"][0]["pack"].as<string>()); | ||
} | ||
|
||
TEST_F(ProjMgrUnitTests, GetToolboxVersion) { | ||
const string& testdir = testoutput_folder + "/toolbox_version"; | ||
string fileName = "manifest_1.test2.3.yml"; | ||
string filePath = testdir + "/" + fileName; | ||
RteFsUtils::CreateDirectories(testdir); | ||
RteFsUtils::CreateTextFile(filePath, ""); | ||
|
||
StdStreamRedirect streamRedirect; | ||
EXPECT_EQ("", GetToolboxVersion(testdir)); | ||
auto errStr = streamRedirect.GetErrorString(); | ||
EXPECT_TRUE(errStr.find("manifest file does not exist") != string::npos); | ||
|
||
streamRedirect.ClearStringStreams(); | ||
fileName = "manifest_1.2.3.yml"; | ||
filePath = testdir + "/" + fileName; | ||
RteFsUtils::CreateDirectories(testdir); | ||
RteFsUtils::CreateTextFile(filePath, ""); | ||
EXPECT_EQ("1.2.3", GetToolboxVersion(testdir)); | ||
|
||
RteFsUtils::RemoveDir(testdir); | ||
} |