summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-11 21:01:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-14 07:17:47 +0000
commit3419f8340cc515b3f71f23a4b49bd898e972668e (patch)
tree47d5e47df207e4fec8b6e468b7cc628c555671bd
parent5850561b05bd5bd16b2d02d0c4c4efc705543139 (diff)
downloadpoky-3419f8340cc515b3f71f23a4b49bd898e972668e.tar.gz
ptest-packagelists: Simplify ptest list/code
All the usage sites remove the -ptest suffix. Simply the original list instead and clean up the code. (From OE-Core rev: 4a28057849f9edc6ac06d115531f579673d788b5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/ptest.bbclass2
-rw-r--r--meta/conf/distro/include/ptest-packagelists.inc250
-rw-r--r--meta/recipes-core/images/core-image-ptest-all.bb4
-rw-r--r--meta/recipes-core/images/core-image-ptest.bb2
4 files changed, 129 insertions, 129 deletions
diff --git a/meta/classes-recipe/ptest.bbclass b/meta/classes-recipe/ptest.bbclass
index 0383206a6d..a1c3c3f1a6 100644
--- a/meta/classes-recipe/ptest.bbclass
+++ b/meta/classes-recipe/ptest.bbclass
@@ -138,5 +138,5 @@ def package_qa_check_missing_ptest(pn, d, messages):
138 return 138 return
139 139
140 enabled_ptests = " ".join([d.getVar('PTESTS_FAST'), d.getVar('PTESTS_SLOW'), d.getVar('PTESTS_PROBLEMS')]).split() 140 enabled_ptests = " ".join([d.getVar('PTESTS_FAST'), d.getVar('PTESTS_SLOW'), d.getVar('PTESTS_PROBLEMS')]).split()
141 if (pn + "-ptest").replace(d.getVar('MLPREFIX'), '') not in enabled_ptests: 141 if pn.replace(d.getVar('MLPREFIX'), '') not in enabled_ptests:
142 oe.qa.handle_error("missing-ptest", "supports ptests but is not included in oe-core's ptest-packagelists.inc", d) 142 oe.qa.handle_error("missing-ptest", "supports ptests but is not included in oe-core's ptest-packagelists.inc", d)
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index 0681b4b7a2..d60ebb38fc 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -4,137 +4,137 @@
4# ptests which take less than ~30s each 4# ptests which take less than ~30s each
5# 5#
6PTESTS_FAST = "\ 6PTESTS_FAST = "\
7 acl-ptest \ 7 acl \
8 apr-util-ptest \ 8 apr-util \
9 attr-ptest \ 9 attr \
10 babeltrace-ptest \ 10 babeltrace \
11 babeltrace2-ptest \ 11 babeltrace2 \
12 bc-ptest \ 12 bc \
13 bluez5-ptest \ 13 bluez5 \
14 busybox-ptest \ 14 busybox \
15 cpio-ptest \ 15 cpio \
16 diffstat-ptest \ 16 diffstat \
17 diffutils-ptest \ 17 diffutils \
18 ethtool-ptest \ 18 ethtool \
19 expat-ptest \ 19 expat \
20 findutils-ptest \ 20 findutils \
21 flex-ptest \ 21 flex \
22 gawk-ptest \ 22 gawk \
23 gdbm-ptest \ 23 gdbm \
24 gdk-pixbuf-ptest \ 24 gdk-pixbuf \
25 glib-networking-ptest \ 25 glib-networking \
26 gzip-ptest \ 26 gzip \
27 json-c-ptest \ 27 json-c \
28 json-glib-ptest \ 28 json-glib \
29 libconvert-asn1-perl-ptest \ 29 libconvert-asn1-perl \
30 liberror-perl-ptest \ 30 liberror-perl \
31 libgpg-error-ptest\ 31 libgpg-error\
32 libnl-ptest \ 32 libnl \
33 libpcre-ptest \ 33 libpcre \
34 libssh2-ptest \ 34 libssh2 \
35 libtimedate-perl-ptest \ 35 libtimedate-perl \
36 libtest-fatal-perl-ptest \ 36 libtest-fatal-perl \
37 libtest-needs-perl-ptest \ 37 libtest-needs-perl \
38 libtest-warnings-perl-ptest \ 38 libtest-warnings-perl \
39 libtry-tiny-perl-ptest \ 39 libtry-tiny-perl \
40 liburi-perl-ptest \ 40 liburi-perl \
41 libusb1-ptest \ 41 libusb1 \
42 libxml-namespacesupport-perl-ptest \ 42 libxml-namespacesupport-perl \
43 libxml-perl-ptest \ 43 libxml-perl \
44 libxml-parser-perl-ptest \ 44 libxml-parser-perl \
45 libxml-sax-perl-ptest \ 45 libxml-sax-perl \
46 libxml-sax-base-perl-ptest \ 46 libxml-sax-base-perl \
47 libxml-simple-perl-ptest \ 47 libxml-simple-perl \
48 libxml2-ptest \ 48 libxml2 \
49 lua-ptest \ 49 lua \
50 lzo-ptest \ 50 lzo \
51 m4-ptest \ 51 m4 \
52 nettle-ptest \ 52 nettle \
53 opkg-ptest \ 53 opkg \
54 pango-ptest \ 54 pango \
55 popt-ptest \ 55 popt \
56 python3-atomicwrites-ptest \ 56 python3-atomicwrites \
57 python3-bcrypt-ptest \ 57 python3-bcrypt \
58 python3-hypothesis-ptest \ 58 python3-hypothesis \
59 python3-jinja2-ptest \ 59 python3-jinja2 \
60 python3-jsonpointer-ptest \ 60 python3-jsonpointer \
61 python3-markupsafe-ptest \ 61 python3-markupsafe \
62 python3-more-itertools-ptest \ 62 python3-more-itertools \
63 python3-pluggy-ptest \ 63 python3-pluggy \
64 python3-pyasn1-ptest \ 64 python3-pyasn1 \
65 python3-pytz-ptest \ 65 python3-pytz \
66 python3-wcwidth-ptest \ 66 python3-wcwidth \
67 python3-webcolors-ptest \ 67 python3-webcolors \
68 qemu-ptest \ 68 qemu \
69 quilt-ptest \ 69 quilt \
70 sed-ptest \ 70 sed \
71 slang-ptest \ 71 slang \
72 wayland-ptest \ 72 wayland \
73 zlib-ptest \ 73 zlib \
74" 74"
75PTESTS_FAST:append:libc-glibc = " glibc-tests-ptest" 75PTESTS_FAST:append:libc-glibc = " glibc-tests"
76PTESTS_PROBLEMS:remove:libc-glibc = "glibc-tests-ptest" 76PTESTS_PROBLEMS:remove:libc-glibc = "glibc-tests"
77PTESTS_FAST:remove:mips64 = "qemu-ptest" 77PTESTS_FAST:remove:mips64 = "qemu"
78PTESTS_PROBLEMS:append:mips64 = " qemu-ptest" 78PTESTS_PROBLEMS:append:mips64 = " qemu"
79PTESTS_FAST:remove:riscv32 = "qemu-ptest" 79PTESTS_FAST:remove:riscv32 = "qemu"
80PTESTS_PROBLEMS:append:riscv32 = " qemu-ptest" 80PTESTS_PROBLEMS:append:riscv32 = " qemu"
81 81
82PTESTS_SLOW = "\ 82PTESTS_SLOW = "\
83 apr-ptest \ 83 apr \
84 bzip2-ptest \ 84 bzip2 \
85 coreutils-ptest \ 85 coreutils \
86 curl-ptest \ 86 curl \
87 dbus-ptest \ 87 dbus \
88 e2fsprogs-ptest \ 88 e2fsprogs \
89 elfutils-ptest \ 89 elfutils \
90 gettext-ptest \ 90 gettext \
91 glib-2.0-ptest \ 91 glib-2.0 \
92 gnutls-ptest \ 92 gnutls \
93 gstreamer1.0-ptest \ 93 gstreamer1.0 \
94 libevent-ptest \ 94 libevent \
95 libgcrypt-ptest \ 95 libgcrypt \
96 libmodule-build-perl-ptest \ 96 libmodule-build-perl \
97 lttng-tools-ptest \ 97 lttng-tools \
98 openssh-ptest \ 98 openssh \
99 openssl-ptest \ 99 openssl \
100 parted-ptest \ 100 parted \
101 perl-ptest \ 101 perl \
102 python3-cryptography-ptest \ 102 python3-cryptography \
103 python3-ptest \ 103 python3 \
104 strace-ptest \ 104 strace \
105 tcl-ptest \ 105 tcl \
106 util-linux-ptest \ 106 util-linux \
107 valgrind-ptest \ 107 valgrind \
108" 108"
109 109
110PTESTS_SLOW:remove:riscv64 = "valgrind-ptest" 110PTESTS_SLOW:remove:riscv64 = "valgrind"
111PTESTS_PROBLEMS:append:riscv64 = " valgrind-ptest" 111PTESTS_PROBLEMS:append:riscv64 = " valgrind"
112PTESTS_SLOW:append:libc-musl = " libc-test-ptest" 112PTESTS_SLOW:append:libc-musl = " libc-test"
113PTESTS_SLOW:remove:x86 = "valgrind-ptest" 113PTESTS_SLOW:remove:x86 = "valgrind"
114PTESTS_PROBLEMS:append:x86 = " valgrind-ptest" 114PTESTS_PROBLEMS:append:x86 = " valgrind"
115 115
116# ruby-ptest \ # Timeout 116# ruby \ # Timeout
117# lz4-ptest \ # Needs a rewrite 117# lz4 \ # Needs a rewrite
118# rt-tests-ptest \ # Needs to be checked whether it runs at all 118# rt-tests \ # Needs to be checked whether it runs at all
119# bash-ptest \ # Test outcomes are non-deterministic by design 119# bash \ # Test outcomes are non-deterministic by design
120# ifupdown-ptest \ # Tested separately in lib/oeqa/selftest/cases/imagefeatures.py 120# ifupdown \ # Tested separately in lib/oeqa/selftest/cases/imagefeatures.py
121# mdadm-ptest \ # Tests rely on non-deterministic sleep() amounts 121# mdadm \ # Tests rely on non-deterministic sleep() amounts
122# libinput-ptest \ # Tests need an unloaded system to be reliable 122# libinput \ # Tests need an unloaded system to be reliable
123# libpam-ptest \ # Needs pam DISTRO_FEATURE 123# libpam \ # Needs pam DISTRO_FEATURE
124# numactl-ptest \ # qemu not (yet) configured for numa; all tests are skipped 124# numactl \ # qemu not (yet) configured for numa; all tests are skipped
125# libseccomp-ptest \ # tests failed: 38; add to slow tests once addressed 125# libseccomp \ # tests failed: 38; add to slow tests once addressed
126# python3-numpy-ptest \ # requires even more RAM and (possibly) disk space; multiple failures 126# python3-numpy \ # requires even more RAM and (possibly) disk space; multiple failures
127 127
128PTESTS_PROBLEMS = "\ 128PTESTS_PROBLEMS = "\
129 ruby-ptest \ 129 ruby \
130 lz4-ptest \ 130 lz4 \
131 rt-tests-ptest \ 131 rt-tests \
132 bash-ptest \ 132 bash \
133 ifupdown-ptest \ 133 ifupdown \
134 mdadm-ptest \ 134 mdadm \
135 libinput-ptest \ 135 libinput \
136 libpam-ptest \ 136 libpam \
137 libseccomp-ptest \ 137 libseccomp \
138 numactl-ptest \ 138 numactl \
139 python3-numpy-ptest \ 139 python3-numpy \
140" 140"
diff --git a/meta/recipes-core/images/core-image-ptest-all.bb b/meta/recipes-core/images/core-image-ptest-all.bb
index 81c9b2d68a..c84e653d6e 100644
--- a/meta/recipes-core/images/core-image-ptest-all.bb
+++ b/meta/recipes-core/images/core-image-ptest-all.bb
@@ -12,9 +12,9 @@ require conf/distro/include/ptest-packagelists.inc
12PTESTS = "${PTESTS_FAST} ${PTESTS_SLOW}" 12PTESTS = "${PTESTS_FAST} ${PTESTS_SLOW}"
13 13
14do_testimage[noexec] = "1" 14do_testimage[noexec] = "1"
15do_testimage[depends] = "${@' '.join(['core-image-ptest-'+x.replace('-ptest', '')+':do_testimage' for x in d.getVar('PTESTS').split()])}" 15do_testimage[depends] = "${@' '.join(['core-image-ptest-'+x+':do_testimage' for x in d.getVar('PTESTS').split()])}"
16 16
17do_build[depends] = "${@' '.join(['core-image-ptest-'+x.replace('-ptest', '')+':do_build' for x in d.getVar('PTESTS').split()])}" 17do_build[depends] = "${@' '.join(['core-image-ptest-'+x+':do_build' for x in d.getVar('PTESTS').split()])}"
18 18
19# normally image.bbclass would do this 19# normally image.bbclass would do this
20EXCLUDE_FROM_WORLD = "1" 20EXCLUDE_FROM_WORLD = "1"
diff --git a/meta/recipes-core/images/core-image-ptest.bb b/meta/recipes-core/images/core-image-ptest.bb
index 0c67943b05..90c26641ba 100644
--- a/meta/recipes-core/images/core-image-ptest.bb
+++ b/meta/recipes-core/images/core-image-ptest.bb
@@ -11,7 +11,7 @@ PTESTS = "${PTESTS_SLOW} ${PTESTS_FAST}"
11 11
12IMAGE_INSTALL:append = " ${MCNAME}-ptest openssh" 12IMAGE_INSTALL:append = " ${MCNAME}-ptest openssh"
13 13
14BBCLASSEXTEND = "${@' '.join(['mcextend:'+x.replace('-ptest', '') for x in d.getVar('PTESTS').split()])}" 14BBCLASSEXTEND = "${@' '.join(['mcextend:'+x for x in d.getVar('PTESTS').split()])}"
15 15
16# The image can sufficiently large (~1.8GB) that we need to be careful that it fits in a live 16# The image can sufficiently large (~1.8GB) that we need to be careful that it fits in a live
17# image (which has a 4GB limit), so nullify the overhead factor (1.3x out of the 17# image (which has a 4GB limit), so nullify the overhead factor (1.3x out of the