summaryrefslogtreecommitdiff
path: root/meta-phosphor/scripts/run-repotest.sh
AgeCommit message (Collapse)AuthorFilesLines
2021-10-26repotest: remove extensionPatrick Williams1-83/+1
The fact the script is current written in bash is not useful information to anyone invoking it. Remove the extension to allow future rewrite, if desired, without impacting other tooling or users. Temporarily create a symlink until `openbmc-build-scripts` can be updated for new script name. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib9cf07b587cae78c09e78184e0d35f2ed95d77ad
2021-10-19repotest: reduce patches in meta-amperePatrick Williams1-3/+0
With 8115d65b8c83099b62f303de7d5dbccacd2761b6, the number of required patches for meta-ampere's u-boot config was reduced. Remove the old patches from the repotest. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4ffa2a0134d3f630ae368e79ac34cb6f6e3a960c
2021-09-20Ignore grep failuresEd Tanous1-1/+1
When the last round of reviews added -e to the bash statement, it exposed a slight flaw, in that when there aren't failures, grep will return a code if it's not able to find any matches. This commit changes that such that grep errors are "ignored" in the context of bash. Tested: ran run-repotest.sh on a clean repository, and observed "repo test passed" Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I716220652d48b9a8489bf4dc0c3b4734b98a70e4
2021-09-18Implement a test for patch complianceEd Tanous1-0/+82
Per our documentation, patches outside of a couple specific directories aren't allowed. This commit implements a build-time check to see if any new patches have been added. Functionally, because there's several meta layers that have broken the rules already, it has to contain a check against the various patches that already exist in the tree. This list doesn't constitute a grandfather-ing in of those patches, but recognizes that we can't immediately back them out, and having the maintainers take care of them will take time. Of note, this patchset also ignores patches in any of the poky layers, as we can't define their policies, and allows patches in meta-phosphor, as a backdoor in case we need a trapdoor to this policy, and all the maintainers agree to it. This change was originally checked into openbmc-build-scripts, but was moved to support more users, and keeping this list up to date. All comments on the latest review from https://gerrit.openbmc-project.xyz/c/openbmc/openbmc-build-scripts/+/46064/2 have been addressed. Change-Id: I1c3e062278b4856cbfda910bdbf122e4b7539f89 Signed-off-by: Ed Tanous <edtanous@google.com>
2021-09-18Add repo tests to main repositoryEd Tanous1-0/+4
This commit adds the repo test scripts to the main openbmc repository to be used for verification of meta layers. It is intended to go in hand with https://gerrit.openbmc-project.xyz/c/openbmc/openbmc-build-scripts/+/46063 to allow testing meta layers at compile time for compliance. For the moment it is just a no-op test; In the future, more capabilities will be added. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I034c9cd60590907db73d759eb9d943e3e62e62ec