poky/meta/lib/patchtest
Trevor Gamblin fd06e4f266 patchtest: clean up test suite
Various tweaks to make the test suite cleaner and more efficient:

- Replace use of "re" module with "pyparsing" in tests (but not base.py)
- Make test_mbox_cve only check for CVE tags in the commit if the added
  patch has them
- Make test_mbox_cve SKIP instead of PASS if there's no CVE tag
- Simplify the bugzilla tag checking test now that pyparsing is used
- Modify the selftest script to correctly parse the new result output

(From OE-Core rev: 7a187c2475aa762e2bc830950f608143f2535a72)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-13 11:53:06 +01:00
..
selftest patchtest: clean up test suite 2023-10-13 11:53:06 +01:00
tests patchtest: clean up test suite 2023-10-13 11:53:06 +01:00
README.md patchtest: Add README.md for selftests 2023-09-14 15:20:08 +01:00
requirements.txt patchtest: add requirements.txt 2023-09-14 15:20:08 +01:00

patchtest selftests for openembedded-core

This directory provides a test suite and selftest script for use with the patchtest repository: https://git.yoctoproject.org/patchtest/

To setup for use:

  1. Clone https://git.openembedded.org/openembedded-core (this repo) and https://git.openembedded.org/bitbake/
  2. Clone https://git.yoctoproject.org/patchtest
  3. Install the necessary Python modules: in meta/lib/patchtest or the patchtest repo, do pip install -r requirements.txt
  4. Add patchtest to PATH: export PATH=/path/to/patchtest/repo:$PATH
  5. Initialize the environment: source oe-init-build-env
  6. Add meta-selftest to bblayers.conf: bitbake-layers add-layer /path/to/meta-selftest/ (the selftests use this layer's recipes as test targets)
  7. Finally, run the selftest script: ./meta/lib/patchtest/selftest/selftest

For more information on using patchtest, see the patchtest repo at https://git.yoctoproject.org/patchtest/.