poky/meta/lib/patchtest
Trevor Gamblin 2e084b7b80 patchtest: test_metadata: fix invalid escape sequences
Clear up the following warnings seen during patchtest runs:

|/workspace/yocto/poky/meta/lib/patchtest/tests/test_metadata.py:21: SyntaxWarning: invalid escape sequence '\+'
|  add_mark = pyparsing.Regex('\+ ')
|/workspace/yocto/poky/meta/lib/patchtest/tests/test_metadata.py:26: SyntaxWarning: invalid escape sequence '\:'
|  git_regex = pyparsing.Regex('^git\:\/\/.*')

(From OE-Core rev: b5406d3691341c050a62fc9a32dc5573fd0c484f)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 2d64317835a768898aac592b24fcbdfaf6c8357a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2024-05-23 08:55:01 -07:00
..
selftest patchtest: Add selftest for test cve_check_ignore 2024-02-19 11:39:08 +00:00
tests patchtest: test_metadata: fix invalid escape sequences 2024-05-23 08:55:01 -07:00
data.py patchtest: remove unused imports 2023-10-19 14:53:45 +01:00
patch.py patchtest: update SPDX identifiers 2023-10-17 22:53:30 +01:00
README.md patchtest: Add README.md for selftests 2023-09-14 15:20:08 +01:00
repo.py patchtest: remove unused imports 2023-10-19 14:53:45 +01:00
requirements.txt patchtest/requirements.txt: update 2023-10-17 11:41:34 +01:00
utils.py meta/lib/patchtest: python 3.12 regex 2024-02-13 13:51:41 +00: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/.