Searched refs:manifestFilePath (Results 1 – 4 of 4) sorted by relevance
/openbmc/phosphor-psu-code-mgmt/test/ |
H A D | test_version.cpp | 65 auto manifestFilePath = fs::path(tmpDir) / "MANIFEST"; in TEST_F() local 66 writeFile(manifestFilePath, validManifest); in TEST_F() 67 auto ret = Version::getValues(manifestFilePath.string(), in TEST_F() 95 auto manifestFilePath = fs::path(tmpDir) / "MANIFEST"; in TEST_F() local 96 writeFile(manifestFilePath, validManifestWithCRLF); in TEST_F() 97 auto ret = Version::getValues(manifestFilePath.string(), in TEST_F()
|
/openbmc/phosphor-bmc-code-mgmt/test/ |
H A D | utest.cpp | 49 auto manifestFilePath = _directory + "/" + "MANIFEST"; in TEST_F() local 54 file.open(manifestFilePath, std::ofstream::out); in TEST_F() 61 EXPECT_EQ(Version::getValue(manifestFilePath, "version"), version); in TEST_F() 62 EXPECT_EQ(Version::getValue(manifestFilePath, "purpose"), purpose); in TEST_F() 67 auto manifestFilePath = _directory + "/" + "MANIFEST"; in TEST_F() local 71 file.open(manifestFilePath, std::ofstream::out); in TEST_F() 80 EXPECT_EQ(Version::getRepeatedValues(manifestFilePath, "CompatibleName"), in TEST_F() 86 auto manifestFilePath = _directory + "/" + "MANIFEST"; in TEST_F() local 91 file.open(manifestFilePath, std::ofstream::out); in TEST_F() 98 EXPECT_EQ(Version::getValue(manifestFilePath, "version"), version); in TEST_F() [all …]
|
/openbmc/phosphor-bmc-code-mgmt/ |
H A D | version.cpp | 30 std::string Version::getValue(const std::string& manifestFilePath, in getValue() argument 33 std::vector<std::string> values = getRepeatedValues(manifestFilePath, key); in getValue() 47 const std::string& manifestFilePath, std::string key) in getRepeatedValues() argument 52 if (manifestFilePath.empty()) in getRepeatedValues() 57 Argument::ARGUMENT_VALUE(manifestFilePath.c_str())); in getRepeatedValues() 68 efile.open(manifestFilePath); in getRepeatedValues()
|
H A D | version.hpp | 108 static std::string getValue(const std::string& manifestFilePath, 117 getRepeatedValues(const std::string& manifestFilePath, std::string key);
|