summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2020-11-16 09:57:46 +0200
committerSamuli Piippo <samuli.piippo@qt.io>2020-11-20 11:40:44 +0200
commit545be38961a2e287c64f2ae607569e88da4bfa8b (patch)
treecb8def142c1583d1b9c2f7b0f48310f0665bf3e6
parent72459ce0639eb3ce408558a7abede945e1f8ddc9 (diff)
downloadmeta-qt5-545be38961a2e287c64f2ae607569e88da4bfa8b.tar.gz
coin: move test configs to separate file
Separate test-configs.inc allows easy local build setup to match the CI build configuration. Change-Id: I64930c88ea1cba3f9f039881dc0ba947feeb9a34 Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
-rw-r--r--.gitattributes1
-rw-r--r--coin/module_config.yaml89
-rw-r--r--coin/test-configs.inc83
3 files changed, 84 insertions, 89 deletions
diff --git a/.gitattributes b/.gitattributes
index f6a86105..cb2381c0 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,3 +1,2 @@
1/coin export-ignore
2# linguist overrides 1# linguist overrides
3recipes-*/**/*.inc linguist-language=BitBake 2recipes-*/**/*.inc linguist-language=BitBake
diff --git a/coin/module_config.yaml b/coin/module_config.yaml
index c851022a..39283baa 100644
--- a/coin/module_config.yaml
+++ b/coin/module_config.yaml
@@ -55,93 +55,6 @@ build_instructions:
55 userMessageOnFailure: "Could not mount yocto cache." 55 userMessageOnFailure: "Could not mount yocto cache."
56 - type: WriteFile 56 - type: WriteFile
57 fileContents: | 57 fileContents: |
58 # https://github.com/shr-project/jenkins-jobs/blob/master/jenkins-job.sh
59 INHERIT += "reproducible_build_simple"
60 # need space for dunfell build
61 INHERIT += "rm_work"
62 # We want musl and glibc to share the same tmpfs, so instead of appending default "-${TCLIBC}" we append "fs"
63 TCLIBCAPPEND = "fs"
64 PREFERRED_PROVIDER_udev = "systemd"
65 PREFERRED_PROVIDER_virtual/fftw = "fftw"
66 # use gold
67 DISTRO_FEATURES_append = " ld-is-gold"
68 # use ptest
69 DISTRO_FEATURES_append = " ptest"
70 # use systemd
71 DISTRO_FEATURES_append = " systemd"
72 DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
73 VIRTUAL-RUNTIME_init_manager = "systemd"
74 VIRTUAL-RUNTIME_initscripts = ""
75 # use opengl
76 DISTRO_FEATURES_append = " opengl"
77 # use wayland to fix building weston and qtwayland
78 DISTRO_FEATURES_append = " wayland"
79 PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
80 PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native"
81 PREFERRED_PROVIDER_gpsd = "gpsd"
82 PREFERRED_PROVIDER_e-wm-sysactions = "e-wm"
83 ESYSACTIONS = "e-wm-sysactions"
84 # don't pull libhybris unless explicitly asked for
85 PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
86 PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa"
87 PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa"
88 PREFERRED_PROVIDER_virtual/egl ?= "mesa"
89 # to fix fsoaudiod, alsa-state conflict in shr-image-all
90 VIRTUAL-RUNTIME_alsa-state = ""
91 # to prevent alsa-state being pulled into -dev or -dbg images
92 RDEPENDS_${PN}-dev_pn-alsa-state = ""
93 RDEPENDS_${PN}-dbg_pn-alsa-state = ""
94 # to fix dependency on conflicting x11-common from packagegroup-core-x11
95 VIRTUAL-RUNTIME_xserver_common ?= "xserver-common"
96 RDEPENDS_${PN}-dev_pn-x11-common = ""
97 RDEPENDS_${PN}-dbg_pn-x11-common = ""
98 # to fix apm, fso-apm conflict in shr-image-all
99 VIRTUAL-RUNTIME_apm = "fso-apm"
100 # require conf/distro/include/qt5-versions.inc
101 # QT5_VERSION = "5.4.0+git%"
102 # for qtwebkit etc
103 # see https://bugzilla.yoctoproject.org/show_bug.cgi?id=5013
104 # DEPENDS_append_pn-qtbase = " mesa"
105 PACKAGECONFIG_append_pn-qtbase = " icu gl accessibility freetype fontconfig"
106 # qtwayland doesn't like egl and xcomposite-glx enabled at the same time
107 # http://lists.openembedded.org/pipermail/openembedded-devel/2016-December/110444.html
108 PACKAGECONFIG_remove_pn-qtwayland = "xcomposite-egl xcomposite-glx"
109 # for webkit-efl
110 PACKAGECONFIG_append_pn-harfbuzz = " icu"
111 inherit blacklist
112 # PNBLACKLIST[samsung-rfs-mgr] = "needs newer libsamsung-ipc with negative D_P: Requested 'samsung-ipc-1.0 >= 0.2' but version of libsamsung-ipc is 0.1.0"
113 PNBLACKLIST[android-system] = "depends on lxc from meta-virtualiazation which isn't included in my world builds"
114 PNBLACKLIST[bigbuckbunny-1080p] = "big and doesn't really need to be tested so much"
115 PNBLACKLIST[bigbuckbunny-480p] = "big and doesn't really need to be tested so much"
116 PNBLACKLIST[bigbuckbunny-720p] = "big and doesn't really need to be tested so much"
117 PNBLACKLIST[bigbuckbunny-720p] = "big and doesn't really need to be tested so much"
118 PNBLACKLIST[tearsofsteel-1080p] = "big and doesn't really need to be tested so much"
119 PNBLACKLIST[build-appliance-image] = "tries to include whole downloads directory in /home/builder/poky :/"
120 # enable reporting
121 # needs http://patchwork.openembedded.org/patch/68735/
122 #ERR_REPORT_SERVER = "errors.yoctoproject.org"
123 #ERR_REPORT_PORT = "80"
124 #ERR_REPORT_USERNAME = "Martin Jansa"
125 #ERR_REPORT_EMAIL = "Martin.Jansa@gmail.com"
126 #ERR_REPORT_UPLOAD_FAILURES = "1"
127 #INHERIT += "report-error"
128 # needs patch with buildstats-summary.bbclass
129 INHERIT += "buildstats buildstats-summary"
130 # be more strict with QA warnings, turn them all to errors:
131 ERROR_QA_append = " ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi textrel already-stripped incompatible-license files-invalid installed-vs-shipped compile-host-path install-host-path pn-overrides infodir build-deps unknown-configure-option symlink-to-sysroot multilib invalid-packageconfig host-user-contaminated uppercase-pn"
132 WARN_QA_remove = " ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi textrel already-stripped incompatible-license files-invalid installed-vs-shipped compile-host-path install-host-path pn-overrides infodir build-deps unknown-configure-option symlink-to-sysroot multilib invalid-packageconfig host-user-contaminated uppercase-pn"
133 # enable thumb for broader test coverage (oe-core autobuilder doesn't have thumb enabled)
134 PREFERRED_ARM_INSTRUCTION_SET ?= "thumb"
135 ARM_INSTRUCTION_SET = "${PREFERRED_ARM_INSTRUCTION_SET}"
136 # use musl for qemux86 and qemux86copy
137 TCLIBC_qemux86 = "musl"
138 TCLIBC_qemux86copy = "musl"
139 # limit parallel make to avoid OOM
140 PARALLEL_MAKE_pn-qtwebkit = "-j 8"
141 filename: "{{.BuildDir}}/world_fixes.inc"
142 fileMode: 420
143 - type: WriteFile
144 fileContents: |
145 #!/bin/bash -xe 58 #!/bin/bash -xe
146 git clone git://git.yoctoproject.org/poky --reference /mnt/yocto-cache/mirror/poky.git 59 git clone git://git.yoctoproject.org/poky --reference /mnt/yocto-cache/mirror/poky.git
147 (cd poky; git checkout ${POKY_SHA1}) 60 (cd poky; git checkout ${POKY_SHA1})
@@ -159,7 +72,7 @@ build_instructions:
159 bitbake-layers add-layer ../meta-python2 72 bitbake-layers add-layer ../meta-python2
160 bitbake-layers add-layer ${SOURCE_DIR} 73 bitbake-layers add-layer ${SOURCE_DIR}
161 74
162 echo 'require ../world_fixes.inc' >> conf/local.conf 75 echo "require ${SOURCE_DIR}/coin/test-configs.inc" >> conf/local.conf
163 76
164 # EXCLUDE_FROM_WORLD 77 # EXCLUDE_FROM_WORLD
165 rm -f ${SOURCE_DIR}/recipes-qt/examples/qt5-opengles2-test_git.bb 78 rm -f ${SOURCE_DIR}/recipes-qt/examples/qt5-opengles2-test_git.bb
diff --git a/coin/test-configs.inc b/coin/test-configs.inc
new file mode 100644
index 00000000..5fbc1d55
--- /dev/null
+++ b/coin/test-configs.inc
@@ -0,0 +1,83 @@
1# https://github.com/shr-project/jenkins-jobs/blob/master/jenkins-job.sh
2INHERIT += "reproducible_build_simple"
3# need space for dunfell build
4INHERIT += "rm_work"
5# We want musl and glibc to share the same tmpfs, so instead of appending default "-${TCLIBC}" we append "fs"
6TCLIBCAPPEND = "fs"
7PREFERRED_PROVIDER_udev = "systemd"
8PREFERRED_PROVIDER_virtual/fftw = "fftw"
9# use gold
10DISTRO_FEATURES_append = " ld-is-gold"
11# use ptest
12DISTRO_FEATURES_append = " ptest"
13# use systemd
14DISTRO_FEATURES_append = " systemd"
15DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
16VIRTUAL-RUNTIME_init_manager = "systemd"
17VIRTUAL-RUNTIME_initscripts = ""
18# use opengl
19DISTRO_FEATURES_append = " opengl"
20# use wayland to fix building weston and qtwayland
21DISTRO_FEATURES_append = " wayland"
22PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
23PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native"
24PREFERRED_PROVIDER_gpsd = "gpsd"
25PREFERRED_PROVIDER_e-wm-sysactions = "e-wm"
26ESYSACTIONS = "e-wm-sysactions"
27# don't pull libhybris unless explicitly asked for
28PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
29PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa"
30PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa"
31PREFERRED_PROVIDER_virtual/egl ?= "mesa"
32# to fix fsoaudiod, alsa-state conflict in shr-image-all
33VIRTUAL-RUNTIME_alsa-state = ""
34# to prevent alsa-state being pulled into -dev or -dbg images
35RDEPENDS_${PN}-dev_pn-alsa-state = ""
36RDEPENDS_${PN}-dbg_pn-alsa-state = ""
37# to fix dependency on conflicting x11-common from packagegroup-core-x11
38VIRTUAL-RUNTIME_xserver_common ?= "xserver-common"
39RDEPENDS_${PN}-dev_pn-x11-common = ""
40RDEPENDS_${PN}-dbg_pn-x11-common = ""
41# to fix apm, fso-apm conflict in shr-image-all
42VIRTUAL-RUNTIME_apm = "fso-apm"
43# require conf/distro/include/qt5-versions.inc
44# QT5_VERSION = "5.4.0+git%"
45# for qtwebkit etc
46# see https://bugzilla.yoctoproject.org/show_bug.cgi?id=5013
47# DEPENDS_append_pn-qtbase = " mesa"
48PACKAGECONFIG_append_pn-qtbase = " icu gl accessibility freetype fontconfig"
49# qtwayland doesn't like egl and xcomposite-glx enabled at the same time
50# http://lists.openembedded.org/pipermail/openembedded-devel/2016-December/110444.html
51PACKAGECONFIG_remove_pn-qtwayland = "xcomposite-egl xcomposite-glx"
52# for webkit-efl
53PACKAGECONFIG_append_pn-harfbuzz = " icu"
54inherit blacklist
55# PNBLACKLIST[samsung-rfs-mgr] = "needs newer libsamsung-ipc with negative D_P: Requested 'samsung-ipc-1.0 >= 0.2' but version of libsamsung-ipc is 0.1.0"
56PNBLACKLIST[android-system] = "depends on lxc from meta-virtualiazation which isn't included in my world builds"
57PNBLACKLIST[bigbuckbunny-1080p] = "big and doesn't really need to be tested so much"
58PNBLACKLIST[bigbuckbunny-480p] = "big and doesn't really need to be tested so much"
59PNBLACKLIST[bigbuckbunny-720p] = "big and doesn't really need to be tested so much"
60PNBLACKLIST[bigbuckbunny-720p] = "big and doesn't really need to be tested so much"
61PNBLACKLIST[tearsofsteel-1080p] = "big and doesn't really need to be tested so much"
62PNBLACKLIST[build-appliance-image] = "tries to include whole downloads directory in /home/builder/poky :/"
63# enable reporting
64# needs http://patchwork.openembedded.org/patch/68735/
65#ERR_REPORT_SERVER = "errors.yoctoproject.org"
66#ERR_REPORT_PORT = "80"
67#ERR_REPORT_USERNAME = "Martin Jansa"
68#ERR_REPORT_EMAIL = "Martin.Jansa@gmail.com"
69#ERR_REPORT_UPLOAD_FAILURES = "1"
70#INHERIT += "report-error"
71# needs patch with buildstats-summary.bbclass
72INHERIT += "buildstats buildstats-summary"
73# be more strict with QA warnings, turn them all to errors:
74ERROR_QA_append = " ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi textrel already-stripped incompatible-license files-invalid installed-vs-shipped compile-host-path install-host-path pn-overrides infodir build-deps unknown-configure-option symlink-to-sysroot multilib invalid-packageconfig host-user-contaminated uppercase-pn"
75WARN_QA_remove = " ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi textrel already-stripped incompatible-license files-invalid installed-vs-shipped compile-host-path install-host-path pn-overrides infodir build-deps unknown-configure-option symlink-to-sysroot multilib invalid-packageconfig host-user-contaminated uppercase-pn"
76# enable thumb for broader test coverage (oe-core autobuilder doesn't have thumb enabled)
77PREFERRED_ARM_INSTRUCTION_SET ?= "thumb"
78ARM_INSTRUCTION_SET = "${PREFERRED_ARM_INSTRUCTION_SET}"
79# use musl for qemux86 and qemux86copy
80TCLIBC_qemux86 = "musl"
81TCLIBC_qemux86copy = "musl"
82# limit parallel make to avoid OOM
83PARALLEL_MAKE_pn-qtwebkit = "-j 8"