/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | repository_test.cpp | 30 * Clean the Repo after every testcase. 71 Repository repo{repoPath}; in TEST_F() local 75 repo.add(pel); in TEST_F() 89 EXPECT_EQ(repo.lastPelID(), pel->id()); in TEST_F() 97 // Add and remove a PEL from the repo in TEST_F() 99 Repository repo{repoPath}; in TEST_F() local 107 repo.add(pel); in TEST_F() 109 auto removedID = repo.remove(id); in TEST_F() 113 EXPECT_FALSE(repo.hasPEL(id)); in TEST_F() 116 EXPECT_FALSE(repo.remove(id)); in TEST_F() [all …]
|
H A D | host_notifier_test.cpp | 43 HostNotifierTest() : repo(repoPath) in HostNotifierTest() 71 Repository repo; member in HostNotifierTest 160 HostNotifier notifier{repo, dataIface, std::move(hostIface)}; in TEST_F() 163 repo.add(pel); in TEST_F() 169 // Not in the repo in TEST_F() 174 repo.setPELHostTransState(pel->id(), TransmissionState::acked); in TEST_F() 184 HostNotifier notifier{repo, dataIface, std::move(hostIface)}; in TEST_F() 193 repo.add(pel); in TEST_F() 203 HostNotifier notifier{repo, dataIface, std::move(hostIface)}; in TEST_F() 212 repo.add(pel); in TEST_F() [all …]
|
/openbmc/libpldm/tests/dsp/ |
H A D | pdr.cpp | 93 auto repo = pldm_pdr_init(); in TEST() local 94 EXPECT_EQ(pldm_pdr_get_record_count(repo), 0u); in TEST() 95 EXPECT_EQ(pldm_pdr_get_repo_size(repo), 0u); in TEST() 96 pldm_pdr_destroy(repo); in TEST() 101 auto repo = pldm_pdr_init(); in TEST() local 105 EXPECT_EQ(pldm_pdr_add(repo, data.data(), data.size(), false, 1, &handle), in TEST() 108 EXPECT_EQ(pldm_pdr_get_record_count(repo), 1u); in TEST() 109 EXPECT_EQ(pldm_pdr_get_repo_size(repo), data.size()); in TEST() 112 EXPECT_EQ(pldm_pdr_add(repo, data.data(), data.size(), false, 1, &handle), in TEST() 117 EXPECT_EQ(pldm_pdr_add(repo, data.data(), data.size(), false, 1, &handle), in TEST() [all …]
|
/openbmc/libpldm/src/dsp/ |
H A D | pdr.c | 38 static pldm_pdr_record *pldm_pdr_get_prev_record(pldm_pdr *repo, 42 static int pldm_pdr_remove_record(pldm_pdr *repo, pldm_pdr_record *record, 46 static inline uint32_t get_next_record_handle(const pldm_pdr *repo, in get_next_record_handle() argument 49 if (record == repo->last) { in get_next_record_handle() 56 int pldm_pdr_add(pldm_pdr *repo, const uint8_t *data, uint32_t size, in pldm_pdr_add() argument 62 if (!repo || !data || !size) { in pldm_pdr_add() 68 } else if (repo->last) { in pldm_pdr_add() 69 curr = repo->last->record_handle; in pldm_pdr_add() 110 assert(!repo->first == !repo->last); in pldm_pdr_add() 111 if (repo->first == NULL) { in pldm_pdr_add() [all …]
|
/openbmc/libpldm/include/libpldm/ |
H A D | pdr.h | 40 * @param[in/out] repo - pointer to opaque pointer acting as a PDR repo handle 42 void pldm_pdr_destroy(pldm_pdr *repo); 46 * @pre repo must point to a valid object 48 * @param[in] repo - opaque pointer acting as a PDR repo handle 52 uint32_t pldm_pdr_get_record_count(const pldm_pdr *repo); 56 * @pre repo must point to a valid object 58 * @param[in] repo - opaque pointer acting as a PDR repo handle 62 uint32_t pldm_pdr_get_repo_size(const pldm_pdr *repo); 66 * @param[in/out] repo - opaque pointer acting as a PDR repo handle 79 int pldm_pdr_add(pldm_pdr *repo, const uint8_t *data, uint32_t size, [all …]
|
/openbmc/linux/arch/powerpc/platforms/ps3/ |
H A D | repository.c | 290 int ps3_repository_find_device(struct ps3_repository_device *repo) in ps3_repository_find_device() argument 293 struct ps3_repository_device tmp = *repo; in ps3_repository_find_device() 296 BUG_ON(repo->bus_index > 10); in ps3_repository_find_device() 297 BUG_ON(repo->dev_index > 10); in ps3_repository_find_device() 335 *repo = tmp; in ps3_repository_find_device() 339 int ps3_repository_find_device_by_id(struct ps3_repository_device *repo, in ps3_repository_find_device_by_id() argument 412 *repo = tmp; in ps3_repository_find_device_by_id() 417 int (*callback)(const struct ps3_repository_device *repo)) in ps3_repository_find_devices() argument 420 struct ps3_repository_device repo; in ps3_repository_find_devices() local 424 repo.bus_type = bus_type; in ps3_repository_find_devices() [all …]
|
H A D | device-init.c | 115 const struct ps3_repository_device *repo) in ps3_setup_gelic_device() argument 125 BUG_ON(repo->bus_type != PS3_BUS_TYPE_SB); in ps3_setup_gelic_device() 126 BUG_ON(repo->dev_type != PS3_DEV_TYPE_SB_GELIC); in ps3_setup_gelic_device() 137 p->dev.bus_id = repo->bus_id; in ps3_setup_gelic_device() 138 p->dev.dev_id = repo->dev_id; in ps3_setup_gelic_device() 141 result = ps3_repository_find_interrupt(repo, in ps3_setup_gelic_device() 182 const struct ps3_repository_device *repo, enum ps3_match_id match_id, in ps3_setup_uhc_device() argument 196 BUG_ON(repo->bus_type != PS3_BUS_TYPE_SB); in ps3_setup_uhc_device() 197 BUG_ON(repo->dev_type != PS3_DEV_TYPE_SB_USB); in ps3_setup_uhc_device() 208 p->dev.bus_id = repo->bus_id; in ps3_setup_uhc_device() [all …]
|
/openbmc/pldm/common/test/ |
H A D | pldm_utils_test.cpp | 141 auto repo = pldm_pdr_init(); in TEST() local 163 ASSERT_EQ(pldm_pdr_add(repo, pdr.data(), pdr.size(), false, 1, &handle), 0); in TEST() 165 auto record = findStateEffecterPDR(tid, entityID, stateSetId, repo); in TEST() 169 pldm_pdr_destroy(repo); in TEST() 174 auto repo = pldm_pdr_init(); in TEST() local 196 ASSERT_EQ(pldm_pdr_add(repo, pdr.data(), pdr.size(), false, 1, &handle), 0); in TEST() 198 auto record = findStateEffecterPDR(tid, entityID, stateSetId, repo); in TEST() 202 pldm_pdr_destroy(repo); in TEST() 207 auto repo = pldm_pdr_init(); in TEST() local 216 auto record = findStateEffecterPDR(tid, entityID, stateSetId, repo); in TEST() [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/utils/ |
H A D | gitarchive.py | 34 raise ArchiveError("Invalid Git repo at {}: path exists but is not a " 38 raise ArchiveError("No git repo at {}, refusing to create " 46 log.info("Initializing a new Git repo at %s", path) 47 repo = GitRepo.init(path, bare) 49 repo = GitRepo(path, is_topdir=True) 55 return repo 58 def git_commit_data(repo, data_dir, branch, message, exclude, notes, log): argument 61 tmp_index = os.path.join(repo.git_dir, 'index.oe-git-archive') 66 repo.run_cmd('add .', env_update) 70 repo.run_cmd(['rm', '--cached', '--ignore-unmatch'] + [f for f in exclude], env_update) [all …]
|
/openbmc/openbmc/poky/scripts/ |
H A D | combo-layer | 42 # Repo not created yet (i.e. during init) so just assume master 62 def readsection(parser, section, repo): argument 65 self.repos[repo][name] = eval(value.strip("@")) 72 self.repos[repo][name] = value 88 for repo in self.parser.sections(): 89 if repo == "combo-layer-settings": 91 readglobalsection(self.parser, repo) 93 self.repos[repo] = {} 94 readsection(self.parser, repo, repo) 116 repo = sectionvals[0] [all …]
|
H A D | oe-build-perf-report | 41 def list_test_revs(repo, tag_name, verbosity, **kwargs): argument 45 fields, revs = gitarchive.get_test_runs(log, repo, tag_name, **valid_kwargs) 90 def is_xml_format(repo, commit): argument 92 if repo.rev_parse(commit + ':results.xml'): 99 def read_results(repo, tags, xml=True): argument 100 """Read result files from repo""" 135 data = parse_xml_stream(repo.run_cmd(['show'] + git_objs + ['--'])) 140 data = parse_json_stream(repo.run_cmd(['show'] + git_objs + ['--'])) 383 def get_buildstats(repo, notes_ref, notes_ref2, revs, outdir=None): argument 386 if not repo.rev_parse(full_ref): [all …]
|
H A D | test-remote-image | 12 # test-remote-image --image-type core-image-sato --repo-link http://192.168.10.2/images --required-… 78 …parser.add_argument('--repo-link', required=True, action="store", type=str, dest="repo_link", defa… 81 …ction="store", nargs=1, dest="repoprofile", default='PublicAB', help='The repo profile to be used.… 257 self.repo = self.get_repo_profile(self.repolink) 261 repo = getattr(sys.modules[__name__], self.repoprofile)(*args, **kwargs) 262 log.info("Using repo profile: %s" % repo.__class__.__name__) 263 return repo 271 …# Run the testimage task on a build while redirecting DEPLOY_DIR_IMAGE to repo.localdir, where the… 274 postconfig = "DEPLOY_DIR_IMAGE = \"%s\"" % self.repo.localdir 299 log.info("Creating directory structure %s" % self.repo.localdir) [all …]
|
/openbmc/openbmc/poky/meta/lib/patchtest/ |
H A D | repo.py | 4 # patchtestrepo: PatchTestRepo class used mainly to control a git repo from patchtest 22 self.repo = git.Repo.init(repodir) 24 self.current_branch = self.repo.active_branch.name 29 if self.patch.branch in self.repo.branches: 47 self.repo.git.execute(['git', 'checkout', '-B', self._workingbranch, self._commit]) 55 …self.repo.git.execute(['git', 'apply', '--check', os.path.abspath(self.patch.path)], with_exceptio… 71 return self.repo.rev_parse(commit).hexsha 73 print(f"Couldn't find commit {commit} in repo") 79 self.repo.git.execute(['git', 'am', '--keep-cr', os.path.abspath(self.patch.path)]) 83 self.repo.git.execute(['git', 'checkout', self.current_branch]) [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/repo/ |
H A D | repo_2.51.bb | 5 DESCRIPTION = "Repo is a tool built on top of Git. Repo helps manage many Git repositories, does th… 6 HOMEPAGE = "https://android.googlesource.com/tools/repo" 12 SRC_URI = "git://gerrit.googlesource.com/git-repo.git;protocol=https;branch=main \ 16 MIRRORS += "git://gerrit.googlesource.com/git-repo.git git://github.com/GerritCodeReview/git-repo.g… 21 sed -Ei "s/REPO_REV\s*=\s*('|\")stable('|\")/REPO_REV = '${SRCREV}'/g" ${S}/repo 25 install -D ${S}/repo ${D}${bindir}/repo
|
/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/ |
H A D | repo.py | 2 BitBake "Fetch" repo (git) implementation 20 class Repo(FetchMethod): class 21 """Class to fetch a module or modules from repo (git) repositories""" 24 Check to see if a given url can be fetched with repo. 26 return ud.type in ["repo"] 36 ud.basecmd = d.getVar("FETCHCMD_repo") or "/usr/bin/env repo" 50 … logger.debug("%s already exists (or was stashed). Skipping repo init / sync.", ud.localpath) 53 repodir = d.getVar("REPODIR") or (d.getVar("DL_DIR") + "/repo") 62 repodir = os.path.join(codir, "repo") 64 if not os.path.exists(os.path.join(repodir, ".repo")): [all …]
|
/openbmc/openbmc/poky/meta-selftest/lib/oeqa/runtime/cases/ |
H A D | dnf_runtime.py | 12 cls.repo_server = HTTPService(os.path.join(cls.tc.td['WORKDIR'], 'oe-rootfs-repo'), 29 2. Update recovers packages from host's repo 35 temp_file = os.path.join(self.temp_dir.name, 'tmp.repo') 36 self.tc.target.copyFrom("/etc/yum.repos.d/oe-remote-repo.repo", temp_file) 40 self.tc.target.copyTo(temp_file, "/etc/yum.repos.d/oe-remote-repo.repo") 45 …makecache, re.DOTALL) is None, msg = "dnf makecache failed to synchronize repo: %s" %(output_makec… 49 matchobj = re.match(r".*Repo-pkgs\s*:\s*(?P<n_pkgs>[0-9]+)", output_repoinfo, re.DOTALL)
|
/openbmc/openbmc/meta-arm/ci/ |
H A D | update-repos | 12 # Taken from Kas (Repo.__getattr__) to ensure the logic is right 37 for repo in repositories: 38 repodir = base_repodir / repo_shortname(repo) 41 print("Cleaning %s..." % repo) 46 print("Updating %s..." % repo) 52 print("Cloning %s..." % repo) 53 subprocess.run(["git", "clone", "--bare", repo, repodir], check=True)
|
/openbmc/docs/testing/ |
H A D | local-ci-build.md | 29 ## Add a Read-Only Repo 37 in the repo named `format-code.sh`. 53 an active development branch. If you plan to develop regularly on a repo, use 56 ## Run CI on local changed Repo 58 If you have local changes in the repo, and you do not want to commit yet, it's 70 not format the code and thus your repo could contain un-committed changes. 84 ## Reference an Existing Repo with `git worktree` 86 If you're actively developing on a local copy of a repo already, or you want to 88 container can reference a specific branch of your existing local repo. Learn 121 repo:
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/vk-gl-cts/files/ |
H A D | generate-srcuri.py | 12 def resolve_commit(repo, ref): argument 18 cmd = ("git", "ls-remote", "--tags", "--exit-code", repo, ref) 79 for repo in data.repos: 81 if hasattr(repo, "build_platforms") and repo.build_platforms != "linux": 85 parts = urllib.parse.urlparse(repo.url) 90 sha = resolve_commit(repo.url, repo.commit) 92 destsuffix = destination + "/" + repo.sub_dir
|
/openbmc/pldm/oem/ibm/libpldmresponder/ |
H A D | oem_ibm_handler.cpp | 182 uint16_t stateSetID, pdr_utils::Repo& repo) in buildAllCodeUpdateEffecterPDR() argument 229 repo.addRecord(pdrEntry); in buildAllCodeUpdateEffecterPDR() 233 pdr_utils::Repo& repo, in buildAllSlotEnableEffecterPDR() argument 293 repo.addRecord(pdrEntry); in buildAllSlotEnableEffecterPDR() 299 uint16_t stateSetID, pdr_utils::Repo& repo) in buildAllCodeUpdateSensorPDR() argument 343 repo.addRecord(pdrEntry); in buildAllCodeUpdateSensorPDR() 347 pdr_utils::Repo& repo, in buildAllSlotEnableSensorPDR() argument 402 repo.addRecord(pdrEntry); in buildAllSlotEnableSensorPDR() 407 pdr_utils::Repo& repo) in buildOEMPDR() argument 411 repo); in buildOEMPDR() [all …]
|
/openbmc/pldm/libpldmresponder/test/ |
H A D | libpldmresponder_platform_test.cpp | 47 Repo repo(pdrRepo); in TEST() local 48 ASSERT_EQ(repo.empty(), false); in TEST() 85 Repo repo(pdrRepo); in TEST() local 86 ASSERT_EQ(repo.empty(), false); in TEST() 117 Repo repo(pdrRepo); in TEST() local 118 ASSERT_EQ(repo.empty(), false); in TEST() 147 Repo repo(pdrRepo); in TEST() local 148 ASSERT_EQ(repo.empty(), false); in TEST() 179 Repo repo(pdrRepo); in TEST() local 180 ASSERT_EQ(repo.empty(), false); in TEST() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/openthread/ |
H A D | ot-br-posix_git.bb | 8 … file://third_party/Simple-web-server/repo/LICENSE;md5=091ac9fd29d87ad1ae5bf765d95278b0 \ 9 file://third_party/cJSON/repo/LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0 \ 10 … file://third_party/http-parser/repo/LICENSE-MIT;md5=9bfa835d048c194ab30487af8d7b3778 \ 11 … file://third_party/openthread/repo/LICENSE;md5=543b6fe90ec5901a683320a36390c65f \ 21 file://0001-fix-build-on-GCC-14-for-yocto.patch;patchdir=third_party/openthread/repo \ 22 file://0001-Musl-build-fix.patch;patchdir=third_party/openthread/repo \
|
/openbmc/pldm/pldmd/ |
H A D | oem_ibm.hpp | 47 * @param[in] repo - pointer to BMC's primary PDR repo 59 pldm_pdr* repo, pldm::InstanceIdDb& instanceIdDb, in OemIBM() argument 66 dBusIntf(dBusIntf), mctp_fd(mctp_fd), mctp_eid(mctp_eid), repo(repo), in OemIBM() 107 std::make_unique<pldm::responder::SlotHandler>(event, repo); in createSlotHandler() 133 oemFruHandler = std::make_unique<responder::oem_ibm_fru::Handler>(repo); in createOemFruHandler() 155 instanceIdDb, repo, reqHandler); in createHostLampTestHandler() 177 /** @brief pointer to BMC's primary PDR repo */ 178 pldm_pdr* repo; member in pldm::oem_ibm::OemIBM
|
/openbmc/openbmc/poky/scripts/lib/recipetool/ |
H A D | create_go.py | 121 repo = "repo" variable in GoRecipeHandler.__resolve_repository_static.vcs 131 vcsGitHub[vcs.repo] = "https://\\g<root>" 139 vcsBitbucket[vcs.repo] = "https://\\g<root>" 147 vcsIBMDevOps[vcs.repo] = "https://\\g<root>" 155 vcsApacheGit[vcs.repo] = "https://\\g<root>" 163 vcsOpenStackGit[vcs.repo] = "https://\\g<root>" 171 vcsChiselapp[vcs.repo] = "https://\\g<root>" 177 …"(?P<root>(?P<repo>([a-z0-9.\\-]+\\.)+[a-z0-9.\\-]+(:[0-9]+)?(/~?[A-Za-z0-9_.\\-]+)+?)\\.(?P<vcs>b… 203 repourl = m.expand(srv[vcs.repo]) 209 repourl = m[vcs.repo] [all …]
|
/openbmc/pldm/libpldmresponder/ |
H A D | oem_handler.hpp | 68 * @param[in] repo - instance of concrete implementation of Repo 70 virtual void buildOEMPDR(pldm::responder::pdr_utils::Repo& repo) = 0; 101 * @param[in] repo - pointer to BMC's primary PDR repo 103 * @return the last BMC record from the repo 105 virtual const pldm_pdr_record* fetchLastBMCRecord(const pldm_pdr* repo) = 0;
|