mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
![]() Currently, patchtest has a lot of spread-out definitions for patterns used in various setup and test functions. Organize these by putting them all into a new patterns.py module. This allows the tests/pyparsing directory to be removed, as it is now redundant. Also remove some definitions where they were duplicated or unused, and perform some renames to improve readability and avoid collisions. Many of these variables are composed from others, so the file is only partially sorted. (From OE-Core rev: 1ab55d495957918be532a36224b5598c9955a44d) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
||
---|---|---|
.. | ||
selftest | ||
tests | ||
data.py | ||
patch.py | ||
patterns.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/.