Merge lp:~mzanetti/unity8/make-single-testfunction into lp:unity8

Proposed by Michael Zanetti
Status: Merged
Approved by: Michał Sawicz
Approved revision: 656
Merged at revision: 786
Proposed branch: lp:~mzanetti/unity8/make-single-testfunction
Merge into: lp:unity8
Diff against target: 37 lines (+20/-7)
1 file modified
cmake/modules/QmlTest.cmake (+20/-7)
To merge this branch: bzr merge lp:~mzanetti/unity8/make-single-testfunction
Reviewer Review Type Date Requested Status
Michał Sawicz Approve
PS Jenkins bot (community) continuous-integration Approve
Michael Zanetti (community) Needs Fixing
Review via email: mp+205035@code.launchpad.net

Commit message

allow executing a single test function

example:
make testShell FUNCTION="Shell::test_background"

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.

N/A

 * Did you perform an exploratory manual test run of your code change and any related functionality?

Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

N/A

 * If you changed the UI, has there been a design review?

N/A

To post a comment you must log in.
Revision history for this message
Michael Zanetti (mzanetti) wrote :

breaks ninja :/

ninja wants $$ to accept the syntax but that breaks this feature again.

Any ideas anyone?

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:653
http://jenkins.qa.ubuntu.com/job/unity8-ci/2239/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/2929
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/2667/console
    FAILURE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-trusty/1110/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-amd64-ci/761
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/763
        deb: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/763/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-i386-ci/761
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/2570
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/2931
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/2931/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/2668
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/2668/artifact/work/output/*zip*/output.zip
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/5092/console
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/3659

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/2239/rebuild

review: Needs Fixing (continuous-integration)
654. By Michael Zanetti

merge trunk, make it work with ninja too

Revision history for this message
Michael Zanetti (mzanetti) wrote :

> breaks ninja :/

fixed

655. By Michael Zanetti

make it case insensitive

656. By Michael Zanetti

enable it only for Unix Makefiles instead of disabling it for ninja

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:654
http://jenkins.qa.ubuntu.com/job/unity8-ci/2514/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/3974
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/3559
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-trusty/1384
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-amd64-ci/1035
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/1039
        deb: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/1039/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-i386-ci/1035
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/3469
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/4009
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/4009/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3561
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3561/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/5893
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/4849

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/2514/rebuild

review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:656
http://jenkins.qa.ubuntu.com/job/unity8-ci/2520/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/3983
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/3568
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-trusty/1390
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-amd64-ci/1041
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/1045
        deb: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/1045/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-i386-ci/1041
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/3477
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/4018
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/4018/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3570
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3570/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/5903
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/4860

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/2520/rebuild

review: Approve (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

Well.. OK.

I'm starting to wonder if we're not building too much into our CMake rules...

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes. Works!

 * Did CI run pass? If not, please explain why.
Yes.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cmake/modules/QmlTest.cmake'
2--- cmake/modules/QmlTest.cmake 2013-06-18 12:47:43 +0000
3+++ cmake/modules/QmlTest.cmake 2014-03-17 14:54:22 +0000
4@@ -80,13 +80,26 @@
5 endforeach(IMPORT_PATH)
6 endif()
7
8- set(qmltest_command
9- env ${qmltest_ENVIRONMENT}
10- ${qmltestrunner_exe} -input ${CMAKE_CURRENT_SOURCE_DIR}/${qmltest_FILE}.qml
11- ${qmltestrunner_imports}
12- -o ${CMAKE_BINARY_DIR}/${qmltest_TARGET}.xml,xunitxml
13- -o -,txt
14- )
15+ string(TOLOWER "${CMAKE_GENERATOR}" cmake_generator_lower)
16+ if(cmake_generator_lower STREQUAL "unix makefiles")
17+ set(qmltest_command
18+ env ${qmltest_ENVIRONMENT}
19+ ${qmltestrunner_exe} -input ${CMAKE_CURRENT_SOURCE_DIR}/${qmltest_FILE}.qml
20+ ${qmltestrunner_imports}
21+ -o ${CMAKE_BINARY_DIR}/${qmltest_TARGET}.xml,xunitxml
22+ -o -,txt
23+ $(FUNCTION)
24+ )
25+ else()
26+ set(qmltest_command
27+ env ${qmltest_ENVIRONMENT}
28+ ${qmltestrunner_exe} -input ${CMAKE_CURRENT_SOURCE_DIR}/${qmltest_FILE}.qml
29+ ${qmltestrunner_imports}
30+ -o ${CMAKE_BINARY_DIR}/${qmltest_TARGET}.xml,xunitxml
31+ -o -,txt
32+ )
33+ endif()
34+
35 add_custom_target(${qmltest_TARGET} ${qmltest_command})
36
37 if(NOT "${qmltest_PROPERTIES}" STREQUAL "")

Subscribers

People subscribed via source and target branches