Merge lp:~kalikiana/ubuntu-ui-toolkit/qmlapicheckverbose into lp:ubuntu-ui-toolkit

Proposed by Cris Dywan
Status: Superseded
Proposed branch: lp:~kalikiana/ubuntu-ui-toolkit/qmlapicheckverbose
Merge into: lp:ubuntu-ui-toolkit
Diff against target: 378 lines (+129/-35)
15 files modified
components.api (+24/-0)
debian/control (+9/-6)
debian/rules (+1/-0)
debian/ubuntu-ui-toolkit-autopilot.install (+2/-1)
run_tests.sh (+2/-2)
tests/autopilot/ubuntuuitoolkit/base.py (+3/-2)
tests/autopilot/ubuntuuitoolkit/emulators.py (+8/-8)
tests/autopilot/ubuntuuitoolkit/fixture_setup.py (+1/-1)
tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py (+4/-1)
tests/autopilot/ubuntuuitoolkit/tests/test_fixture_setup.py (+6/-1)
tests/qmlapicheck.py (+4/-2)
tests/qmlapicheck.sh (+52/-0)
tests/tests.pro (+5/-2)
tests/unit/add_qmlmakecheck.pri (+2/-8)
ubuntu-sdk.pro (+6/-1)
To merge this branch: bzr merge lp:~kalikiana/ubuntu-ui-toolkit/qmlapicheckverbose
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Zsombor Egri Approve
Review via email: mp+187243@code.launchpad.net

This proposal has been superseded by a proposal from 2014-03-04.

Commit message

Make API tests more visible and include Layouts and UbuntuTestCase

Description of the change

The wrapper is intended to make API test more visible in the output regardless of failure or success.
A semi-related fix increases coverage so that UbuntuTestCase and Layouts are also checked.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

I think we should leave out the Theme folder from the API check yet, as we do not promise API stability for those yet.

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

Let's leave Theme in the loop but be less strict on those API breaks. Thanks for the fixes.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

IconVisual is listed in the API file, which is an internal type of ListItems module. I think internals shouldn't be listed at all.

review: Needs Fixing
Revision history for this message
Cris Dywan (kalikiana) wrote :

That's bug 1256045. This branch only is about the output, no change in behavior.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

Good stuff. Merge with trunk so we have it up to date and we can land it.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Cris Dywan (kalikiana) wrote :
776. By Cris Dywan

