/openbmc/phosphor-power/phosphor-power-sequencer/test/ |
H A D | config_file_parser_error_tests.cpp | 26 std::filesystem::path pathName{ in TEST() local 28 ConfigFileParserError error{pathName, "Required property missing"}; in TEST() 29 EXPECT_EQ(error.getPathName(), pathName); in TEST() 38 std::filesystem::path pathName{ in TEST() local 40 ConfigFileParserError error{pathName, "Required property missing"}; in TEST() 41 EXPECT_EQ(error.getPathName(), pathName); in TEST() 46 std::filesystem::path pathName{ in TEST() local 48 ConfigFileParserError error{pathName, "Required property missing"}; in TEST()
|
H A D | config_file_parser_tests.cpp | 45 void writeConfigFile(const fs::path& pathName, const std::string& contents) in writeConfigFile() argument 47 std::ofstream file{pathName}; in writeConfigFile() 51 void writeConfigFile(const fs::path& pathName, const json& contents) in writeConfigFile() argument 53 std::ofstream file{pathName}; in writeConfigFile() 266 fs::path pathName{configFile.getPath()}; in TEST() local 267 writeConfigFile(pathName, configFileContents); in TEST() 269 std::vector<std::unique_ptr<Rail>> rails = parse(pathName); in TEST() 278 fs::path pathName{"/tmp/non_existent_file"}; in TEST() local 279 EXPECT_THROW(parse(pathName), ConfigFileParserError); in TEST() 295 fs::path pathName{configFile.getPath()}; in TEST() local [all …]
|
/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | config_file_parser_error_tests.cpp | 26 std::filesystem::path pathName{"/etc/phosphor-regulators/foo.json"}; in TEST() local 27 ConfigFileParserError error{pathName, "Required property missing"}; in TEST() 28 EXPECT_EQ(error.getPathName(), pathName); in TEST() 36 std::filesystem::path pathName{"/usr/share/phosphor-regulators/foo.json"}; in TEST() local 37 ConfigFileParserError error{pathName, "Required property missing"}; in TEST() 38 EXPECT_EQ(error.getPathName(), pathName); in TEST() 43 std::filesystem::path pathName{"/etc/phosphor-regulators/foo.json"}; in TEST() local 44 ConfigFileParserError error{pathName, "Required property missing"}; in TEST()
|
H A D | config_file_parser_tests.cpp | 74 void writeConfigFile(const std::filesystem::path& pathName, in writeConfigFile() argument 77 std::ofstream file{pathName}; in writeConfigFile() 81 void writeConfigFile(const std::filesystem::path& pathName, in writeConfigFile() argument 84 std::ofstream file{pathName}; in writeConfigFile() 117 std::filesystem::path pathName{configFile.getPath()}; in TEST() local 118 writeConfigFile(pathName, configFileContents); in TEST() 122 std::tie(rules, chassis) = parse(pathName); in TEST() 143 std::filesystem::path pathName{"/tmp/non_existent_file"}; in TEST() local 144 parse(pathName); in TEST() 164 std::filesystem::path pathName{configFile.getPath()}; in TEST() local [all …]
|
/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | config_file_parser_error.hpp | 48 explicit ConfigFileParserError(const std::filesystem::path& pathName, in ConfigFileParserError() argument 50 pathName{pathName}, in ConfigFileParserError() 51 error{"ConfigFileParserError: " + pathName.string() + ": " + error} 61 return pathName; in getPathName() 78 const std::filesystem::path pathName; member in phosphor::power::regulators::ConfigFileParserError
|
H A D | manager.cpp | 267 fs::path pathName{testConfigFileDir / fileName}; in findConfigFile() local 268 if (fs::exists(pathName)) in findConfigFile() 270 return pathName; in findConfigFile() 274 pathName = standardConfigFileDir / fileName; in findConfigFile() 275 if (fs::exists(pathName)) in findConfigFile() 277 return pathName; in findConfigFile() 320 fs::path pathName = findConfigFile(); in loadConfigFile() local 321 if (!pathName.empty()) in loadConfigFile() 325 "Loading configuration file " + pathName.string()); in loadConfigFile() 330 std::tie(rules, chassis) = config_file_parser::parse(pathName); in loadConfigFile()
|
H A D | config_file_parser.cpp | 35 parse(const std::filesystem::path& pathName) in parse() argument 40 std::ifstream file{pathName}; in parse() 48 throw ConfigFileParserError{pathName, e.what()}; in parse()
|
H A D | config_file_parser.hpp | 74 parse(const std::filesystem::path& pathName);
|
/openbmc/phosphor-power/phosphor-power-sequencer/src/ |
H A D | config_file_parser_error.hpp | 47 explicit ConfigFileParserError(const std::filesystem::path& pathName, in ConfigFileParserError() argument 49 pathName{pathName}, in ConfigFileParserError() 50 error{"ConfigFileParserError: " + pathName.string() + ": " + error} 60 return pathName; in getPathName() 77 const std::filesystem::path pathName; member in phosphor::power::sequencer::ConfigFileParserError
|
H A D | config_file_parser.cpp | 38 fs::path pathName, possiblePath; in find() local 49 pathName = possiblePath; in find() 62 pathName = possiblePath; in find() 68 return pathName; in find() 71 std::vector<std::unique_ptr<Rail>> parse(const std::filesystem::path& pathName) in parse() argument 76 std::ifstream file{pathName}; in parse() 84 throw ConfigFileParserError{pathName, e.what()}; in parse()
|
H A D | config_file_parser.hpp | 72 std::vector<std::unique_ptr<Rail>> parse(const std::filesystem::path& pathName);
|
/openbmc/dbus-sensors/src/intrusion/ |
H A D | IntrusionSensorMain.cpp | 295 const std::string& pathName = message.get_path(); in processLanStatusChange() local 317 size_t pos = pathName.find("/_"); in processLanStatusChange() 318 if (pos == std::string::npos || pathName.length() <= pos + 2) in processLanStatusChange() 320 std::cerr << "unexpected path name " << pathName << "\n"; in processLanStatusChange() 323 std::string suffixStr = pathName.substr(pos + 2); in processLanStatusChange()
|
/openbmc/phosphor-power/cold-redundancy/ |
H A D | cold_redundancy.cpp | 176 std::string pathName = object.first; in createPSU() local 255 serviceName.c_str(), pathName.c_str(), in createPSU()
|
/openbmc/intel-ipmi-oem/src/ |
H A D | oemcommands.cpp | 2046 std::string pathName; in ipmiOEMSetFscParameter() local 2049 pathName = exitAirPathName; in ipmiOEMSetFscParameter() 2053 pathName = pchPathName; in ipmiOEMSetFscParameter() 2059 std::string path = getConfigPath(pathName); in ipmiOEMSetFscParameter() 2150 std::string pathName; in ipmiOEMGetFscParameter() local 2154 pathName = exitAirPathName; in ipmiOEMGetFscParameter() 2158 pathName = pchPathName; in ipmiOEMGetFscParameter() 2166 std::string path = getConfigPath(pathName); in ipmiOEMGetFscParameter() 3691 std::string pathName = object.first; in getPSUAddress() local 3699 ctx->yield, ec, serviceName, pathName, in getPSUAddress()
|
/openbmc/ipmbbridge/ |
H A D | ipmbbridged.cpp | 900 std::string pathName = message.get_path(); in addUpdateTargetAddrHandler() local 901 if (pathName != "/xyz/openbmc_project/MultiNode/Status") in addUpdateTargetAddrHandler()
|