summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-11-24 20:26:44 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-11 17:21:43 +0000
commit93b13d9995ccfc478f5733463c9a394a60b5e309 (patch)
treef90b0670ef10771ec265de6c55f4bd3ae672ff88 /meta/classes
parent67965302e271c48520ec32c0b57ea649c77efbb5 (diff)
downloadpoky-93b13d9995ccfc478f5733463c9a394a60b5e309.tar.gz
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) (From OE-Core rev: e7751fa0bdb5bc9b217a0bf267a9c658bec997fa) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/insane.bbclass20
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):
822 822
823 return sane 823 return sane
824 824
825# Run all package-wide warnfuncs and errorfuncs
826def package_qa_package(warnfuncs, errorfuncs, skip, package, d):
827 warnings = {}
828 errors = {}
829
830 for func in warnfuncs:
831 func(package, d, warnings)
832 for func in errorfuncs:
833 func(package, d, errors)
834
835 for w in warnings:
836 package_qa_handle_error(w, warnings[w], d)
837 for e in errors:
838 package_qa_handle_error(e, errors[e], d)
839
840 return len(errors) == 0
841
825# Walk over all files in a directory and call func 842# Walk over all files in a directory and call func
826def package_qa_walk(warnfuncs, errorfuncs, skip, package, d): 843def package_qa_walk(warnfuncs, errorfuncs, skip, package, d):
827 import oe.qa 844 import oe.qa
@@ -1162,6 +1179,9 @@ python do_package_qa () {
1162 warn_checks, error_checks = parse_test_matrix("QAPATHTEST") 1179 warn_checks, error_checks = parse_test_matrix("QAPATHTEST")
1163 package_qa_walk(warn_checks, error_checks, skip, package, d) 1180 package_qa_walk(warn_checks, error_checks, skip, package, d)
1164 1181
1182 warn_checks, error_checks = parse_test_matrix("QAPKGTEST")
1183 package_qa_package(warn_checks, error_checks, skip, package, d)
1184
1165 package_qa_check_rdepends(package, pkgdest, skip, taskdeps, packages, d) 1185 package_qa_check_rdepends(package, pkgdest, skip, taskdeps, packages, d)
1166 package_qa_check_deps(package, pkgdest, skip, d) 1186 package_qa_check_deps(package, pkgdest, skip, d)
1167 1187