Merge lp:~ubuntu-core-dev/ubuntu-ui-toolkit/py32ap

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'components.api'
--- components.api 2014-02-24 19:16:26 +0000
+++ components.api 2014-03-04 12:39:24 +0000
@@ -582,6 +582,12 @@
582modules/Ubuntu/PerformanceMetrics/PerformanceOverlay.qml582modules/Ubuntu/PerformanceMetrics/PerformanceOverlay.qml
583Item583Item
584 property bool active584 property bool active
585modules/Ubuntu/Test/UbuntuTestCase.qml
586TestCase
587 function findChild(obj,objectName)
588 function findInvisibleChild(obj,objectName)
589 function mouseMoveSlowly(item,x,y,dx,dy,steps,stepdelay)
590 function tryCompareFunction(func, expectedResult, timeout)
585plugins.qmltypes591plugins.qmltypes
586 name: "InverseMouseAreaType"592 name: "InverseMouseAreaType"
587 prototype: "QQuickMouseArea"593 prototype: "QQuickMouseArea"
@@ -766,6 +772,24 @@
766 Parameter { name: "singular"; type: "string" }772 Parameter { name: "singular"; type: "string" }
767 Parameter { name: "plural"; type: "string" }773 Parameter { name: "plural"; type: "string" }
768 Parameter { name: "n"; type: "int" }774 Parameter { name: "n"; type: "int" }
775 name: "ULConditionalLayout"
776 prototype: "QObject"
777 exports: ["ConditionalLayout 0.1"]
778 Property { name: "name"; type: "string" }
779 Property { name: "when"; type: "QQmlBinding"; isPointer: true }
780 Property { name: "layout"; type: "QQmlComponent"; isPointer: true }
781 name: "ULItemLayout"
782 prototype: "QQuickItem"
783 exports: ["ItemLayout 0.1"]
784 Property { name: "item"; type: "string" }
785 name: "ULLayouts"
786 prototype: "QQuickItem"
787 exports: ["Layouts 0.1"]
788 Property { name: "currentLayout"; type: "string"; isReadonly: true }
789 Property { name: "layouts"; type: "ULConditionalLayout"; isList: true; isReadonly: true }
790 name: "ULLayoutsAttached"
791 prototype: "QObject"
792 Property { name: "item"; type: "string" }
769 name: "UPMCpuUsage"793 name: "UPMCpuUsage"
770 prototype: "QQuickItem"794 prototype: "QQuickItem"
771 exports: ["CpuUsage 0.1"]795 exports: ["CpuUsage 0.1"]
772796
=== modified file 'debian/control'
--- debian/control 2014-03-01 12:51:13 +0000
+++ debian/control 2014-03-04 12:39:24 +0000
@@ -6,6 +6,7 @@
6 devscripts,6 devscripts,
7 libgles2-mesa-dev,7 libgles2-mesa-dev,
8 libglib2.0-dev,8 libglib2.0-dev,
9 python3,
9 python,10 python,
10 libqt5qml-graphicaleffects | libqt5graphicaleffects5,11 libqt5qml-graphicaleffects | libqt5graphicaleffects5,
11 qt5-default,12 qt5-default,
@@ -22,12 +23,12 @@
22 qtdeclarative5-qtfeedback-plugin,23 qtdeclarative5-qtfeedback-plugin,
23 qtdeclarative5-unity-action-plugin (>= 1.1.0),24 qtdeclarative5-unity-action-plugin (>= 1.1.0),
24 qtdeclarative5-localstorage-plugin,25 qtdeclarative5-localstorage-plugin,
25 qtdeclarative5-doc-html,26 qtdeclarative5-doc-html,
26 qtwebkit5-doc-html,27 qtwebkit5-doc-html,
27 qtsvg5-doc-html,28 qtsvg5-doc-html,
28 qtscript5-doc-html,29 qtscript5-doc-html,
29 qtmultimedia5-doc-html,30 qtmultimedia5-doc-html,
30 unity-action-doc,31 unity-action-doc,
31 devscripts,32 devscripts,
32 libqt5organizer5,33 libqt5organizer5,
33 qtpim5-dev,34 qtpim5-dev,
@@ -135,6 +136,8 @@
135 python-autopilot (>= 1.4),136 python-autopilot (>= 1.4),
136 python-fixtures,137 python-fixtures,
137 python-mock,138 python-mock,
139 python3-fixtures,
140 python3-autopilot (>= 1.4),
138 ubuntu-ui-toolkit-examples (>= ${source:Version}),141 ubuntu-ui-toolkit-examples (>= ${source:Version}),
139Description: Test package for Ubuntu UI Toolkit142Description: Test package for Ubuntu UI Toolkit
140 Autopilot tests for the ubuntu-ui-toolkit package143 Autopilot tests for the ubuntu-ui-toolkit package
141144
=== modified file 'debian/rules'
--- debian/rules 2014-03-01 12:51:13 +0000
+++ debian/rules 2014-03-04 12:39:24 +0000
@@ -11,6 +11,7 @@
11override_dh_auto_test:11override_dh_auto_test:
12ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))12ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
13 mkdir -p debian/tmp/home/run13 mkdir -p debian/tmp/home/run
14 chmod +x tests/xvfb.sh
14 tests/xvfb.sh dh_auto_test || exit $?15 tests/xvfb.sh dh_auto_test || exit $?
15endif16endif
1617
1718
=== modified file 'debian/ubuntu-ui-toolkit-autopilot.install'
--- debian/ubuntu-ui-toolkit-autopilot.install 2013-10-30 11:35:57 +0000
+++ debian/ubuntu-ui-toolkit-autopilot.install 2014-03-04 12:39:24 +0000
@@ -1,1 +1,2 @@
1usr/lib/python2.7/dist-packages/ubuntuuitoolkit1usr/lib/python3
2usr/lib/python2.7
23
=== modified file 'run_tests.sh'
--- run_tests.sh 2013-09-26 13:12:49 +0000
+++ run_tests.sh 2014-03-04 12:39:24 +0000
@@ -21,9 +21,9 @@
2121
22UBUNTU_UI_TOOLKIT_AUTOPILOT_FROM_SOURCE=122UBUNTU_UI_TOOLKIT_AUTOPILOT_FROM_SOURCE=1
23if [ "$1" == "" ]; then23if [ "$1" == "" ]; then
24 autopilot run ubuntuuitoolkit24 python3 -m autopilot.run run ubuntuuitoolkit
25else25else
26 autopilot run -o ../../$1 -f xml -r -rd ../../ ubuntuuitoolkit26 python3 -m autopilot.run run -o ../../$1 -f xml -r -rd ../../ ubuntuuitoolkit
27fi27fi
2828
29exit 029exit 0
3030
=== modified file 'tests/autopilot/ubuntuuitoolkit/base.py'
--- tests/autopilot/ubuntuuitoolkit/base.py 2013-11-15 05:11:10 +0000
+++ tests/autopilot/ubuntuuitoolkit/base.py 2014-03-04 12:39:24 +0000
@@ -31,8 +31,9 @@
31 # configuration on devices and it seems the environment variable31 # configuration on devices and it seems the environment variable
32 # QT_SELECT=qt5 doesn't work for autopilot tests. --Mirv - 2013-10-0332 # QT_SELECT=qt5 doesn't work for autopilot tests. --Mirv - 2013-10-03
33 arch = subprocess.check_output(33 arch = subprocess.check_output(
34 ["dpkg-architecture", "-qDEB_HOST_MULTIARCH"]).strip()34 ["dpkg-architecture", "-qDEB_HOST_MULTIARCH"],
35 return '/usr/lib/{}/qt5/bin/qmlscene'.format(arch.decode())35 universal_newlines=True).strip()
36 return '/usr/lib/{}/qt5/bin/qmlscene'.format(arch)
3637
3738
38class UbuntuUIToolkitAppTestCase(testcase.AutopilotTestCase):39class UbuntuUIToolkitAppTestCase(testcase.AutopilotTestCase):
3940
=== modified file 'tests/autopilot/ubuntuuitoolkit/emulators.py'
--- tests/autopilot/ubuntuuitoolkit/emulators.py 2014-03-01 12:52:42 +0000
+++ tests/autopilot/ubuntuuitoolkit/emulators.py 2014-03-04 12:39:24 +0000
@@ -582,7 +582,7 @@
582582
583 def _show_more_elements(self, direction):583 def _show_more_elements(self, direction):
584 x, y, width, height = self.globalRect584 x, y, width, height = self.globalRect
585 start_x = stop_x = x + (width / 2)585 start_x = stop_x = x + (width // 2)
586 # Start and stop just a little under the top of the list.586 # Start and stop just a little under the top of the list.
587 top = y + 5587 top = y + 5
588 bottom = y + height - 5588 bottom = y + height - 5
@@ -607,7 +607,7 @@
607 def _is_element_clickable(self, objectName):607 def _is_element_clickable(self, objectName):
608 """Return True if the center of the element is visible."""608 """Return True if the center of the element is visible."""
609 element = self.select_single(objectName=objectName)609 element = self.select_single(objectName=objectName)
610 element_center = element.globalRect.y + element.globalRect.height / 2610 element_center = element.globalRect.y + element.globalRect.height // 2
611 return (element_center >= self.globalRect.y and611 return (element_center >= self.globalRect.y and
612 element_center <= self.globalRect.y + self.globalRect.height)612 element_center <= self.globalRect.y + self.globalRect.height)
613613
@@ -628,7 +628,7 @@
628 @autopilot_logging.log_action(logger.info)628 @autopilot_logging.log_action(logger.info)
629 def swipe_to_delete(self, direction='right'):629 def swipe_to_delete(self, direction='right'):
630 """Swipe the item in a specific direction."""630 """Swipe the item in a specific direction."""
631 if (self.removable):631 if self.removable:
632 self._drag_pointing_device_to_delete(direction)632 self._drag_pointing_device_to_delete(direction)
633 if self.confirmRemoval:633 if self.confirmRemoval:
634 self.waitingConfirmationForRemoval.wait_for(True)634 self.waitingConfirmationForRemoval.wait_for(True)
@@ -640,12 +640,12 @@
640640
641 def _drag_pointing_device_to_delete(self, direction):641 def _drag_pointing_device_to_delete(self, direction):
642 x, y, w, h = self.globalRect642 x, y, w, h = self.globalRect
643 tx = x + (w / 8)643 tx = x + (w // 8)
644 ty = y + (h / 2)644 ty = y + (h // 2)
645645
646 if (direction == 'right'):646 if direction == 'right':
647 self.pointing_device.drag(tx, ty, w, ty)647 self.pointing_device.drag(tx, ty, w, ty)
648 elif (direction == 'left'):648 elif direction == 'left':
649 self.pointing_device.drag(w - (w*0.1), ty, x, ty)649 self.pointing_device.drag(w - (w*0.1), ty, x, ty)
650 else:650 else:
651 raise ToolkitEmulatorException(651 raise ToolkitEmulatorException(
@@ -663,7 +663,7 @@
663 @autopilot_logging.log_action(logger.info)663 @autopilot_logging.log_action(logger.info)
664 def confirm_removal(self):664 def confirm_removal(self):
665 """Comfirm item removal if this was already swiped."""665 """Comfirm item removal if this was already swiped."""
666 if (self.waitingConfirmationForRemoval):666 if self.waitingConfirmationForRemoval:
667 deleteButton = self._get_confirm_button()667 deleteButton = self._get_confirm_button()
668 self.pointing_device.click_object(deleteButton)668 self.pointing_device.click_object(deleteButton)
669 self._wait_until_deleted()669 self._wait_until_deleted()
670670
=== modified file 'tests/autopilot/ubuntuuitoolkit/fixture_setup.py'
--- tests/autopilot/ubuntuuitoolkit/fixture_setup.py 2014-02-12 09:20:43 +0000
+++ tests/autopilot/ubuntuuitoolkit/fixture_setup.py 2014-03-04 12:39:24 +0000
@@ -87,7 +87,7 @@
87 qmlscene=base.get_qmlscene_launch_command(),87 qmlscene=base.get_qmlscene_launch_command(),
88 qml_file_path=qml_file_path))88 qml_file_path=qml_file_path))
89 desktop_file.write('[Desktop Entry]\n')89 desktop_file.write('[Desktop Entry]\n')
90 for key, value in self._desktop_file_dict.iteritems():90 for key, value in self._desktop_file_dict.items():
91 desktop_file.write('{key}={value}\n'.format(key=key, value=value))91 desktop_file.write('{key}={value}\n'.format(key=key, value=value))
92 desktop_file.close()92 desktop_file.close()
93 return desktop_file.name93 return desktop_file.name
9494
=== modified file 'tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py'
--- tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py 2014-03-01 12:52:15 +0000
+++ tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py 2014-03-04 12:39:24 +0000
@@ -14,7 +14,6 @@
14# You should have received a copy of the GNU Lesser General Public License14# You should have received a copy of the GNU Lesser General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.15# along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
17import mock
18import time17import time
19import unittest18import unittest
2019
@@ -22,6 +21,10 @@
22from autopilot import input, platform21from autopilot import input, platform
23from autopilot.introspection import dbus22from autopilot.introspection import dbus
24from testtools.matchers import GreaterThan, LessThan23from testtools.matchers import GreaterThan, LessThan
24try:
25 from unittest import mock
26except ImportError:
27 import mock
2528
26from ubuntuuitoolkit import emulators, tests29from ubuntuuitoolkit import emulators, tests
2730
2831
=== modified file 'tests/autopilot/ubuntuuitoolkit/tests/test_fixture_setup.py'
--- tests/autopilot/ubuntuuitoolkit/tests/test_fixture_setup.py 2014-02-12 18:41:20 +0000
+++ tests/autopilot/ubuntuuitoolkit/tests/test_fixture_setup.py 2014-03-04 12:39:24 +0000
@@ -16,7 +16,12 @@
1616
17import os17import os
1818
19import mock19try:
20 # Python 3.
21 from unittest import mock
22except ImportError:
23 # Python 2 add-on: python-mock.
24 import mock
20import testtools25import testtools
21from autopilot import testcase as autopilot_testcase26from autopilot import testcase as autopilot_testcase
22from testtools.matchers import Contains, Not, FileExists27from testtools.matchers import Contains, Not, FileExists
2328
=== modified file 'tests/qmlapicheck.py'
--- tests/qmlapicheck.py 2013-12-11 11:28:29 +0000
+++ tests/qmlapicheck.py 2014-03-04 12:39:24 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/env python1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3#3#
4# Copyright 2013 Canonical Ltd.4# Copyright 2013 Canonical Ltd.
@@ -65,7 +65,9 @@
65 fileinput.nextfile()65 fileinput.nextfile()
6666
67inputfiles.sort()67inputfiles.sort()
68for line in fileinput.input(inputfiles):68
69hook = fileinput.hook_encoded('utf-8')
70for line in fileinput.input(inputfiles, openhook=hook):
69 # New file71 # New file
70 if fileinput.isfirstline():72 if fileinput.isfirstline():
71 in_block = 073 in_block = 0
7274
=== added file 'tests/qmlapicheck.sh'
--- tests/qmlapicheck.sh 1970-01-01 00:00:00 +0000
+++ tests/qmlapicheck.sh 2014-03-04 12:39:24 +0000
@@ -0,0 +1,52 @@
1#!/usr/bin/env sh
2#
3# Copyright 2013 Canonical Ltd.
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; version 3.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU Lesser General Public License for more details.
13#
14# You should have received a copy of the GNU Lesser General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.
16#
17################################################################################
18QML="modules/Ubuntu/*/qmldir modules/Ubuntu/Components/Colors/UbuntuColors.qml modules/Ubuntu/Components/*/qmldir modules/Ubuntu/Components/Pickers/PickerPanel.qml"
19CPP="Ubuntu.Components Ubuntu.Layouts Ubuntu.PerformanceMetrics"
20
21echo Dumping QML API of C++ components
22echo '' > plugins.qmltypes
23for i in $CPP; do
24 # Silence spam on stderr due to fonts
25 # https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1256999
26 # https://bugreports.qt-project.org/browse/QTBUG-36243
27 qmlplugindump $i 0.1 modules 2>/dev/null >> plugins.qmltypes
28done
29STATUS=$?
30test $STATUS = 0 || ERRORS=1
31test $STATUS = 0 || echo Error: qmldump failed
32
33echo Running QML API check for $QML
34# Palette gets included in Qt 5.2 qmlplugindump even though it's qml
35BUILTINS=QQuick,QQml,U1db::,Palette python3 tests/qmlapicheck.py $QML plugins.qmltypes > components.api.new
36STATUS=$?
37test $STATUS = 0 || ERRORS=1
38test $STATUS = 0 || echo Error: qmlapicheck.py failed
39
40echo Verifying the diff between existing and generated API
41diff -Fqml -u components.api components.api.new
42STATUS=$?
43test $STATUS = 0 || ERRORS=1
44test $STATUS = 0 || echo Error: diff mismatched
45
46if [ "x$ERRORS" != "x1" ]; then
47 echo API is all fine.
48 exit 0
49else
50 echo API test failed with errors. Did you forget to update components.api?
51 exit 1
52fi
053
=== modified file 'tests/tests.pro'
--- tests/tests.pro 2013-10-30 11:35:57 +0000
+++ tests/tests.pro 2014-03-04 12:39:24 +0000
@@ -1,7 +1,10 @@
1TEMPLATE = subdirs1TEMPLATE = subdirs
2SUBDIRS += unit unit_x112SUBDIRS += unit unit_x11
33
4autopilot_module.path = /usr/lib/python2.7/dist-packages/ubuntuuitoolkit4autopilot_module.path = /usr/lib/python3/dist-packages/ubuntuuitoolkit
5autopilot_module.files = autopilot/ubuntuuitoolkit/*5autopilot_module.files = autopilot/ubuntuuitoolkit/*
66
7INSTALLS += autopilot_module7autopilot2_module.path = /usr/lib/python2.7/dist-packages/ubuntuuitoolkit
8autopilot2_module.files = autopilot/ubuntuuitoolkit/*
9
10INSTALLS += autopilot_module autopilot2_module
811
=== modified file 'tests/unit/add_qmlmakecheck.pri'
--- tests/unit/add_qmlmakecheck.pri 2014-02-11 12:42:55 +0000
+++ tests/unit/add_qmlmakecheck.pri 2014-03-04 12:39:24 +0000
@@ -8,11 +8,5 @@
8 check.commands += ../../unit/runtest.sh $${TARGET} $${TEST} minimal;8 check.commands += ../../unit/runtest.sh $${TARGET} $${TEST} minimal;
9}9}
10check.commands += cd ../../..;10check.commands += cd ../../..;
11# Silence spam on stderr due to fonts11check.commands += sh tests/qmlapicheck.sh || exit 1;
12# https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/125699912check.commands += cd tests/unit
13# https://bugreports.qt-project.org/browse/QTBUG-36243
14check.commands += qmlplugindump Ubuntu.Components 0.1 modules 2>/dev/null > plugins.qmltypes;
15check.commands += qmlplugindump Ubuntu.PerformanceMetrics 0.1 modules 2>/dev/null >> plugins.qmltypes;
16# Palette gets included in Qt 5.2 qmlplugindump even though it's qml
17check.commands += BUILTINS=QQuick,QQml,U1db::,Palette python tests/qmlapicheck.py modules/Ubuntu/Components/qmldir modules/Ubuntu/Components/Colors/UbuntuColors.qml modules/Ubuntu/Components/Pickers/PickerPanel.qml modules/Ubuntu/Components/*/qmldir modules/Ubuntu/PerformanceMetrics/qmldir plugins.qmltypes > components.api.new;
18check.commands += diff -Fqml -u components.api components.api.new || exit 1; cd tests/unit
1913
=== modified file 'ubuntu-sdk.pro'
--- ubuntu-sdk.pro 2013-12-12 13:01:56 +0000
+++ ubuntu-sdk.pro 2014-03-04 12:39:24 +0000
@@ -22,10 +22,15 @@
22QMAKE_EXTRA_TARGETS += test_api22QMAKE_EXTRA_TARGETS += test_api
2323
24test_components.target = test-components24test_components.target = test-components
25test_components.commands = cd tests/autopilot; autopilot run ubuntuuitoolkit25test_components.commands = cd tests/autopilot; python3 -m autopilot.run run ubuntuuitoolkit
26test_components.depends = modules/ubuntu-ui-toolkit.pro26test_components.depends = modules/ubuntu-ui-toolkit.pro
27QMAKE_EXTRA_TARGETS += test_components27QMAKE_EXTRA_TARGETS += test_components
2828
29test_components2.target = test-components2
30test_components2.commands = cd tests/autopilot; python2 -m autopilot.run run ubuntuuitoolkit
31test_components2.depends = modules/ubuntu-ui-toolkit.pro
32QMAKE_EXTRA_TARGETS += test_components2
33
29qmluitests.target = qmluitests34qmluitests.target = qmluitests
30qmluitests.commands = cd tests/unit_x11; make check35qmluitests.commands = cd tests/unit_x11; make check
31qmluitests.depends = modules/ubuntu-ui-toolkit.pro36qmluitests.depends = modules/ubuntu-ui-toolkit.pro

Subscribers

People subscribed via source and target branches

to status/vote changes: