summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase_git.bb
diff options
context:
space:
mode:
authorHuang Qiyu <huangqy.fnst@cn.fujitsu.com>2017-07-25 09:30:23 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2017-08-08 20:44:12 +0200
commit6e9892aa3c675c74e32f3039ab5d210634ab878d (patch)
treec69bbf55902a0c48c7da2d4f8f9399a9814ad675 /recipes-qt/qt5/qtbase_git.bb
parent8960831c154848e42bc433871a7424d7d39ddbdc (diff)
downloadmeta-qt5-6e9892aa3c675c74e32f3039ab5d210634ab878d.tar.gz
qtbase: add ptest
Add ptest for qtbase by using provided testsuite. Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtbase_git.bb')
-rw-r--r--recipes-qt/qt5/qtbase_git.bb17
1 files changed, 16 insertions, 1 deletions
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 5cfbcfa9..8464873b 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -23,8 +23,12 @@ SRC_URI += "\
23 file://0005-configure-bump-path-length-from-256-to-512-character.patch \ 23 file://0005-configure-bump-path-length-from-256-to-512-character.patch \
24 file://0009-Disable-all-unknown-features-instead-of-erroring-out.patch \ 24 file://0009-Disable-all-unknown-features-instead-of-erroring-out.patch \
25 file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \ 25 file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \
26 file://0001-Delete-qlonglong-and-qulonglong.patch \
27 file://run-ptest \
26" 28"
27 29
30inherit ptest
31
28# only for target qtbase 32# only for target qtbase
29SRC_URI += "\ 33SRC_URI += "\
30 file://0008-configure-paths-for-target-qmake-properly.patch \ 34 file://0008-configure-paths-for-target-qmake-properly.patch \
@@ -48,7 +52,7 @@ PACKAGECONFIG_DISTRO ?= ""
48PACKAGECONFIG_RELEASE ?= "release" 52PACKAGECONFIG_RELEASE ?= "release"
49# This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency 53# This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency
50# PACKAGECONFIG_OPENSSL ?= "openssl" 54# PACKAGECONFIG_OPENSSL ?= "openssl"
51PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype" 55PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype tests"
52 56
53PACKAGECONFIG ?= " \ 57PACKAGECONFIG ?= " \
54 ${PACKAGECONFIG_RELEASE} \ 58 ${PACKAGECONFIG_RELEASE} \
@@ -171,6 +175,17 @@ do_configure() {
171 ${QT_CONFIG_FLAGS} 175 ${QT_CONFIG_FLAGS}
172} 176}
173 177
178fakeroot do_install_ptest() {
179 mkdir -p ${D}${PTEST_PATH}
180 t=${D}${PTEST_PATH}
181 for var in ` find ${B}/tests/auto/ -name tst_*`; do
182 if [ not ` echo ${var##*/} | grep '\.'` ]; then
183 echo ${var##*/} >> ${t}/tst_list
184 install -m 0644 ${var} ${t}
185 fi
186 done
187}
188
174do_install_append() { 189do_install_append() {
175 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" 190 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory"
176 touch ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/oe-device-extra.pri 191 touch ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/oe-device-extra.pri