Skip to content

Commit

Permalink
[projmgr] Rename *.cbuild-run.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
spcaipers-arm authored Feb 6, 2025
1 parent 7f69181 commit 724fa1f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions tools/projmgr/include/ProjMgrRunDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ struct DebugSequencesType {
*/
struct RunDebugType {
std::string solution;
std::string solutionName;
std::string targetType;
std::string compiler;
std::string board;
Expand Down
3 changes: 2 additions & 1 deletion tools/projmgr/src/ProjMgrCbuildRun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ void ProjMgrCbuildRun::SetDebugSequencesBlockNode(YAML::Node node, const std::ve
//-- ProjMgrYamlEmitter::GenerateCbuildRun --------------------------------------------------------
bool ProjMgrYamlEmitter::GenerateCbuildRun(const RunDebugType& debugRun) {
// generate cbuild-run.yml
const string& filename = m_outputDir + "/" + debugRun.targetType + ".cbuild-run.yml";
const string& filename = m_outputDir + "/" + debugRun.solutionName + "+" +
debugRun.targetType + ".cbuild-run.yml";
YAML::Node rootNode;
ProjMgrCbuildRun cbuildRun(rootNode[YAML_CBUILD_RUN], debugRun, m_outputDir);
return WriteFile(rootNode, filename);
Expand Down
1 change: 1 addition & 0 deletions tools/projmgr/src/ProjMgrRunDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ bool ProjMgrRunDebug::CollectSettings(const vector<ContextItem*>& contexts) {

// get target settings
const auto& context = contexts.front();
m_runDebug.solutionName = context->csolution->name;
m_runDebug.solution = context->csolution->path;
m_runDebug.targetType = context->type.target;
m_runDebug.compiler = context->compiler;
Expand Down
4 changes: 2 additions & 2 deletions tools/projmgr/test/src/ProjMgrUnitTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6595,6 +6595,6 @@ TEST_F(ProjMgrUnitTests, TestRunDebug) {
argv[5] = (char*)testoutput_folder.c_str();
EXPECT_EQ(0, RunProjMgr(6, argv, m_envp));

ProjMgrTestEnv::CompareFile(testoutput_folder + "/TestHW.cbuild-run.yml",
testinput_folder + "/TestRunDebug/ref/TestHW.cbuild-run.yml");
ProjMgrTestEnv::CompareFile(testoutput_folder + "/run-debug+TestHW.cbuild-run.yml",
testinput_folder + "/TestRunDebug/ref/run-debug+TestHW.cbuild-run.yml");
}

0 comments on commit 724fa1f

Please sign in to comment.