Home
last modified time | relevance | path

Searched refs:getPath (Results 1 – 25 of 67) sorted by relevance

123

/openbmc/phosphor-power/test/
H A Dtemporary_subdirectory_tests.cpp32 fs::path path = subdirectory.getPath(); in TEST()
48 EXPECT_FALSE(subdirectory1.getPath().empty()); in TEST()
49 EXPECT_TRUE(fs::exists(subdirectory1.getPath())); in TEST()
52 fs::path path = subdirectory1.getPath(); in TEST()
58 EXPECT_TRUE(subdirectory1.getPath().empty()); in TEST()
61 EXPECT_EQ(subdirectory2.getPath(), path); in TEST()
62 EXPECT_TRUE(fs::exists(subdirectory2.getPath())); in TEST()
71 EXPECT_FALSE(subdirectory1.getPath().empty()); in TEST()
72 EXPECT_TRUE(fs::exists(subdirectory1.getPath())); in TEST()
75 fs::path path1 = subdirectory1.getPath(); in TEST()
[all …]
H A Dtemporary_file_tests.cpp71 fs::path path = file.getPath(); in TEST()
88 EXPECT_FALSE(file1.getPath().empty()); in TEST()
89 EXPECT_TRUE(fs::exists(file1.getPath())); in TEST()
92 fs::path path = file1.getPath(); in TEST()
98 EXPECT_TRUE(file1.getPath().empty()); in TEST()
101 EXPECT_EQ(file2.getPath(), path); in TEST()
102 EXPECT_TRUE(fs::exists(file2.getPath())); in TEST()
111 EXPECT_FALSE(file1.getPath().empty()); in TEST()
112 EXPECT_TRUE(fs::exists(file1.getPath())); in TEST()
115 fs::path path1 = file1.getPath(); in TEST()
[all …]
/openbmc/phosphor-logging/test/openpower-pels/
H A Dtemporary_file_test.cpp84 std::filesystem::remove_all(tmpFile->getPath()); in TearDown()
87 std::filesystem::remove_all(tmpFileNoData->getPath()); in TearDown()
100 fs::path path = tmpFile->getPath(); in TEST_F()
115 fs::path path = tmpFileNoData->getPath(); in TEST_F()
131 EXPECT_FALSE(tmpFile->getPath().empty()); in TEST_F()
132 EXPECT_TRUE(fs::exists(tmpFile->getPath())); in TEST_F()
135 fs::path path = tmpFile->getPath(); in TEST_F()
141 EXPECT_TRUE(tmpFile->getPath().empty()); in TEST_F()
144 EXPECT_EQ(file.getPath(), path); in TEST_F()
145 EXPECT_TRUE(fs::exists(file.getPath())); in TEST_F()
[all …]
/openbmc/phosphor-power/phosphor-regulators/test/
H A Dffdc_file_tests.cpp53 EXPECT_FALSE(file.getPath().empty()); in TEST()
54 EXPECT_TRUE(fs::exists(file.getPath())); in TEST()
65 EXPECT_FALSE(file.getPath().empty()); in TEST()
66 EXPECT_TRUE(fs::exists(file.getPath())); in TEST()
116 EXPECT_FALSE(file.getPath().empty()); in TEST()
117 EXPECT_TRUE(fs::exists(file.getPath())); in TEST()
157 EXPECT_FALSE(file.getPath().empty()); in TEST()
158 EXPECT_TRUE(fs::exists(file.getPath())); in TEST()
161 fs::path path = file.getPath(); in TEST()
165 EXPECT_TRUE(file.getPath().empty()); in TEST()
[all …]
/openbmc/telemetry/tests/src/
H A Dtest_report.cpp229 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Enabled"), in TEST_F()
231 EXPECT_THAT(getProperty<uint64_t>(sut->getPath(), "Interval"), in TEST_F()
233 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Persistency"), Eq(true)); in TEST_F()
235 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
239 EXPECT_THAT(getProperty<bool>(sut->getPath(), "EmitsReadingsUpdate"), in TEST_F()
242 EXPECT_THAT(getProperty<uint64_t>(sut->getPath(), "AppendLimit"), in TEST_F()
244 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "ReportingType"), in TEST_F()
246 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "ReportUpdates"), in TEST_F()
249 getProperty<bool>(sut->getPath(), "LogToMetricReportsCollection"), in TEST_F()
253 getProperty<ReadingParameters>(sut->getPath(), "ReadingParameters"), in TEST_F()
[all …]
H A Dtest_trigger.cpp152 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "Name"), in TEST_F()
154 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Persistent"), Eq(true)); in TEST_F()
156 getProperty<std::vector<std::string>>(sut->getPath(), "TriggerActions"), in TEST_F()
160 EXPECT_THAT((getProperty<SensorsInfo>(sut->getPath(), "Sensors")), in TEST_F()
163 getProperty<std::vector<object_path>>(sut->getPath(), "Reports"), in TEST_F()
166 getProperty<bool>(sut->getPath(), "Discrete"), in TEST_F()
170 sut->getPath(), "NumericThresholds"), in TEST_F()
175 sut->getPath(), "DiscreteThresholds"), in TEST_F()
183 EXPECT_THAT(sut->getPath(), in TEST_F()
190 EXPECT_THAT(setProperty(sut->getPath(), "Name", name), in TEST_F()
[all …]
/openbmc/skeleton/pytools/
H A Dgpioutil62 def getPath(self,name):
75 raise Exception("ERROR - Not exported: "+self.getPath())
86 self.write(self.getPath('edge'),self.interrupt)
90 current_direction = self.read(self.getPath('direction'))
92 self.write(self.getPath('direction'),self.direction)
96 self.write(self.getPath('value'),'0')
98 self.write(self.getPath('value'),'1')
103 return self.read(self.getPath('value'))
/openbmc/openpower-hw-diags/util/
H A Dpdbg.cpp51 const char* getPath(pdbg_target* i_trgt) in getPath() function
56 const char* getPath(const libhei::Chip& i_chip) in getPath() function
58 return getPath(getTrgt(i_chip)); in getPath()
124 std::string{getPath(i_unitTarget)}); in getParentChip()
149 "No parent chip found: i_target=" + std::string{getPath(i_target)}); in getParentProcessor()
204 "Unexpected parent chip: " + std::string{getPath(i_parentChip)}); in getChipUnit()
223 getPath(i_parentChip), i_unitType, i_unitPos); in getChipUnit()
286 std::string rxPath = util::pdbg::getPath(i_rxTarget); in getTargetAcrossBus()
310 std::string rxPath = util::pdbg::getPath(i_rxTarget); in getConnectedTarget()
460 getPath(i_trgt)); in __addChip()
[all …]
H A Dpdbg-no-sim.cpp38 trace::err("sbe_lpc_timeout() failed: target=%s", getPath(target)); in queryLpcTimeout()
67 std::string{getPath(i_target)}); in getScom()
74 "SCOM_TARGET", getPath(i_target), "SCOM_ADDRESS", in getScom()
94 "CFAM_TARGET", getPath(i_target), "CFAM_ADDRESS", in getCfam()
/openbmc/openpower-debug-collector/watchdog/
H A Dffdc_file.cpp41 int fd = open(tempFile.getPath().c_str(), O_RDWR); in prepareFFDCFile()
54 "FILE", tempFile.getPath(), "ERRNO", errno, "ERRORMSG", in prepareFFDCFile()
63 "FILE", tempFile.getPath(), "WRITTEN", rc, "TOTAL", in prepareFFDCFile()
73 "FILE", tempFile.getPath(), "ERRNO", errno, "ERRORMSG", in prepareFFDCFile()
H A Dffdc_file.hpp69 const fs::path& getPath() const in getPath() function in watchdog::dump::FFDCFile
71 return tempFile.getPath(); in getPath()
/openbmc/phosphor-power/phosphor-power-sequencer/test/
H A Dconfig_file_parser_tests.cpp67 fs::path configFileDirPath = configFileDir.getPath(); in TEST()
80 fs::path configFileDirPath = configFileDir.getPath(); in TEST()
93 fs::path configFileDirPath = configFileDir.getPath(); in TEST()
106 fs::path configFileDirPath = configFileDir.getPath(); in TEST()
119 fs::path configFileDirPath = configFileDir.getPath(); in TEST()
134 fs::path configFileDirPath = configFileDir.getPath(); in TEST()
148 fs::path configFileDirPath = configFileDir.getPath(); in TEST()
165 fs::path configFileDirPath = configFileDir.getPath(); in TEST()
177 fs::path configFileDirPath = configFileDir.getPath(); in TEST()
190 fs::path configFileDirPath = configFileDir.getPath(); in TEST()
[all …]
H A Dpmbus_driver_device_tests.cpp59 tempDirPath = tempDir.getPath();
406 EXPECT_CALL(pmbus, getPath(Type::Hwmon)) in TEST_F()
435 EXPECT_CALL(pmbus, getPath(Type::Hwmon)) in TEST_F()
475 EXPECT_CALL(pmbus, getPath(Type::Hwmon)) in TEST_F()
504 EXPECT_CALL(pmbus, getPath(Type::Hwmon)) in TEST_F()
549 EXPECT_CALL(pmbus, getPath(Type::Hwmon)) in TEST_F()
582 EXPECT_CALL(pmbus, getPath(Type::Hwmon)) in TEST_F()
624 EXPECT_CALL(pmbus, getPath(Type::Hwmon)) in TEST_F()
646 EXPECT_CALL(pmbus, getPath(Type::Hwmon)) in TEST_F()
676 EXPECT_CALL(pmbus, getPath(Type::Hwmon)) in TEST_F()
[all …]
/openbmc/openpower-hw-diags/analyzer/
H A Dhei_user_interface.cpp59 util::pdbg::getPath(i_procTrgt), i_regType, i_address); in __readProc()
87 util::pdbg::getPath(i_obmcTrgt), i_regType, i_address); in __readOcmb()
117 util::pdbg::getPath(trgt), trgtType); in registerRead()
124 util::pdbg::getPath(trgt), i_address); in registerRead()
H A Dcreate_pel.cpp101 std::ofstream o{io_userDataFiles.back().getPath()}; in __addCalloutList()
115 std::ofstream o{io_userDataFiles.back().getPath()}; in __addCalloutFFDC()
130 auto path = io_userDataFiles.back().getPath(); in __captureSignatureList()
169 auto path = io_userDataFiles.back().getPath(); in __captureRegisterDump()
270 auto path = io_userDataFiles.back().getPath(); in __captureHostbootScratchRegisters()
327 auto path = io_userDataFiles.back().getPath(); in __captureScratchRegSignature()
/openbmc/openpower-proc-control/procedures/phal/
H A Dreinit_devtree.cpp129 auto tmpDevtreePath = tmpDevtreeFile.getPath(); in reinitDevtree()
154 FILE_Ptr fpExport(fopen(tmpFile.getPath().c_str(), "w+"), in reinitDevtree()
161 tmpFile.getPath().c_str()) in reinitDevtree()
187 FILE_Ptr fpImport(fopen(tmpFile.getPath().c_str(), "r"), FileCloser()); in reinitDevtree()
192 tmpFile.getPath().c_str()) in reinitDevtree()
/openbmc/witherspoon-pfault-analysis/
H A Dpmbus.cpp61 fs::path PMBus::getPath(Type type) in getPath() function in witherspoon::pmbus::PMBus
120 fs::path path = getPath(type); in readBit()
166 auto path = getPath(type); in exists()
175 auto path = getPath(type); in read()
206 auto path = getPath(type); in readString()
236 auto path = getPath(type) / name; in readBinary()
279 fs::path path = getPath(type); in write()
/openbmc/phosphor-power/
H A Dpmbus.cpp61 fs::path PMBus::getPath(Type type) in getPath() function in phosphor::pmbus::PMBus
122 fs::path path = getPath(type); in readBit()
172 auto path = getPath(type); in exists()
181 auto path = getPath(type); in read()
222 auto path = getPath(type); in readString()
254 auto path = getPath(type) / name; in readBinary()
299 fs::path path = getPath(type); in write()
331 fs::path path = getPath(type); in writeBinary()
/openbmc/openpower-hw-diags/analyzer/plugins/
H A Dp10-tod-plugins.cpp142 static_cast<uint64_t>(i_addr), util::pdbg::getPath(i_chip)); in readRegister()
247 util::pdbg::getPath(i_chip)); in collectTodFaultData()
286 slavePathSelect, util::pdbg::getPath(i_chip), in collectTodFaultData()
287 iohsPos, util::pdbg::getPath(chipSourcingClock)); in collectTodFaultData()
300 util::pdbg::getPath(i_chip)); in collectTodFaultData()
H A Dp10-plugins.cpp65 auto path = util::pdbg::getPath(target); in lpc_timeout_callout()
101 auto path = util::pdbg::getPath(target); in lpc_timeout()
127 trace::inf("Host detected LPC timeout %s", util::pdbg::getPath(i_chip)); in lpc_timeout_workaround()
/openbmc/telemetry/tests/src/mocks/
H A Dtrigger_mock.hpp15 ON_CALL(*this, getPath).WillByDefault([id] { return "/" + id; }); in TriggerMock()
25 MOCK_METHOD(std::string, getPath, (), (const, override));
H A Dreport_mock.hpp15 ON_CALL(*this, getPath).WillByDefault([id] { return "/" + id; }); in ReportMock()
25 MOCK_METHOD(std::string, getPath, (), (override, const));
/openbmc/phosphor-power/phosphor-regulators/src/
H A Dffdc_file.hpp106 const fs::path& getPath() const in getPath() function in phosphor::power::regulators::FFDCFile
108 return tempFile.getPath(); in getPath()
/openbmc/openpower-hw-diags/test/
H A Dpdbg-sim-only.cpp52 "SCOM_TARGET", getPath(i_target), "SCOM_ADDRESS", in getScom()
72 "CFAM_TARGET", getPath(i_target), "CFAM_ADDRESS", in getCfam()
H A Dtest-util-data-file.cpp27 string fullPathTempFile1 = tempFile1.getPath(); in TEST()
28 string fullPathTempFile2 = tempFile2.getPath(); in TEST()

123