Merge lp:~dholbach/ubuntu-clock-app/reboot-packaging into lp:ubuntu-clock-app

Proposed by Daniel Holbach
Status: Superseded
Proposed branch: lp:~dholbach/ubuntu-clock-app/reboot-packaging
Merge into: lp:ubuntu-clock-app
Diff against target: 767 lines (+442/-76)
28 files modified
CMakeLists.txt (+27/-28)
app/CMakeLists.txt (+11/-5)
app/alarm/CMakeLists.txt (+1/-1)
app/clock/CMakeLists.txt (+1/-1)
app/components/CMakeLists.txt (+1/-1)
app/graphics/CMakeLists.txt (+5/-3)
app/upstreamcomponents/CMakeLists.txt (+1/-1)
app/worldclock/CMakeLists.txt (+1/-1)
backend/CMakeLists.txt (+8/-8)
cmake/Click.cmake (+0/-17)
debian/changelog (+197/-0)
debian/compat (+1/-0)
debian/control (+42/-0)
debian/copyright (+54/-0)
debian/rules (+20/-0)
debian/source/format (+1/-0)
debian/tests/control (+13/-0)
debian/tests/make-autopilot (+2/-0)
debian/tests/make-test (+2/-0)
debian/ubuntu-clock-app-autopilot.install (+1/-0)
debian/ubuntu-clock-app.install (+2/-0)
manifest.json (+2/-1)
tests/CMakeLists.txt (+1/-0)
tests/autopilot/CMakeLists.txt (+8/-0)
tests/autopilot/run (+3/-1)
tests/autopilot/ubuntu_clock_app/emulators.py (+2/-1)
tests/autopilot/ubuntu_clock_app/tests/__init__.py (+34/-6)
tests/unit/tst_hellocomponent.qml (+1/-1)
To merge this branch: bzr merge lp:~dholbach/ubuntu-clock-app/reboot-packaging
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Needs Fixing
Sergio Schvezov (community) Needs Fixing
Ubuntu Clock Developers Pending
Review via email: mp+229173@code.launchpad.net

This proposal has been superseded by a proposal from 2014-08-12.

Commit message

Various changes to the packaging to make it work with the newest ubuntu-clock-app.

To post a comment you must log in.
43. By Daniel Holbach

Run 'make autopilot' during the build instead of 'make test'.

44. By Daniel Holbach

Rename 'ubuntu-clock-app' to 'ubuntu_clock_app' in tests.

45. By Daniel Holbach

Don't try to install files from usr/bin, there are none.

46. By Daniel Holbach

Fail if not all files can be installed.

47. By Daniel Holbach

* Use CMake's testing framework instead of a custom target.
* Only install manifest in click mode.
* Spaces are tabs.
* Add a CMake option to build both as a click app and a regular one.

48. By Daniel Holbach

return to previous version of CMakeLists.txt - looks like the necessary changes were implemented already

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

FAILED: Continuous integration, rev:42
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~dholbach/ubuntu-clock-app/reboot-packaging/+merge/229173/+edit-commit-message

http://91.189.93.70:8080/job/ubuntu-clock-dev-ubuntu-clock-app-utopic-3.0-ci/97/
Executed test runs:
    FAILURE: http://91.189.93.70:8080/job/generic-mediumtests-utopic/1247/console
    FAILURE: http://91.189.93.70:8080/job/ubuntu-clock-dev-ubuntu-clock-app-utopic-3.0-utopic-amd64-ci/97/console

Click here to trigger a rebuild:
http://91.189.93.70:8080/job/ubuntu-clock-dev-ubuntu-clock-app-utopic-3.0-ci/97/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

FAILED: Continuous integration, rev:48
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~dholbach/ubuntu-clock-app/reboot-packaging/+merge/229173/+edit-commit-message

http://91.189.93.70:8080/job/ubuntu-clock-dev-ubuntu-clock-app-utopic-3.0-ci/98/
Executed test runs:
    FAILURE: http://91.189.93.70:8080/job/generic-mediumtests-utopic/1248/console
    FAILURE: http://91.189.93.70:8080/job/ubuntu-clock-dev-ubuntu-clock-app-utopic-3.0-utopic-amd64-ci/98/console

Click here to trigger a rebuild:
http://91.189.93.70:8080/job/ubuntu-clock-dev-ubuntu-clock-app-utopic-3.0-ci/98/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Can you merge trunk as it now has a working autopilot test. I will follow up with sergieusens asap.

49. By Daniel Holbach

Revert 'Rename 'ubuntu-clock-app' to 'ubuntu_clock_app' in tests.'

50. By Daniel Holbach

merge from trunk

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

FAILED: Continuous integration, rev:50
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~dholbach/ubuntu-clock-app/reboot-packaging/+merge/229173/+edit-commit-message

http://91.189.93.70:8080/job/ubuntu-clock-dev-ubuntu-clock-app-utopic-3.0-ci/108/
Executed test runs:
    FAILURE: http://91.189.93.70:8080/job/generic-mediumtests-utopic/1284/console
    FAILURE: http://91.189.93.70:8080/job/ubuntu-clock-dev-ubuntu-clock-app-utopic-3.0-utopic-amd64-ci/108/console

Click here to trigger a rebuild:
http://91.189.93.70:8080/job/ubuntu-clock-dev-ubuntu-clock-app-utopic-3.0-ci/108/rebuild

review: Needs Fixing (continuous-integration)
51. By Daniel Holbach

adjust to new test paths

52. By Daniel Holbach

* Install files from usr/lib.
* Make ubuntu-clock-app Arch:any.
* Don't install 'ubuntu-clock-app-autopilot' files for now.
  Bits in the cmake installation have to be fixed.

53. By Daniel Holbach

Add ${shlibs:Depends} to Depends.

54. By Daniel Holbach

Remove duplicate 'Section' definition.

55. By Daniel Holbach

Relax dependency from ubuntu-clock-app-autopilot on ubuntu-clock-app
somewhat.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Daniel, I got the "make autopilot" to work. The first fix needed was already done by you in rev 51 (adjusting CMakeList.txt file to point at the new test path). The second fix needed is to rename ubuntu-clock-app to ubuntu_clock_app in the tests/autopilot/run file.

=== modified file 'tests/autopilot/run' (properties changed: -x to +x)
--- tests/autopilot/run 2014-07-31 16:58:56 +0000
+++ tests/autopilot/run 2014-08-05 10:13:21 +0000
@@ -7,5 +7,5 @@

 SCRIPTPATH=`dirname $0`
 pushd ${SCRIPTPATH}
