summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-17 14:18:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-23 23:30:19 +0100
commitff9448f915369db8ed9ae7f4ccc617f3912172d6 (patch)
tree6a85a5bf9aa6c5a3440ea7a8e7a1be6a522cbc8a /meta
parenta5dd314fba9e0571ab9af81d6f91c48d8ebfd14a (diff)
downloadpoky-ff9448f915369db8ed9ae7f4ccc617f3912172d6.tar.gz
core-image-sato-ptest-fast: Add 'fast' ptest execution image
Create a common include file which lists recipes that have ptests divided into 'fast' and 'slow' groups. This allows us to include ptests which otherwise may not get included in images and allows us to test the faster running things more regularly. The new image allows access to these faster executing tests. 'fast' is defined as tests which execute in under 30s roughly speaking. (From OE-Core rev: 2d8f8ab85d98929b0f1f699f256b40b1d9cddaec) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/conf/distro/include/maintainers.inc1
-rw-r--r--meta/conf/distro/include/ptest-packagelists.inc75
-rw-r--r--meta/recipes-sato/images/core-image-sato-ptest-fast.bb16
3 files changed, 92 insertions, 0 deletions
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index 950b8e8951..41c2a95d53 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -122,6 +122,7 @@ RECIPE_MAINTAINER_pn-core-image-clutter = "Richard Purdie <richard.purdie@linuxf
122RECIPE_MAINTAINER_pn-core-image-weston = "Richard Purdie <richard.purdie@linuxfoundation.org>" 122RECIPE_MAINTAINER_pn-core-image-weston = "Richard Purdie <richard.purdie@linuxfoundation.org>"
123RECIPE_MAINTAINER_pn-core-image-x11 = "Richard Purdie <richard.purdie@linuxfoundation.org>" 123RECIPE_MAINTAINER_pn-core-image-x11 = "Richard Purdie <richard.purdie@linuxfoundation.org>"
124RECIPE_MAINTAINER_pn-core-image-sato-dev = "Richard Purdie <richard.purdie@linuxfoundation.org>" 124RECIPE_MAINTAINER_pn-core-image-sato-dev = "Richard Purdie <richard.purdie@linuxfoundation.org>"
125RECIPE_MAINTAINER_pn-core-image-sato-ptest-fast = "Richard Purdie <richard.purdie@linuxfoundation.org>"
125RECIPE_MAINTAINER_pn-core-image-sato-sdk-ptest = "Richard Purdie <richard.purdie@linuxfoundation.org>" 126RECIPE_MAINTAINER_pn-core-image-sato-sdk-ptest = "Richard Purdie <richard.purdie@linuxfoundation.org>"
126RECIPE_MAINTAINER_pn-coreutils = "Chen Qi <Qi.Chen@windriver.com>" 127RECIPE_MAINTAINER_pn-coreutils = "Chen Qi <Qi.Chen@windriver.com>"
127RECIPE_MAINTAINER_pn-cpio = "Denys Dmytriyenko <denys@ti.com>" 128RECIPE_MAINTAINER_pn-cpio = "Denys Dmytriyenko <denys@ti.com>"
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
new file mode 100644
index 0000000000..768ba743ed
--- /dev/null
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -0,0 +1,75 @@
1#
2# Lists of the ptests in OE-Core, sorted into two sets by the time they take
3#
4# ptests which take less than ~30s each
5#
6PTESTS_FAST = "\
7 acl-ptest \
8 apr-ptest \
9 apr-util-ptest \
10 attr-ptest \
11 bluez5-ptest \
12 bzip2-ptest \
13 dbus-test-ptest \
14 diffstat-ptest \
15 diffutils-ptest \
16 elfutils-ptest \
17 ethtool-ptest \
18 flex-ptest \
19 gawk-ptest \
20 gdbm-ptest \
21 gdk-pixbuf-ptest \
22 gzip-ptest \
23 json-glib-ptest \
24 kbd-ptest \
25 libconvert-asn1-perl-ptest \
26 liberror-perl-ptest \
27 libpcre-ptest \
28 libtimedate-perl-ptest \
29 libtest-needs-perl-ptest \
30 liburi-perl-ptest \
31 libusb1-ptest \
32 libxml-namespacesupport-perl-ptest \
33 libxml-perl-ptest \
34 libxml-parser-perl-ptest \
35 libxml-sax-perl-ptest \
36 libxml-sax-base-perl-ptest \
37 libxml-simple-perl-ptest \
38 libxml2-ptest \
39 lzo-ptest \
40 nettle-ptest \
41 openssl-ptest \
42 opkg-ptest \
43 pango-ptest \
44 parted-ptest \
45 quilt-ptest \
46 sed-ptest \
47 slang-ptest \
48 zlib-ptest \
49"
50
51#PTESTS_PROBLEMS = "\
52# qemu-ptest \ # Doesn't run any tests?
53# ruby-ptest \ # Timeout
54# mdadm-ptest \ # Timeout
55# clutter-1.0-ptest \ # Doesn't build due to depends on cogl-1.0
56#"
57
58PTESTS_SLOW = "\
59 bash-ptest \
60 busybox-ptest \
61 e2fsprogs-ptest \
62 glib-2.0-ptest \
63 gstreamer1.0-ptest \
64 libevent-ptest \
65 lttng-tools-ptest \
66 openssh-ptest \
67 openssl-ptest \
68 perl-ptest \
69 python-ptest \
70 python3-ptest \
71 strace-ptest \
72 tcl-ptest \
73 util-linux-ptest \
74 valgrind-ptest \
75"
diff --git a/meta/recipes-sato/images/core-image-sato-ptest-fast.bb b/meta/recipes-sato/images/core-image-sato-ptest-fast.bb
new file mode 100644
index 0000000000..b794a7dc9e
--- /dev/null
+++ b/meta/recipes-sato/images/core-image-sato-ptest-fast.bb
@@ -0,0 +1,16 @@
1require core-image-sato-sdk.bb
2require conf/distro/include/ptest-packagelists.inc
3
4IMAGE_INSTALL += "${PTESTS_FAST}"
5
6DESCRIPTION += "Also includes ptest packages with fast execution times to allow for more automated QA."
7
8# This image is sufficiently large (~1.8GB) that it can't actually fit in a live
9# image (which has a 4GB limit), so nullify the overhead factor (1.3x out of the
10# box) and explicitly add just 1500MB.
11# strace-ptest in particular needs more than 500MB
12IMAGE_OVERHEAD_FACTOR = "1.0"
13IMAGE_ROOTFS_EXTRA_SPACE = "1524288"
14
15# ptests need more memory than standard to avoid the OOM killer
16QB_MEM = "-m 1024"