diff options
author | Humberto Ibarra <humberto.ibarra.lopez@intel.com> | 2016-02-19 15:29:31 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-28 11:32:33 +0000 |
commit | 923481c7d8c09ed9b03109cf4debcc6b07845c59 (patch) | |
tree | a71a60a7f3d21cb63078f57b68b3836c3f571715 /meta/lib | |
parent | 9b704ae44d9dc1d3d5c3aee6d7a5530b642070c4 (diff) | |
download | openembedded-core-923481c7d8c09ed9b03109cf4debcc6b07845c59.tar.gz openembedded-core-923481c7d8c09ed9b03109cf4debcc6b07845c59.tar.bz2 openembedded-core-923481c7d8c09ed9b03109cf4debcc6b07845c59.zip |
scripts/oe-selftest: Add filtering to the coverage data gathered by oe-selftest
When --coverage is used, oe-selftest gathers coverage data from the testcases
executed. The command lacks a way of filtering which files to gather coverage
data from.
This patch adds three options to specify which files should be considered.
The --coverage-source option specifies folders, while --coverage-include and
--coverage-omit specify patterns to have an extra level of filtering.
Some examples:
1. oe-selftest --run-all-tests --coverage
Gathers coverage data from the default poky folders
2. oe-selftest --run-all-tests --coverage --coverage-include /home/me/poky/scripts/*
Gathers coverage data only for the files located under '/home/me/poky/scripts'
3. oe-selftest --run-all-tests -coverage --coverage-omit /home/me/poky/meta*
Gathers coverage data. Files inside all the folders starting with 'meta' under
'/home/me/poky' are omited
4. oe-selftest --run-all-tests --coverage --coverage-source /home/me/poky/bitbake
Gathers coverage data only from files inside the folder: '/home/me/poky/bitbake'
[Yocto #8920]
Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib')
0 files changed, 0 insertions, 0 deletions