-autopilot run ubuntu-clock-app
+autopilot run ubuntu_clock_app

After which I get it passing,

nik90@nik90-devel:~/Clock/add-alarm-test/builddir$ make autopilot
[ 0%] Built target alarmsettings-qmldir
[ 7%] Automoc for target timezone
[ 7%] Built target timezone_automoc
[ 42%] Built target timezone
[ 50%] Automoc for target datetime
[ 50%] Built target datetime_automoc
[ 71%] Built target datetime
[ 78%] Automoc for target alarmsettings
[ 78%] Built target alarmsettings_automoc
[100%] Built target alarmsettings
[100%] Built target timezone-qmldir
[100%] Built target datetime-qmldir
~/Clock/add-alarm-test/tests/autopilot ~/Clock/add-alarm-test/builddir/app
Loading tests from: /home/nik90/Clock/add-alarm-test/tests/autopilot

Tests running...

Ran 1 test in 48.013s
OK
~/Clock/add-alarm-test/builddir/app
[100%] Built target autopilot

56. By Daniel Holbach

rename ubuntu-clock-app to ubuntu_clock_app

57. By Daniel Holbach

add build-depends for running 'make autopilot', run 'wrap-and-sort'

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel Holbach (dholbach) wrote :

A number of files are not installed in the right place or not present/installed at all:

 - backend/ directory is missing
 - files in usr/lib probably need their own, a bit more descriptive directory name
 - files for the -autopilot package are not installed anywhere
 - .desktop file.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

one inline comment for now, more later

review: Needs Fixing
Revision history for this message
Daniel Holbach (dholbach) wrote :
58. By Daniel Holbach

