diff options
-rw-r--r-- | meta/classes/ptest.bbclass | 11 | ||||
-rw-r--r-- | meta/conf/distro/include/ptest-packagelists.inc | 50 |
2 files changed, 50 insertions, 11 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index 47611edea2..466916299a 100644 --- a/meta/classes/ptest.bbclass +++ b/meta/classes/ptest.bbclass | |||
@@ -20,6 +20,8 @@ RRECOMMENDS_${PN}-ptest += "ptest-runner" | |||
20 | 20 | ||
21 | PACKAGES =+ "${@bb.utils.contains('PTEST_ENABLED', '1', '${PN}-ptest', '', d)}" | 21 | PACKAGES =+ "${@bb.utils.contains('PTEST_ENABLED', '1', '${PN}-ptest', '', d)}" |
22 | 22 | ||
23 | require conf/distro/include/ptest-packagelists.inc | ||
24 | |||
23 | do_configure_ptest() { | 25 | do_configure_ptest() { |
24 | : | 26 | : |
25 | } | 27 | } |
@@ -116,4 +118,13 @@ python () { | |||
116 | if not(d.getVar('PTEST_ENABLED') == "1"): | 118 | if not(d.getVar('PTEST_ENABLED') == "1"): |
117 | for i in ['do_configure_ptest_base', 'do_compile_ptest_base', 'do_install_ptest_base']: | 119 | for i in ['do_configure_ptest_base', 'do_compile_ptest_base', 'do_install_ptest_base']: |
118 | bb.build.deltask(i, d) | 120 | bb.build.deltask(i, d) |
121 | |||
122 | # This checks that ptest package is actually included | ||
123 | # in standard oe-core ptest images - only for oe-core recipes | ||
124 | if not 'meta/recipes' in d.getVar('FILE') or not(d.getVar('PTEST_ENABLED') == "1"): | ||
125 | return | ||
126 | |||
127 | enabled_ptests = " ".join([d.getVar('PTESTS_FAST'),d.getVar('PTESTS_SLOW'), d.getVar('PTESTS_PROBLEMS')]).split() | ||
128 | if (d.getVar('PN') + "-ptest").replace(d.getVar('MLPREFIX'), '') not in enabled_ptests: | ||
129 | bb.error("Recipe %s supports ptests but is not included in oe-core's conf/distro/include/ptest-packagelists.inc" % d.getVar("PN")) | ||
119 | } | 130 | } |
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 70d5fa8877..aef70343f6 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc | |||
@@ -20,12 +20,15 @@ PTESTS_FAST = "\ | |||
20 | gdbm-ptest \ | 20 | gdbm-ptest \ |
21 | gdk-pixbuf-ptest \ | 21 | gdk-pixbuf-ptest \ |
22 | gettext-ptest \ | 22 | gettext-ptest \ |
23 | glib-networking-ptest \ | ||
23 | gzip-ptest \ | 24 | gzip-ptest \ |
24 | json-glib-ptest \ | 25 | json-glib-ptest \ |
25 | libconvert-asn1-perl-ptest \ | 26 | libconvert-asn1-perl-ptest \ |
26 | liberror-perl-ptest \ | 27 | liberror-perl-ptest \ |
28 | libnl-ptest \ | ||
27 | libmodule-build-perl-ptest \ | 29 | libmodule-build-perl-ptest \ |
28 | libpcre-ptest \ | 30 | libpcre-ptest \ |
31 | libssh2-ptest \ | ||
29 | libtimedate-perl-ptest \ | 32 | libtimedate-perl-ptest \ |
30 | libtest-needs-perl-ptest \ | 33 | libtest-needs-perl-ptest \ |
31 | liburi-perl-ptest \ | 34 | liburi-perl-ptest \ |
@@ -44,6 +47,12 @@ PTESTS_FAST = "\ | |||
44 | opkg-ptest \ | 47 | opkg-ptest \ |
45 | pango-ptest \ | 48 | pango-ptest \ |
46 | parted-ptest \ | 49 | parted-ptest \ |
50 | python3-atomicwrites-ptest \ | ||
51 | python3-jinja2-ptest \ | ||
52 | python3-markupsafe-ptest \ | ||
53 | python3-more-itertools-ptest \ | ||
54 | python3-pluggy-ptest \ | ||
55 | python3-wcwidth-ptest \ | ||
47 | qemu-ptest \ | 56 | qemu-ptest \ |
48 | quilt-ptest \ | 57 | quilt-ptest \ |
49 | sed-ptest \ | 58 | sed-ptest \ |
@@ -52,17 +61,7 @@ PTESTS_FAST = "\ | |||
52 | zlib-ptest \ | 61 | zlib-ptest \ |
53 | " | 62 | " |
54 | PTESTS_FAST_remove_mips64 = "qemu-ptest" | 63 | PTESTS_FAST_remove_mips64 = "qemu-ptest" |
55 | 64 | PTESTS_PROBLEMS_append_mips64 = "qemu-ptest" | |
56 | #PTESTS_PROBLEMS = "\ | ||
57 | # ruby-ptest \ # Timeout | ||
58 | # clutter-1.0-ptest \ # Doesn't build due to depends on cogl-1.0 | ||
59 | # lz4-ptest \ # Needs a rewrite | ||
60 | # rt-tests-ptest \ # Needs to be checked whether it runs at all | ||
61 | # bash-ptest \ # Test outcomes are non-deterministic by design | ||
62 | # ifupdown-ptest \ # Tested separately in lib/oeqa/selftest/cases/imagefeatures.py | ||
63 | # mdadm-ptest \ # Tests rely on non-deterministic sleep() amounts | ||
64 | # libinput-ptest \ # Tests need an unloaded system to be reliable | ||
65 | #" | ||
66 | 65 | ||
67 | PTESTS_SLOW = "\ | 66 | PTESTS_SLOW = "\ |
68 | babeltrace-ptest \ | 67 | babeltrace-ptest \ |
@@ -86,3 +85,32 @@ PTESTS_SLOW = "\ | |||
86 | " | 85 | " |
87 | 86 | ||
88 | PTESTS_SLOW_remove_riscv64 = "valgrind-ptest" | 87 | PTESTS_SLOW_remove_riscv64 = "valgrind-ptest" |
88 | PTESTS_PROBLEMS_append_riscv64 = "valgrind-ptest" | ||
89 | |||
90 | # ruby-ptest \ # Timeout | ||
91 | # clutter-1.0-ptest \ # Doesn't build due to depends on cogl-1.0 | ||
92 | # lz4-ptest \ # Needs a rewrite | ||
93 | # rt-tests-ptest \ # Needs to be checked whether it runs at all | ||
94 | # bash-ptest \ # Test outcomes are non-deterministic by design | ||
95 | # ifupdown-ptest \ # Tested separately in lib/oeqa/selftest/cases/imagefeatures.py | ||
96 | # mdadm-ptest \ # Tests rely on non-deterministic sleep() amounts | ||
97 | # libinput-ptest \ # Tests need an unloaded system to be reliable | ||
98 | # libpam-ptest \ # Needs pam DISTRO_FEATURE | ||
99 | # numactl-ptest \ # qemu not (yet) configured for numa; all tests are skipped | ||
100 | # libseccomp-ptest \ # tests failed: 38; add to slow tests once addressed | ||
101 | # python3-numpy-ptest \ # requires even more RAM and (possibly) disk space; multiple failures | ||
102 | |||
103 | PTESTS_PROBLEMS = "\ | ||
104 | ruby-ptest \ | ||
105 | clutter-1.0-ptest \ | ||
106 | lz4-ptest \ | ||
107 | rt-tests-ptest \ | ||
108 | bash-ptest \ | ||
109 | ifupdown-ptest \ | ||
110 | mdadm-ptest \ | ||
111 | libinput-ptest \ | ||
112 | libpam-ptest \ | ||
113 | libseccomp-ptest \ | ||
114 | numactl-ptest \ | ||
115 | python3-numpy-ptest \ | ||
116 | " | ||