Omer Akram has proposed merging
lp:~om26er/kubuntu-packaging/qtdeclarative_unittests into
lp:~kubuntu-packagers/kubuntu-packaging/qtdeclarative-opensource-src.
Commit message:
Run unittests during build
Requested reviews:
Timo Jyrinki (timo-jyrinki)
For more details, see:
https://code.launchpad.net/~om26er/kubuntu-packaging/qtdeclarative_unittests/+merge/198425
Run unittests during build
--
https://code.launchpad.net/~om26er/kubuntu-packaging/qtdeclarative_unittests/+merge/198425
Your team Kubuntu Packagers is subscribed to branch
lp:~kubuntu-packagers/kubuntu-packaging/qtdeclarative-opensource-src.
=== added file 'debian/patches/disable_failing_tests.patch'
--- debian/patches/disable_failing_tests.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/disable_failing_tests.patch 2014-01-06 13:50:43 +0000
@@ -0,0 +1,50 @@
+diff -ruN a/tests/auto/auto.pro b/tests/auto/auto.pro
+--- a/tests/auto/auto.pro 2013-12-08 22:10:16.000000000 +0500
++++ b/tests/auto/auto.pro 2014-01-06 18:40:39.277408238 +0500
+@@ -12,7 +12,7 @@
+ SUBDIRS += \
+ quick \
+ particles \
+- qmltest
++# qmltest (Requires OpenGL)
+ }
+
+ installed_cmake.depends = cmake
+diff -ruN a/tests/auto/qml/debugger/debugger.pro b/tests/auto/qml/debugger/debugger.pro
+--- a/tests/auto/qml/debugger/debugger.pro 2013-12-08 22:10:16.000000000 +0500
++++ b/tests/auto/qml/debugger/debugger.pro 2014-01-06 18:41:58.985410372 +0500
+@@ -1,7 +1,7 @@
+ TEMPLATE = subdirs
+
+ PUBLICTESTS += \
+- qqmlenginedebugservice \
++# qqmlenginedebugservice \ (QTBUG-35974)
+ qqmldebugjs \
+ qpacketprotocol \
+ # qv8profilerservice \
+diff -ruN a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
+--- a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp 2013-12-08 22:10:16.000000000 +0500
++++ b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp 2014-01-06 18:43:41.609413121 +0500
+@@ -443,6 +443,7 @@
+
+ void tst_QQmlProfilerService::scenegraphData()
+ {
++ QSKIP("QTBUG-35923");
+ connect(true, "scenegraphTest.qml");
+ QVERIFY(m_client);
+ QTRY_COMPARE(m_client->state(), QQmlDebugClient::Enabled);
+diff -ruN a/tests/auto/quick/quick.pro b/tests/auto/quick/quick.pro
+--- a/tests/auto/quick/quick.pro 2013-12-08 22:10:17.000000000 +0500
++++ b/tests/auto/quick/quick.pro 2014-01-06 18:42:42.257411531 +0500
+@@ -2,10 +2,10 @@
+
+ PUBLICTESTS += \
+ geometry \
+- rendernode \
++# rendernode \ (QTBUG-35924)
+ qquickpixmapcache
+
+-qtHaveModule(widgets): PUBLICTESTS += nodes
++#qtHaveModule(widgets): PUBLICTESTS += nodes
+
+ !cross_compile: PRIVATETESTS += examples
=== added file 'debian/patches/fix_binary_location_for_tests.patch'
--- debian/patches/fix_binary_location_for_tests.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/fix_binary_location_for_tests.patch 2014-01-06 13:50:43 +0000
@@ -0,0 +1,72 @@
+diff -ruN a/tests/auto/qml/qmlmin/tst_qmlmin.cpp b/tests/auto/qml/qmlmin/tst_qmlmin.cpp
+--- a/tests/auto/qml/qmlmin/tst_qmlmin.cpp 2013-11-21 01:16:04.000000000 +0500
++++ b/tests/auto/qml/qmlmin/tst_qmlmin.cpp 2013-12-21 14:55:25.614708078 +0500
+@@ -75,7 +75,7 @@
+
+ void tst_qmlmin::initTestCase()
+ {
+- qmlminPath = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QLatin1String("/qmlmin");
++ qmlminPath = QLatin1String("../../../../bin") + QLatin1String("/qmlmin");
+ #ifdef Q_OS_WIN
+ qmlminPath += QLatin1String(".exe");
+ #endif
+diff -ruN a/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp b/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp
+--- a/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp 2013-11-21 01:16:05.000000000 +0500
++++ b/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp 2013-12-21 14:55:28.574708157 +0500
+@@ -66,7 +66,7 @@
+
+ void tst_qmlplugindump::initTestCase()
+ {
+- qmlplugindumpPath = QLibraryInfo::location(QLibraryInfo::BinariesPath);
++ qmlplugindumpPath = QLatin1String("../../../../bin");
+
+ #if defined(Q_OS_WIN)
+ qmlplugindumpPath += QLatin1String("/qmlplugindump.exe");
+diff -ruN a/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp b/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp
+--- a/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp 2013-12-08 22:10:16.000000000 +0500
++++ b/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp 2014-01-03 12:20:08.520795476 +0500
+@@ -833,7 +833,7 @@
+ bool tst_QQmlDebugJS::init(const QString &qmlFile, bool blockMode)
+ {
+ connection = new QQmlDebugConnection();
+- process = new QQmlDebugProcess(QLibraryInfo::location(QLibraryInfo::BinariesPath) + "/qmlscene", this);
++ process = new QQmlDebugProcess(QLatin1String("../../../../../bin") + "/qmlscene", this);
+ client = new QJSDebugClient(connection);
+
+ if (blockMode)
+diff -ruN a/tests/auto/qml/debugger/qqmlenginedebuginspectorintegrationtest/tst_qqmlenginedebuginspectorintegration.cpp b/tests/auto/qml/debugger/qqmlenginedebuginspectorintegrationtest/tst_qqmlenginedebuginspectorintegration.cpp
+--- a/tests/auto/qml/debugger/qqmlenginedebuginspectorintegrationtest/tst_qqmlenginedebuginspectorintegration.cpp 2013-12-08 22:10:16.000000000 +0500
++++ b/tests/auto/qml/debugger/qqmlenginedebuginspectorintegrationtest/tst_qqmlenginedebuginspectorintegration.cpp 2014-01-03 12:21:06.904797040 +0500
+@@ -108,7 +108,7 @@
+ const QString argument = "-qmljsdebugger=port:" STR_PORT_FROM "," STR_PORT_TO ",block";
+
+ // ### Still using qmlscene because of QTBUG-33376
+- m_process = new QQmlDebugProcess(QLibraryInfo::location(QLibraryInfo::BinariesPath)
++ m_process = new QQmlDebugProcess(QLatin1String("../../../../../bin")
+ + "/qmlscene", this);
+ m_process->start(QStringList() << argument << testFile("qtquick2.qml"));
+ QVERIFY2(m_process->waitForSessionStart(),
+diff -ruN a/tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp b/tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp
+--- a/tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp 2013-12-08 22:10:16.000000000 +0500
++++ b/tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp 2014-01-03 12:23:24.248800718 +0500
+@@ -90,7 +90,7 @@
+ const QString argument = "-qmljsdebugger=port:" STR_PORT_FROM "," STR_PORT_TO ",block";
+
+ // ### This should be using qml instead of qmlscene, but can't because of QTBUG-33376 (same as the XFAIL testcase)
+- m_process = new QQmlDebugProcess(QLibraryInfo::location(QLibraryInfo::BinariesPath) + "/qmlscene", this);
++ m_process = new QQmlDebugProcess(QLatin1String("../../../../../bin") + "/qmlscene", this);
+ m_process->start(QStringList() << argument << testFile("qtquick2.qml"));
+ QVERIFY2(m_process->waitForSessionStart(),
+ "Could not launch application, or did not get 'Waiting for connection'.");
+diff -ruN a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
+--- a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp 2013-12-08 22:10:16.000000000 +0500
++++ b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp 2014-01-03 12:22:18.392798954 +0500
+@@ -298,7 +298,7 @@
+ void tst_QQmlProfilerService::connect(bool block, const QString &testFile)
+ {
+ // ### Still using qmlscene due to QTBUG-33377
+- const QString executable = QLibraryInfo::location(QLibraryInfo::BinariesPath) + "/qmlscene";
++ const QString executable = QLatin1String("../../../../../bin") + "/qmlscene";
+ QStringList arguments;
+ if (block)
+ arguments << QString("-qmljsdebugger=port:" STR_PORT_FROM "," STR_PORT_TO ",block");
=== modified file 'debian/patches/series'
--- debian/patches/series 2013-12-10 07:35:11 +0000
+++ debian/patches/series 2014-01-06 13:50:43 +0000
@@ -3,3 +3,5 @@
qtquick_delegate_creation_range_itemviews.patch
0001-Fix-dynamic-properties-in-QQmlPropertyMap-not-always.patch
3c9c35b648e32082b30786fe71d4db33ffe2b5a6.patch
+fix_binary_location_for_test.patch
+disable_failing_tests.patch
=== modified file 'debian/rules'
--- debian/rules 2013-12-17 09:01:49 +0000
+++ debian/rules 2014-01-06 13:50:43 +0000
@@ -9,6 +9,7 @@
export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
export QT_SELECT := qt5
+export QT_QPA_PLATFORM := minimal
%:
dh $@ --parallel --with pkgkde_symbolshelper --dbg-package=qtdeclarative5-dbg
@@ -49,5 +50,18 @@
override_dh_builddeb:
dh_builddeb -- -Zxz
-# Requires X so disabled for now
override_dh_auto_test:
+ cp -a src/imports/qtquick2/qmldir qml/QtQuick.2
+ cp -a src/imports/folderlistmodel/qmldir qml/Qt/labs/folderlistmodel/
+ cp -a src/imports/settings/qmldir qml/Qt/labs/settings/
+ cp -a src/imports/window/qmldir qml/QtQuick/Window.2/
+ cp -a src/imports/models/qmldir qml/QtQml/Models.2/
+ cp -a src/imports/testlib/qmldir qml/QtTest
+ cp -a src/imports/testlib/TestCase.qml qml/QtTest
+ cp -a src/imports/testlib/SignalSpy.qml qml/QtTest
+ cp -a src/imports/testlib/testlogger.js qml/QtTest
+ export LD_LIBRARY_PATH=$(CURDIR)/lib
+ export QML2_IMPORT_PATH=$(CURDIR)/qml
+ export QT_PLUGIN_PATH=$(CURDIR)/plugins
+ cd tests/auto/ && ( test -e Makefile || qmake auto.pro -o Makefile ) && make -f Makefile check
+
--
kubuntu-devel mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/kubuntu-devel