diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-09-13 13:00:49 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-14 15:20:08 +0100 |
commit | 0f5691f23c41493cd76e2442b9dcf9d21d8545e8 (patch) | |
tree | b309e0737f1f6b513dfab5ff386d36eaafd9a7c8 /meta | |
parent | 9788cccca70099d6c6b1d6f89d2be0bdb304e577 (diff) | |
download | poky-0f5691f23c41493cd76e2442b9dcf9d21d8545e8.tar.gz |
patchtest: Add README.md for selftests
Add a short README describing how to setup patchtest's selftests for
oe-core.
(From OE-Core rev: afd4f3d9fa22dd0fbb0c30bbfc4a3de37d695c76)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/patchtest/README.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/lib/patchtest/README.md b/meta/lib/patchtest/README.md new file mode 100644 index 0000000000..f66613c0c1 --- /dev/null +++ b/meta/lib/patchtest/README.md | |||
@@ -0,0 +1,20 @@ | |||
1 | # patchtest selftests for openembedded-core | ||
2 | |||
3 | This directory provides a test suite and selftest script for use with the | ||
4 | patchtest repository: https://git.yoctoproject.org/patchtest/ | ||
5 | |||
6 | To setup for use: | ||
7 | |||
8 | 1. Clone https://git.openembedded.org/openembedded-core (this repo) and https://git.openembedded.org/bitbake/ | ||
9 | 2. Clone https://git.yoctoproject.org/patchtest | ||
10 | 3. Install the necessary Python modules: in meta/lib/patchtest or the patchtest | ||
11 | repo, do `pip install -r requirements.txt` | ||
12 | 4. Add patchtest to PATH: `export PATH=/path/to/patchtest/repo:$PATH` | ||
13 | 5. Initialize the environment: `source oe-init-build-env` | ||
14 | 6. Add meta-selftest to bblayers.conf: `bitbake-layers add-layer | ||
15 | /path/to/meta-selftest/` (the selftests use this layer's recipes as test | ||
16 | targets) | ||
17 | 7. Finally, run the selftest script: `./meta/lib/patchtest/selftest/selftest` | ||
18 | |||
19 | For more information on using patchtest, see the patchtest repo at | ||
20 | https://git.yoctoproject.org/patchtest/. | ||