Run tests as autopkgtest. (LP: #1354091)

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
59. By Daniel Holbach

Don't return ignore of autopilot test execution. (LP: #1354095)

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
60. By Daniel Holbach

* Using GnuInstallDirs takes care of the arch triplet.
* Used a proper qt_imports_dir (still needs qml import updates).
* Moved gnuinstalldirs higher up for better path management.
* Removed a bunch of very custom variables and build on top.
* Removed the install target for the gallery directory as it was a dup
  and going to the wrong path.
* Not installing icon for deb and just rely on us using the desktop
  default (we can depend on the suru icon set, it's there).
* Made some rules filter out if not in qtcreator.
* Changed the path for a couple of things to use common subpaths in most
  cases.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
61. By Daniel Holbach

Fix path in Exec= line of .desktop file. (LP: #1354081)

62. By Daniel Holbach

fix changelog entry

63. By Daniel Holbach

Move module files into proper place. (LP: #1354079)

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
64. By Daniel Holbach

fix tests path for basic testcase

65. By Daniel Holbach

get 'make test' closer to actually working

66. By Daniel Holbach

merge from trunk

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
67. By Daniel Holbach

fix path location for upstreamcomponents

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
68. By Daniel Holbach

make pep8 happy

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
69. By Daniel Holbach

generalise local paths in tests somewhat

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
70. By Daniel Holbach

Make pep8 happy.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
71. By Daniel Holbach

bring installation path more closely in line with other apps

72. By Daniel Holbach

Add -I argument to Exec line in .desktop file.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
73. By Daniel Holbach

Install files into ubuntu-clock-app-autopilot again (LP: #1354074).

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
74. By Daniel Holbach

merge from trunk

75. By Daniel Holbach

merged lp:~nskaggs/ubuntu-clock-app/fix-ap-setup - resolve conflicts

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
76. By Daniel Holbach

remove 'builddir' portion from system-installed paths

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
77. By Daniel Holbach

merge from trunk

78. By Daniel Holbach

merge from trunk

79. By Daniel Holbach

Don't force python3. For some reason that seems to fail with qtcreator.

Unmerged revisions

79. By Daniel Holbach

Don't force python3. For some reason that seems to fail with qtcreator.

78. By Daniel Holbach

merge from trunk

77. By Daniel Holbach

merge from trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2014-07-26 09:34:15 +0000
+++ CMakeLists.txt 2014-08-11 16:19:22 +0000
@@ -2,7 +2,6 @@
2cmake_minimum_required(VERSION 2.8.9)2cmake_minimum_required(VERSION 2.8.9)
33
4set (UBUNTU_PROJECT_TYPE "ClickApp" CACHE INTERNAL "Tells QtCreator this is a Click application project")4set (UBUNTU_PROJECT_TYPE "ClickApp" CACHE INTERNAL "Tells QtCreator this is a Click application project")
5set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
6set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra")5set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra")
76
8find_package(Qt5Core)7find_package(Qt5Core)
@@ -20,51 +19,51 @@
20set(APP_NAME clock)19set(APP_NAME clock)
21set(APP_HARDCODE ubuntu-clock-app)20set(APP_HARDCODE ubuntu-clock-app)
22set(MAIN_QML ${APP_HARDCODE}.qml)21set(MAIN_QML ${APP_HARDCODE}.qml)
23set(ICON clock-app@30.png)22set(ICON clock-app)
23SET(AUTOPILOT_DIR ubuntu_clock_app)
24
25# Standard install paths
26include(GNUInstallDirs)
2427
25#set install paths28#set install paths
26if(${CLICK_MODE})29if(CLICK_MODE)
27 set(CMAKE_INSTALL_PREFIX /)30 set(CMAKE_INSTALL_PREFIX "/")
28 set(DATA_DIR /)31 set(UBUNTU-CLOCK_APP_DIR "${CMAKE_INSTALL_DATADIR}/qml")
29 set(DESKTOP_DIR ${DATA_DIR})
30 set(UBUNTU-CLOCK-APP_DIR "share/qml/ubuntu-clock-app")
31 set(ICON "${UBUNTU-CLOCK-APP_DIR}/${ICON}")
3232
33 execute_process(
34 COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH
35 OUTPUT_VARIABLE ARCH_TRIPLET
36 OUTPUT_STRIP_TRAILING_WHITESPACE
37 )
38 set(QT_IMPORTS_DIR "lib/${ARCH_TRIPLET}")
39else()
40 set(DATA_DIR "share/clockapp")
41 set(DESKTOP_DIR ${DATA_DIR})
42 set(ICON "${DATA_DIR}/${ICON}")
43 set(UBUNTU-CLOCK-APP_DIR "share/ubuntu-clock-app/qml")
44 include(GNUInstallDirs)
45 set(QT_IMPORTS_DIR "${CMAKE_INSTALL_LIBDIR}")33 set(QT_IMPORTS_DIR "${CMAKE_INSTALL_LIBDIR}")
46endif()34 set(EXEC "qmlscene $@ ${UBUNTU-CLOCK_APP_DIR}/${MAIN_QML}")
4735else(CLICK_MODE)
48set(EXEC "qmlscene $@ ${UBUNTU-CLOCK-APP_DIR}/${MAIN_QML}")36 set(UBUNTU-CLOCK_APP_DIR "${CMAKE_INSTALL_DATADIR}/ubuntu-clock-app")
37 execute_process(
38 COMMAND qmake -query QT_INSTALL_QML
39 OUTPUT_VARIABLE QT_IMPORTS_DIR
40 OUTPUT_STRIP_TRAILING_WHITESPACE
41 )
42
43endif(CLICK_MODE)
44
45set(MODULE_PATH ${QT_IMPORTS_DIR}/ClockApp)
4946
50if(${CLICK_MODE})47if(${CLICK_MODE})
51 install(FILES manifest.json DESTINATION ${CMAKE_INSTALL_PREFIX})48 install(FILES manifest.json DESTINATION ${CMAKE_INSTALL_PREFIX})
49 install(FILES "${APP_HARDCODE}.json" DESTINATION ${CMAKE_INSTALL_DATADIR})
50else(CLICK_MODE)
51 set(EXEC "qmlscene $@ -I ${MODULE_PATH} ${CMAKE_INSTALL_PREFIX}/${UBUNTU-CLOCK_APP_DIR}/${MAIN_QML}")
52endif()52endif()
53install(DIRECTORY "app/graphics" DESTINATION ${DATA_DIR})
54install(FILES "${APP_HARDCODE}.json" DESTINATION ${DATA_DIR})
5553
56add_subdirectory(app)54add_subdirectory(app)
57add_subdirectory(backend)55add_subdirectory(backend)
56add_subdirectory(tests)
5857
59add_custom_target("autopilot" chmod +x ${CMAKE_SOURCE_DIR}/app/tests/autopilot/run58add_custom_target("autopilot" chmod +x ${CMAKE_SOURCE_DIR}/tests/autopilot/run
60 COMMAND ${CMAKE_SOURCE_DIR}/app/tests/autopilot/run59 COMMAND ${CMAKE_SOURCE_DIR}/tests/autopilot/run
61 DEPENDS timezone timezone-qmldir alarmsettings alarmsettings-qmldir datetime datetime-qmldir60 DEPENDS timezone timezone-qmldir alarmsettings alarmsettings-qmldir datetime datetime-qmldir
62 WORKING_DIRECTORY ./app)61 WORKING_DIRECTORY ./app)
6362
64enable_testing()63enable_testing()
65add_test(NAME basic64add_test(NAME basic
66 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/app65 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/app
67 COMMAND /usr/bin/qmltestrunner -input ${CMAKE_SOURCE_DIR}/app/tests/unit -import ${CMAKE_BINARY_DIR}/backend66 COMMAND /usr/bin/qmltestrunner -input ${CMAKE_SOURCE_DIR}/tests/unit -import ${CMAKE_BINARY_DIR}/backend
68)67)
6968
70add_custom_target("run" /usr/bin/qmlscene -I ${CMAKE_BINARY_DIR}/backend ${CMAKE_SOURCE_DIR}/app/ubuntu-clock-app.qml69add_custom_target("run" /usr/bin/qmlscene -I ${CMAKE_BINARY_DIR}/backend ${CMAKE_SOURCE_DIR}/app/ubuntu-clock-app.qml
7170
=== modified file 'app/CMakeLists.txt'
--- app/CMakeLists.txt 2014-07-28 13:02:59 +0000
+++ app/CMakeLists.txt 2014-08-11 16:19:22 +0000
@@ -1,14 +1,20 @@
1file(GLOB QML_JS_FILES *.qml *.js *.png)1if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
2
3# make the files visible on qtcreator
4add_custom_target(ubuntu-clock-app_QMlFiles ALL SOURCES ${QML_JS_FILES})2add_custom_target(ubuntu-clock-app_QMlFiles ALL SOURCES ${QML_JS_FILES})
3endif(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
4
5
6if(CLICK_MODE)
7 set(ICON "${ICON}@30.png")
8 install(FILES ${ICON} DESTINATION ${CMAKE_INSTALL_PREFIX})
9endif(CLICK_MODE)
510
6# substitute variables in the desktop file11# substitute variables in the desktop file
7set(DESKTOP_FILE "ubuntu-clock-app.desktop")12set(DESKTOP_FILE "ubuntu-clock-app.desktop")
8configure_file(${DESKTOP_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE})13configure_file(${DESKTOP_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE})
914
10install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE} DESTINATION ${DESKTOP_DIR})15install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE}
11install(FILES ${QML_JS_FILES} DESTINATION ${UBUNTU-CLOCK-APP_DIR})16 DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
17install(FILES ${MAIN_QML} DESTINATION ${UBUNTU-CLOCK_APP_DIR})
1218
13add_subdirectory(clock)19add_subdirectory(clock)
14add_subdirectory(alarm)20add_subdirectory(alarm)
1521
=== modified file 'app/alarm/CMakeLists.txt'
--- app/alarm/CMakeLists.txt 2014-06-16 14:09:12 +0000
+++ app/alarm/CMakeLists.txt 2014-08-11 16:19:22 +0000
@@ -3,4 +3,4 @@
3# make the files visible in the qtcreator tree3# make the files visible in the qtcreator tree
4add_custom_target(ubuntu-clock-app_alarm_QMlFiles ALL SOURCES ${ALARM_QML_JS_FILES})4add_custom_target(ubuntu-clock-app_alarm_QMlFiles ALL SOURCES ${ALARM_QML_JS_FILES})
55
6install(FILES ${ALARM_QML_JS_FILES} DESTINATION ${UBUNTU-CLOCK-APP_DIR}/alarm)6install(FILES ${ALARM_QML_JS_FILES} DESTINATION ${UBUNTU-CLOCK_APP_DIR}/alarm)
77
=== modified file 'app/clock/CMakeLists.txt'
--- app/clock/CMakeLists.txt 2014-06-06 18:45:49 +0000
+++ app/clock/CMakeLists.txt 2014-08-11 16:19:22 +0000
@@ -3,4 +3,4 @@
3# make the files visible in the qtcreator tree3# make the files visible in the qtcreator tree
4add_custom_target(ubuntu-clock-app_clock_QMlFiles ALL SOURCES ${CLOCK_QML_JS_FILES})4add_custom_target(ubuntu-clock-app_clock_QMlFiles ALL SOURCES ${CLOCK_QML_JS_FILES})
55
6install(FILES ${CLOCK_QML_JS_FILES} DESTINATION ${UBUNTU-CLOCK-APP_DIR}/clock)6install(FILES ${CLOCK_QML_JS_FILES} DESTINATION ${UBUNTU-CLOCK_APP_DIR}/clock)
77
=== modified file 'app/components/CMakeLists.txt'
--- app/components/CMakeLists.txt 2014-06-06 18:45:49 +0000
+++ app/components/CMakeLists.txt 2014-08-11 16:19:22 +0000
@@ -3,4 +3,4 @@
3# make the files visible in the qtcreator tree3# make the files visible in the qtcreator tree
4add_custom_target(ubuntu-clock-app_components_QMlFiles ALL SOURCES ${COMPONENTS_QML_JS_FILES})4add_custom_target(ubuntu-clock-app_components_QMlFiles ALL SOURCES ${COMPONENTS_QML_JS_FILES})
55
6install(FILES ${COMPONENTS_QML_JS_FILES} DESTINATION ${UBUNTU-CLOCK-APP_DIR}/components)6install(FILES ${COMPONENTS_QML_JS_FILES} DESTINATION ${UBUNTU-CLOCK_APP_DIR}/components)
77
=== modified file 'app/graphics/CMakeLists.txt'
--- app/graphics/CMakeLists.txt 2014-06-06 18:45:49 +0000
+++ app/graphics/CMakeLists.txt 2014-08-11 16:19:22 +0000
@@ -1,6 +1,8 @@
1file(GLOB IMAGES_PNG_FILES *.png *.jpg)1file(GLOB GRAPHICS_FILES *.png *.jpg)
22
3# make the files visible in the qtcreator tree3# make the files visible in the qtcreator tree
4add_custom_target(ubuntu-clock-app_graphics_PNGFiles ALL SOURCES ${IMAGES_PNG_FILES})4if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
5 add_custom_target(ubuntu-clock-app_graphics_PNGFiles ALL SOURCES ${IMAGES_PNG_FILES})
6endif(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
57
6install(FILES ${IMAGES_PNG_FILES} DESTINATION ${UBUNTU-CLOCK-APP_DIR}/graphics)8install(FILES ${GRAPHICS_FILES} DESTINATION ${UBUNTU-CLOCK_APP_DIR}/graphics)
79
=== modified file 'app/upstreamcomponents/CMakeLists.txt'
--- app/upstreamcomponents/CMakeLists.txt 2014-07-28 13:02:59 +0000
+++ app/upstreamcomponents/CMakeLists.txt 2014-08-11 16:19:22 +0000
@@ -3,4 +3,4 @@
3# make the files visible in the qtcreator tree3# make the files visible in the qtcreator tree
4add_custom_target(ubuntu-clock-app_upstream_components_QMlFiles ALL SOURCES ${UPSTREAM_COMPONENTS_QML_JS_FILES})4add_custom_target(ubuntu-clock-app_upstream_components_QMlFiles ALL SOURCES ${UPSTREAM_COMPONENTS_QML_JS_FILES})
55
6install(FILES ${UPSTREAM_COMPONENTS_QML_JS_FILES} DESTINATION ${UBUNTU-CLOCK-APP_DIR}/upstreamcomponents)6install(FILES ${UPSTREAM_COMPONENTS_QML_JS_FILES} DESTINATION ${UBUNTU-CLOCK_APP_DIR}/upstreamcomponents)
77
=== modified file 'app/worldclock/CMakeLists.txt'
--- app/worldclock/CMakeLists.txt 2014-07-13 11:18:31 +0000
+++ app/worldclock/CMakeLists.txt 2014-08-11 16:19:22 +0000
@@ -3,4 +3,4 @@
3# make the files visible in the qtcreator tree3# make the files visible in the qtcreator tree
4add_custom_target(ubuntu-clock-app_worldclock_QMlFiles ALL SOURCES ${WORLDCLOCK_QML_JS_FILES})4add_custom_target(ubuntu-clock-app_worldclock_QMlFiles ALL SOURCES ${WORLDCLOCK_QML_JS_FILES})
55
6install(FILES ${WORLDCLOCK_QML_JS_FILES} DESTINATION ${UBUNTU-CLOCK-APP_DIR}/worldclock)6install(FILES ${WORLDCLOCK_QML_JS_FILES} DESTINATION ${UBUNTU-CLOCK_APP_DIR}/worldclock)
77
=== modified file 'backend/CMakeLists.txt'
--- backend/CMakeLists.txt 2014-07-26 09:34:15 +0000
+++ backend/CMakeLists.txt 2014-08-11 16:19:22 +0000
@@ -67,11 +67,11 @@
67)67)
6868
69# Install plugin file69# Install plugin file
70install(TARGETS timezone DESTINATION ${QT_IMPORTS_DIR}/Timezone/)70install(TARGETS timezone DESTINATION ${MODULE_PATH}/Timezone/)
71install(FILES modules/Timezone/qmldir DESTINATION ${QT_IMPORTS_DIR}/Timezone/)71install(FILES modules/Timezone/qmldir DESTINATION ${MODULE_PATH}/Timezone/)
7272
73install(TARGETS datetime DESTINATION ${QT_IMPORTS_DIR}/DateTime/)73install(TARGETS datetime DESTINATION ${MODULE_PATH}/DateTime/)
74install(FILES modules/DateTime/qmldir DESTINATION ${QT_IMPORTS_DIR}/DateTime/)74install(FILES modules/DateTime/qmldir DESTINATION ${MODULE_PATH}/DateTime/)
7575
76install(TARGETS alarmsettings DESTINATION ${QT_IMPORTS_DIR}/Alarm/Settings/)76install(TARGETS alarmsettings DESTINATION ${MODULE_PATH}/Alarm/Settings/)
77install(FILES modules/Alarm/Settings/qmldir DESTINATION ${QT_IMPORTS_DIR}/Alarm/Settings/)77install(FILES modules/Alarm/Settings/qmldir DESTINATION ${MODULE_PATH}/Alarm/Settings/)
7878
=== removed directory 'cmake'
=== removed file 'cmake/Click.cmake'
--- cmake/Click.cmake 2014-06-06 18:45:49 +0000
+++ cmake/Click.cmake 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
1if(CLICK_MODE)
2 STRING(REPLACE "/usr/" "/" QT_IMPORTS_DIR ${QT_IMPORTS_DIR})
3 set(CMAKE_INSTALL_PREFIX /)
4 set(CMAKE_INSTALL_BINDIR /)
5 set(DATA_DIR /)
6 set(EXEC "qmlscene $@ -I .${QT_IMPORTS_DIR} ${UBUNTU-CLOCK-APP_DIR}/${MAIN_QML}")
7 set(DESKTOP_DIR ${DATA_DIR})
8 set(ICON ".${DATA_DIR}/${ICON}")
9 install(FILES manifest.json DESTINATION ${CMAKE_INSTALL_PREFIX})
10 install(DIRECTORY "app/graphics" DESTINATION ${DATA_DIR})
11 install(FILES "${CMAKE_PROJECT_NAME}.json" DESTINATION ${DATA_DIR})
12else(CLICK_MODE)
13 set(DATA_DIR ${CMAKE_INSTALL_DATADIR}/${APP_NAME})
14 set(EXEC "qmlscene $@ ${CMAKE_INSTALL_PREFIX}/${DATA_DIR}/qml/${MAIN_QML}")
15 set(ICON "${CMAKE_INSTALL_PREFIX}/${DATA_DIR}/${ICON}")
16 set(DESKTOP_DIR ${CMAKE_INSTALL_DATADIR}/applications)
17endif(CLICK_MODE)
180
=== added directory 'debian'
=== added file 'debian/changelog'
--- debian/changelog 1970-01-01 00:00:00 +0000
+++ debian/changelog 2014-08-11 16:19:22 +0000
@@ -0,0 +1,197 @@
1ubuntu-clock-app (1.2) utopic; urgency=medium
2
3 [ Daniel Holbach ]
4 * Fix debhelper-but-no-misc-depends ubuntu-clock-app-autopilot.
5 * Bump Standards-Version to 3.9.5, no changes required.
6 * Add missing build-depends.
7 * Run 'wrap-and-sort'.
8 * Don't try to install files from usr/bin, there are none.
9 * Install files from usr/lib.
10 * Fail if not all files can be installed.
11 * Make ubuntu-clock-app Arch:any.
12 * Install files into ubuntu-clock-app-autopilot again (LP: #1354074).
13 * Add ${shlibs:Depends} to Depends.
14 * Remove duplicate 'Section' definition.
15 * Relax dependency from ubuntu-clock-app-autopilot on ubuntu-clock-app
16 somewhat.
17 * Run tests as autopkgtest. (LP: #1354091)
18 * Don't ignore return code of autopilot test execution. (LP: #1354095)
19 * Fix path in Exec= line of .desktop file. (LP: #1354081)
20 * Move module files into proper place. (LP: #1354079)
21 * Make pep8 happy.
22 * Add -I argument to Exec line in .desktop file.
23
24 [ Jussi Pakkanen ]
25 * Use CMake's testing framework instead of a custom target.
26 * Only install manifest in click mode.
27 * Spaces are tabs.
28 * Add a CMake option to build both as a click app and a regular one.
29
30 [ Sergio Schvezov ]
31 * Using GnuInstallDirs takes care of the arch triplet.
32 * Used a proper qt_imports_dir (still needs qml import updates).
33 * Moved gnuinstalldirs higher up for better path management.
34 * Removed a bunch of very custom variables and build on top.
35 * Removed the install target for the gallery directory as it was a dup
36 and going to the wrong path.
37 * Not installing icon for deb and just rely on us using the desktop
38 default (we can depend on the suru icon set, it's there).
39 * Made some rules filter out if not in qtcreator.
40 * Changed the path for a couple of things to use common subpaths in most
41 cases.
42
43 -- Daniel Holbach <daniel.holbach@ubuntu.com> Fri, 01 Aug 2014 09:16:35 +0200
44
45ubuntu-clock-app (1.1) raring; urgency=medium
46
47 * New icon
48 * Add -qt5 command line option (LP: #1288885)
49 * Update framework and apparmor profile version
50
51 -- Alan Pope <popey@ubuntu.com> Fri, 02 May 2014 13:57:25 +0100
52
53ubuntu-clock-app (1.0) saucy; urgency=low
54
55 [Nekhelesh Ramananthan]
56 * World Clock list needs to inform user when results cannot be retrieved due to network error (LP: #1231106)
57 * Load premade presets for new user so user doesn't end up in blank app (LP: #1226131)
58 * Return more fine-grained territorial divisions for city search results (LP: #1230153)
59 * Improve the visual appearance of the clock, timer, stopwatch and alarm
60 * Removed hour support from timer
61
62 [Sergio Schvezov]
63 * Translation for desktop and debian package
64 * Fix click package confinement issues
65
66 [Riccardo Padovani]
67 * Alarm notifications do not appear when an alarm is triggered (LP: #1233176)
68
69 [Nicholas Skaggs]
70 * Several apps have failing tests with 20131003 ui-toolkit (LP: #1234544)
71
72 [Andrea Cerisara]
73 * Autopilot Testcase Needed: Test Add World Clock (LP: #1210196)
74 * Autopilot Testcase Needed: Test Delete World Clock (LP: #1210197)
75
76 -- Nekhelesh Ramananthan <krnekhelesh@gmail.com> Fri, 11 Oct 2013 01:45:36 +0200
77
78ubuntu-clock-app (0.7) saucy; urgency=low
79
80 [Nekhelesh Ramananthan]
81 * Alarm doesn't work (LP: #1187994)
82 * Clock app does not honor timezone (LP: #1191291)
83 * Clocks need to sync better and use the same backend (LP: #1201830)
84 * Clock reports time in UTC by default (LP: #1201858)
85 * On scrolling down page, hide tab header (LP: #1226128)
86 * Very difficult to select bottom city in scrollable list of 4 or more (LP: #1227674)
87 * There is no effect on the circle shape (LP: #1215332)
88 * HUD actions should not appear for toolbar button such as save or cancel (LP: #1224891)
89
90 [Paolo Rotolo]
91 * Add error message if no cities were found (LP: #1222235)
92 * Timer label updates before the timer hand reaches destination (LP: #1172869)
93 * Cancel toolbar action needs the correct icon (LP: #1222942)
94
95 -- Nekhelesh Ramananthan <krnekhelesh@gmail.com> Fri, 27 Sep 2013 12:47:21 +0200
96
97ubuntu-clock-app (0.6) saucy; urgency=low
98
99 [Nekhelesh Ramananthan]
100 * Digital clock font size is smaller than design spec (LP: #1215334)
101 * Font in world city list are too big (LP: #1200594)
102 * Timer does not inform user if there are no presets (LP: #1169182)
103 * Clicking the Add preset or add city button should reflect on the title for visual feedback (LP: #1168329)
104 * In Timer, clock face is off screen when selecting preset (LP: #1219770)
105 * Toolbar prevents text preset from accepting input (LP: #1209024)
106
107 [Paolo Rotolo]
108 * Search button icon is not as per design specifications (LP: #1221252)
109 * Search icon isn't in Ubuntu Touch Style (LP: #1202364)
110 * Reset button doesn't work while the stopwatch is running (LP: #1204861)
111 * Timer sometimes does not reset its clock hands after stopping it (LP: #1197908)
112 * Provide the ability to delete a stopwatch lap (LP: #1220375)
113 * Scrolling list of cities overlaps labels (LP: #1219768)
114 * Reset and lap icons appear pixelated on a phone (LP: #1218751)
115 * While searching world cities provide a small pause before going online to search (LP: #1200410)
116
117 [Camron]
118 * Stopwatch runs backwards (LP: #1217743)
119
120 [Andrew Starr-Bochicchio]
121 * Sunrise/Sunset Times should be retrieved online sparingly (LP: #1200410)
122
123 -- Nekhelesh Ramananthan <krnekhelesh@gmail.com> Fri, 06 Sep 2013 23:26:54 +0200
124
125ubuntu-clock-app (0.5) saucy; urgency=low
126
127 [Nekhelesh Ramananthan]
128 * Added background gradients support with proper use of theme palette colors
129 * Connected Sunrise/Sunset to the current location set by the user (LP: #1195701)
130 * Fixed inaccurate timer touch input (LP: #1186396, #1168327)
131 * Fixed second hand moving erratically in mobile devices (LP: #1186279)
132 * Fixed timer being able to start without setting any time (LP: #1197914)
133 * Fixed city name going over the search box (LP: #1199379)
134
135 [Riccardo Padovani]
136 * Added support to pause timer (LP: #1166264)
137 * Added state names to world city search to distinguish cities with duplicate names (LP: #1197436)
138 * Added autopilot test to test adding a timer (LP: #1188800)
139 * Added autopilot test to run a saved timer preset (LP: #1188801)
140 * Added autopilot test to delete a saved timer preset (LP: #1188807)
141
142 -- Nekhelesh Ramananthan <krnekhelesh@gmail.com> Tue, 16 Jul 2013 21:24:53 +0200
143
144ubuntu-clock-app (0.4) raring; urgency=low
145
146 * Added World Clocks
147 * Added autopilot tests for Stopwatch (LP: #1188796, #1188812, #1188794)
148 * Implemented initial visual designs for Clock
149 * Fixed Timer runs slower than expected (LP: #117655)
150 * Add city clock from toolbar (LP: #1164943)
151 * Added Animations for Clock, Timer and Stopwatch (LP: #1168325, #1169153)
152
153 -- Nekhelesh Ramananthan <krnekhelesh@gmail.com> Fri, 14 Jun 2013 22:31:07 +0200
154
155ubuntu-clock-app (0.3) raring; urgency=low
156
157 * Added translations support
158
159 -- David Planella <david.planella@ubuntu.com> Tue, 07 May 2013 16:10:25 +0200
160
161ubuntu-clock-app (0.2) raring; urgency=low
162
163 [ Nekhelesh Ramananthan ]
164 * Fix Timer Label bugs (LP: #1172864, #1172865, #1173572).
165 * Add blip to the stopwatch (LP: #1168468).
166 * Tweak behavior of timer hand (LP: #1168335).
167 * Timer format should read mm:ss and count upwards into minutes and hours (LP: #1171467).
168
169 [ Alessandro Pozzi ]
170 * Stopwatch needs to show 1/10th of a second in the label for better accuracy (LP: #1163855).
171 * Add gradient to the stopwatch second hand (LP: #1168402).
172
173 -- Nekhelesh Ramananthan <krnekhelesh@gmail.com> Sun, 28 Apr 2013 15:21:19 +0200
174
175ubuntu-clock-app (0.1) raring; urgency=low
176
177 [ Michael Hall ]
178 * Initial release
179
180 [ Juha Ristolainen ]
181 * Implemented basic clock layout
182
183 [ Nick Leppänen Larsson ]
184 * Implemented Analog Clock Face API
185 * Basic clock layout
186
187 [ Nekhelesh Ramananthan ]
188 * Add copyright/license headers to the clock app files (LP: #1164594)
189 * Analog clock markers around 3,6,9,12 should be differentiated from others (LP: #1163852)
190 * Clock app code style does not follow qml, javascript guidelines (LP: #1167040)
191 * No easy way to set timer for an hour or more (LP: #1163854)
192
193 [ Alessandro Pozzi ]
194 * Timer function requires design for adding and editing presets (LP: #1164443)
195 * Implemented basic stopwatch functionality
196
197 -- Nekhelesh Ramananthan <krnekhelesh@gmail.com> Thu, 11 Apr 2013 21:09:19 +0200
0198
=== added file 'debian/compat'
--- debian/compat 1970-01-01 00:00:00 +0000
+++ debian/compat 2014-08-11 16:19:22 +0000
@@ -0,0 +1,1 @@
19
02
=== added file 'debian/control'
--- debian/control 1970-01-01 00:00:00 +0000
+++ debian/control 2014-08-11 16:19:22 +0000
@@ -0,0 +1,42 @@
1Source: ubuntu-clock-app
2Priority: extra
3Maintainer: Ubuntu App Cats <ubuntu-touch-coreapps@lists.launchpad.net>
4Build-Depends: cmake,
5 debhelper (>= 9),
6 gettext,
7 intltool,
8 python3 | python3-all | python3-dev | python3-all-dev,
9 python3-minimal,
10 qt5-default,
11 qtbase5-dev,
12 qtdeclarative5-dev
13Standards-Version: 3.9.5
14Section: misc
15Homepage: https://launchpad.net/ubuntu-clock-app
16Vcs-Bzr: https://code.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/trunk
17XS-Testsuite: autopkgtest
18
19Package: ubuntu-clock-app
20Architecture: any
21Depends: qmlscene,
22 qtdeclarative5-localstorage-plugin,
23 qtdeclarative5-qtquick2-plugin,
24 qtdeclarative5-u1db1.0,
25 qtdeclarative5-ubuntu-ui-toolkit-plugin | qt-components-ubuntu,
26 qtdeclarative5-xmllistmodel-plugin,
27 suru-icon-theme | ubuntu-mobile-icons,
28 ${misc:Depends},
29 ${shlibs:Depends}
30Description: Clock application
31 Ubuntu Core Clock application which provides Stopwatch, Timer, Alarm and Clock functionalities.
32
33Package: ubuntu-clock-app-autopilot
34Architecture: all
35Depends: libautopilot-qt,
36 libqt5test5,
37 ubuntu-clock-app (>= ${source:Version}),
38 ubuntu-ui-toolkit-autopilot,
39 ${misc:Depends},
40 ${python3:Depends}
41Description: Autopilot tests for Ubuntu Clock Application
42 This package contains autopilot tests for the Ubuntu Clock application.
043
=== added file 'debian/copyright'
--- debian/copyright 1970-01-01 00:00:00 +0000
+++ debian/copyright 2014-08-11 16:19:22 +0000
@@ -0,0 +1,54 @@
1Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2Upstream-Name: ubuntu-clock-app
3Source: https://launchpad.net/ubuntu-clock-app
4
5Files: *
6Copyright: 2013, 2014 Canonical Ltd.
7 2013 Alessandro Pozzi <signor.hyde@gmail.com>
8 2013 Juha Ristolainen <juha.ristolainen@codemancers.fi>
9 2013 Marco Biscaro <marcobiscaro2112@gmail.com>
10 2013, 2014 Nekhelesh Ramananthan <krnekhelesh@gmail.com>
11 2013 Nick Leppänen Larsson <frals@frals.se>
12 2013 Omer Akram <om26er@ubuntu.com>
13 2013 Paolo Rotolo <paolorotolo@ubuntu.com>
14 2013, 2014 Riccardo Padovani <rpadovani@ubuntu.com>
15 2014 Bartosz Kosiorek <gang65@poczta.onet.pl>
16License: GPL-3
17
18Files: debian/*
19Copyright: 2013, 2014 Canonical Ltd.
20License: LGPL-3
21
22License: GPL-3
23 This package is free software; you can redistribute it and/or
24 modify it under the terms of the GNU General Public
25 License as published by the Free Software Foundation; either
26 version 3 of the License.
27 .
28 This package is distributed in the hope that it will be useful,
29 but WITHOUT ANY WARRANTY; without even the implied warranty of
30 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31 General Public License for more details.
32 .
33 You should have received a copy of the GNU General Public License
34 along with this program. If not, see <http://www.gnu.org/licenses/>.
35 .
36 On Debian systems, the complete text of the GNU General
37 Public License can be found in "/usr/share/common-licenses/GPL-3".
38
39License: LGPL-3
40 This package is free software; you can redistribute it and/or
41 modify it under the terms of the GNU Lesser General Public
42 License as published by the Free Software Foundation; either
43 version 3 of the License.
44 .
45 This package is distributed in the hope that it will be useful,
46 but WITHOUT ANY WARRANTY; without even the implied warranty of
47 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
48 Lesser General Public License for more details.
49 .
50 You should have received a copy of the GNU General Public License
51 along with this program. If not, see <http://www.gnu.org/licenses/>.
52 .
53 On Debian systems, the complete text of the GNU Lesser General
54 Public License can be found in "/usr/share/common-licenses/LGPL-3".
055
=== added file 'debian/rules'
--- debian/rules 1970-01-01 00:00:00 +0000
+++ debian/rules 2014-08-11 16:19:22 +0000
@@ -0,0 +1,20 @@
1#!/usr/bin/make -f
2# -*- makefile -*-
3
4# Uncomment this to turn on verbose mode.
5#export DH_VERBOSE=1
6
7%:
8 dh $@
9
10override_dh_auto_configure:
11 dh_auto_configure -- -DCLICK_MODE=OFF
12
13override_dh_auto_test:
14 echo
15
16override_dh_install:
17 dh_install --fail-missing
18
19override_dh_python3:
20 dh_python3 -pubuntu-clock-app-autopilot
021
=== added directory 'debian/source'
=== added file 'debian/source/format'
--- debian/source/format 1970-01-01 00:00:00 +0000
+++ debian/source/format 2014-08-11 16:19:22 +0000
@@ -0,0 +1,1 @@
11.0
02
=== added directory 'debian/tests'
=== added file 'debian/tests/control'
--- debian/tests/control 1970-01-01 00:00:00 +0000
+++ debian/tests/control 2014-08-11 16:19:22 +0000
@@ -0,0 +1,13 @@
1Tests: make-autopilot make-test
2Depends: autopilot-touch,
3 cmake,
4 libautopilot-qt,
5 libqt5test5,
6 python3-autopilot,
7 qml-module-qttest,
8 qt5-default,
9 qtbase5-dev,
10 qtdeclarative5-dev,
11 qtdeclarative5-dev-tools,
12 ubuntu-ui-toolkit-autopilot
13Restrictions: build-needed
014
=== added file 'debian/tests/make-autopilot'
--- debian/tests/make-autopilot 1970-01-01 00:00:00 +0000
+++ debian/tests/make-autopilot 2014-08-11 16:19:22 +0000
@@ -0,0 +1,2 @@
1#!/bin/sh
2cd obj*; make autopilot
03
=== added file 'debian/tests/make-test'
--- debian/tests/make-test 1970-01-01 00:00:00 +0000
+++ debian/tests/make-test 2014-08-11 16:19:22 +0000
@@ -0,0 +1,2 @@
1#!/bin/sh
2cd obj*; make test
03
=== added file 'debian/ubuntu-clock-app-autopilot.install'
--- debian/ubuntu-clock-app-autopilot.install 1970-01-01 00:00:00 +0000
+++ debian/ubuntu-clock-app-autopilot.install 2014-08-11 16:19:22 +0000
@@ -0,0 +1,1 @@
1/usr/lib/*/dist-packages/ubuntu_clock_app/*
02
=== added file 'debian/ubuntu-clock-app.install'
--- debian/ubuntu-clock-app.install 1970-01-01 00:00:00 +0000
+++ debian/ubuntu-clock-app.install 2014-08-11 16:19:22 +0000
@@ -0,0 +1,2 @@
1usr/lib/*/qt5/qml/ClockApp/*
2usr/share/*
03
=== modified file 'manifest.json'
--- manifest.json 2014-08-06 20:14:02 +0000
+++ manifest.json 2014-08-11 16:19:22 +0000
@@ -4,10 +4,11 @@
4 "framework": "ubuntu-sdk-14.10-dev2",4 "framework": "ubuntu-sdk-14.10-dev2",
5 "architecture": "all",5 "architecture": "all",
6 "title": "Clock Reboot",6 "title": "Clock Reboot",
7 "icon": "clock@30.png",
7 "hooks": {8 "hooks": {
8 "ubuntu-clock-app": {9 "ubuntu-clock-app": {
9 "apparmor": "ubuntu-clock-app.json",10 "apparmor": "ubuntu-clock-app.json",
10 "desktop": "ubuntu-clock-app.desktop"11 "desktop": "share/applications/ubuntu-clock-app.desktop"
11 }12 }
12 },13 },
13 "version": "0.1",14 "version": "0.1",
1415
=== added file 'tests/CMakeLists.txt'
--- tests/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ tests/CMakeLists.txt 2014-08-11 16:19:22 +0000
@@ -0,0 +1,1 @@
1add_subdirectory(autopilot)
02
=== added file 'tests/autopilot/CMakeLists.txt'
--- tests/autopilot/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ tests/autopilot/CMakeLists.txt 2014-08-11 16:19:22 +0000
@@ -0,0 +1,8 @@
1execute_process(COMMAND python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
2 OUTPUT_VARIABLE PYTHON_PACKAGE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
3
4if(INSTALL_TESTS)
5 install(DIRECTORY ${AUTOPILOT_DIR}
6 DESTINATION ${PYTHON_PACKAGE_DIR}
7 )
8endif(INSTALL_TESTS)
09
=== modified file 'tests/autopilot/run' (properties changed: -x to +x)
--- tests/autopilot/run 2014-07-31 16:58:56 +0000
+++ tests/autopilot/run 2014-08-11 16:19:22 +0000
@@ -7,5 +7,7 @@
77
8SCRIPTPATH=`dirname $0`8SCRIPTPATH=`dirname $0`
9pushd ${SCRIPTPATH}9pushd ${SCRIPTPATH}
10autopilot run ubuntu-clock-app10autopilot run ubuntu_clock_app
11retcode=$?
11popd12popd
13exit $retcode
1214
=== modified file 'tests/autopilot/ubuntu_clock_app/emulators.py'
--- tests/autopilot/ubuntu_clock_app/emulators.py 2014-08-08 09:11:06 +0000
+++ tests/autopilot/ubuntu_clock_app/emulators.py 2014-08-11 16:19:22 +0000
@@ -396,7 +396,8 @@
396 raise ClockEmulatorException('Error deleting alarm.')396 raise ClockEmulatorException('Error deleting alarm.')
397397
398398
399class ListItemWithActions(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):399class ListItemWithActions(
400 ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
400401
401 def swipe_to_delete(self):402 def swipe_to_delete(self):
402 x, y, width, height = self.globalRect403 x, y, width, height = self.globalRect
403404
=== modified file 'tests/autopilot/ubuntu_clock_app/tests/__init__.py'
--- tests/autopilot/ubuntu_clock_app/tests/__init__.py 2014-08-08 22:30:20 +0000
+++ tests/autopilot/ubuntu_clock_app/tests/__init__.py 2014-08-11 16:19:22 +0000
@@ -19,6 +19,7 @@
19import os.path19import os.path
20import os20import os
21import shutil21import shutil
22import glob
22import logging23import logging
23import fixtures24import fixtures
2425
@@ -33,6 +34,32 @@
33logger = logging.getLogger(__name__)34logger = logging.getLogger(__name__)
3435
3536
37def find_local_path(what):
38
39 """Depending on which directory we build in, paths might be
40 named differently. This way we find them and don't have to
41 hook into cmake variables.
42
43 """
44 if not what:
45 return None
46 if what.endswith("/"):
47 what = what[:-1]
48 for dirpath, dirnames, filenames in os.walk("../.."):
49 avail_dirs = map(lambda a: os.path.abspath(os.path.join(dirpath, a)),
50 dirnames)
51 match_dirs = filter(lambda a: a.endswith(what), avail_dirs)
52 if match_dirs:
53 return match_dirs[0]
54
55 avail_files = map(lambda a: os.path.abspath(os.path.join(dirpath, a)),
56 filenames)
57 match_files = filter(lambda a: a.endswith(what), avail_files)
58 if match_files:
59 return match_files[0]
60 return None
61
62
36class ClockAppTestCase(base.UbuntuUIToolkitAppTestCase):63class ClockAppTestCase(base.UbuntuUIToolkitAppTestCase):
3764
38 """A common test case class that provides several useful methods for65 """A common test case class that provides several useful methods for
@@ -41,13 +68,14 @@
41 """68 """
4269
43 local_location = os.path.dirname(os.path.dirname(os.getcwd()))70 local_location = os.path.dirname(os.path.dirname(os.getcwd()))
44 local_location_qml = os.path.join(71 local_location_qml = find_local_path("app/ubuntu-clock-app.qml")
45 local_location, 'app/ubuntu-clock-app.qml')72 local_location_backend = find_local_path("backend/")
46 local_location_backend = os.path.join(local_location, 'builddir/backend')73 installed_location_backend = ""
47 installed_location_backend = \74 if glob.glob('/usr/lib/*/qt5/qml/ClockApp'):
48 '/usr/share/ubuntu-clock-app/builddir/backend'75 installed_location_backend = \
76 glob.glob('/usr/lib/*/qt5/qml/ClockApp')[0]
49 installed_location_qml = \77 installed_location_qml = \
50 '/usr/share/ubuntu-clock-app/app/ubuntu-clock-app.qml'78 '/usr/share/ubuntu-clock-app/ubuntu-clock-app.qml'
5179
52 # note this directory could change to com.ubuntu.clock at some point80 # note this directory could change to com.ubuntu.clock at some point
53 sqlite_dir = os.path.expanduser(81 sqlite_dir = os.path.expanduser(
5482
=== modified file 'tests/unit/tst_hellocomponent.qml'
--- tests/unit/tst_hellocomponent.qml 2014-07-31 16:58:56 +0000
+++ tests/unit/tst_hellocomponent.qml 2014-08-11 16:19:22 +0000
@@ -1,7 +1,7 @@
1import QtQuick 2.01import QtQuick 2.0
2import QtTest 1.02import QtTest 1.0
3import Ubuntu.Components 0.13import Ubuntu.Components 0.1
4import "../../components"4import "../../app/components"
55
6// See more details @ http://qt-project.org/doc/qt-5.0/qtquick/qml-testcase.html6// See more details @ http://qt-project.org/doc/qt-5.0/qtquick/qml-testcase.html
77

Subscribers

People subscribed via source and target branches