mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
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>
|
||
|---|---|---|
| .. | ||
| selftest | ||
| tests | ||
| data.py | ||
| patch.py | ||
| README.md | ||
| repo.py | ||
| requirements.txt | ||
| utils.py | ||
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:
- Clone https://git.openembedded.org/openembedded-core (this repo) and https://git.openembedded.org/bitbake/
- Clone https://git.yoctoproject.org/patchtest
- Install the necessary Python modules: in meta/lib/patchtest or the patchtest
repo, do
pip install -r requirements.txt - Add patchtest to PATH:
export PATH=/path/to/patchtest/repo:$PATH - Initialize the environment:
source oe-init-build-env - Add meta-selftest to bblayers.conf:
bitbake-layers add-layer /path/to/meta-selftest/(the selftests use this layer's recipes as test targets) - 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/.