diff options
author | Ross Burton <ross.burton@intel.com> | 2016-11-24 20:26:44 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-11 11:46:43 +0000 |
commit | e7751fa0bdb5bc9b217a0bf267a9c658bec997fa (patch) | |
tree | 2999a85d29b6780aa835cefb796626e85a01ebb1 /meta/classes | |
parent | 3b21c285d4ff08ae6f613700c5936e39e7e3051d (diff) | |
download | openembedded-core-e7751fa0bdb5bc9b217a0bf267a9c658bec997fa.tar.gz openembedded-core-e7751fa0bdb5bc9b217a0bf267a9c658bec997fa.tar.bz2 openembedded-core-e7751fa0bdb5bc9b217a0bf267a9c658bec997fa.zip |
insane: add QAPKGTEST, a package-wide equivilant to QAPATHTEST
QAPATHTEST defines a function that is executed for every file in every package.
For tests which just need to look at the datastore this is massive overkill.
Add QAPKGTEST, which is invoked for each package in the recipe.
(From OE-Core rev: acc3cc26099c77e4eeb44c75bc7167ab58ef1147)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/insane.bbclass | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 0ba4cae23e..407ccee739 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -822,6 +822,23 @@ def package_qa_check_staged(path,d): return sane +# Run all package-wide warnfuncs and errorfuncs +def package_qa_package(warnfuncs, errorfuncs, skip, package, d): + warnings = {} + errors = {} + + for func in warnfuncs: + func(package, d, warnings) + for func in errorfuncs: + func(package, d, errors) + + for w in warnings: + package_qa_handle_error(w, warnings[w], d) + for e in errors: + package_qa_handle_error(e, errors[e], d) + + return len(errors) == 0 + # Walk over all files in a directory and call func def package_qa_walk(warnfuncs, errorfuncs, skip, package, d): import oe.qa @@ -1162,6 +1179,9 @@ python do_package_qa () { warn_checks, error_checks = parse_test_matrix("QAPATHTEST") package_qa_walk(warn_checks, error_checks, skip, package, d) + warn_checks, error_checks = parse_test_matrix("QAPKGTEST") + package_qa_package(warn_checks, error_checks, skip, package, d) + package_qa_check_rdepends(package, pkgdest, skip, taskdeps, packages, d) package_qa_check_deps(package, pkgdest, skip, d) |