Merge lp:~fginther/ubuntu-test-cases/click-testing into lp:ubuntu-test-cases/touch

Proposed by Francis Ginther
Status: Superseded
Proposed branch: lp:~fginther/ubuntu-test-cases/click-testing
Merge into: lp:ubuntu-test-cases/touch
Diff against target: 51 lines (+44/-0)
1 file modified
README-cli.rst (+44/-0)
To merge this branch: bzr merge lp:~fginther/ubuntu-test-cases/click-testing
Reviewer Review Type Date Requested Status
Ubuntu Test Case Developers Pending
Review via email: mp+251461@code.launchpad.net

This proposal has been superseded by a proposal from 2015-03-02.

Commit message

Add README documentation for testing a modified click app.

Description of the change

Add README documentation for testing a modified click app.

To post a comment you must log in.
Revision history for this message
Francis Ginther (fginther) wrote :

I've also been playing with a modified version oh phablet-click-test-setup (from phablet-tools) which takes care of installation of the test sources and would allow removing the following:

33 +The above phablet-click-test-setup command will install the standard test
34 +dependencies and the click application's test sources as specified in the
35 +manifest. This is usually the application's trunk branch. To override the test
36 +sources with local changes, replace the test sources that were copied to the
37 +device. This example assumes the application code is checked out under the
38 +'dropping-letters' directory with the test sources under 'tests/autopilot'::
39 +
40 + adb shell rm -rf /home/phablet/autopilot/dropping_letters_app
41 + adb push dropping-letters/tests/autopilot \
42 + /home/phablet/autopilot

Revision history for this message
Paul Larson (pwlars) wrote :

is pkcon preferred over click install?

Revision history for this message
Francis Ginther (fginther) wrote :

> is pkcon preferred over click install?

I've been unable to find info in any of the wiki's but the 'click' command provides this:
"
phablet@ubuntu-phablet:~$ click install --help
Usage: click install [options] PACKAGE-FILE

This is a low-level tool; to install a package as an ordinary user
you should generally use "pkcon install-local PACKAGE-FILE"
instead.
"

Will keep looking.

Revision history for this message
Colin Watson (cjwatson) wrote :

The click documentation should be considered authoritative on this.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'README-cli.rst'
--- README-cli.rst 2014-11-10 19:28:56 +0000
+++ README-cli.rst 2015-03-02 14:56:20 +0000
@@ -96,3 +96,47 @@
96Then execute the following script::96Then execute the following script::
9797
98 ./scripts/run-mp.sh98 ./scripts/run-mp.sh
99
100Running Tests for a Modified Click Application
101----------------------------------------------
102
103First privision the device with the desired image. To get the very latest::
104
105 ./scripts/provision.sh -w
106
107Alternatively, to install the latest ubuntu-rtm image::
108
109 export IMAGE_OPT="--bootstrap --developer-mode --channel=ubuntu-touch/ubuntu-rtm/14.09-proposed"
110 ./scripts/provision.sh -w
111
112Once the image has been provisioned, install the click app to test.
113The dropping-letters application is used in this example::
114
115 adb push com.ubuntu.dropping-letters_0.1.2.2.67_all.click /tmp
116 adb shell pkcon --allow-untrusted install-local \
117 /tmp/com.ubuntu.dropping-letters_0.1.2.2.67_all.click
118
119Now install the test sources ('--wipe' will remove any previously installed
120test sources)::
121
122 phablet-click-test-setup --wipe --click com.ubuntu.dropping-letters
123
124The above phablet-click-test-setup command will install the standard test
125dependencies and the click application's test sources as specified in the
126manifest. This is usually the application's trunk branch. To override the test
127sources with local changes, replace the test sources that were copied to the
128device. This example assumes the application code is checked out under the
129'dropping-letters' directory with the test sources under 'tests/autopilot'::
130
131 adb shell rm -rf /home/phablet/autopilot/dropping_letters_app
132 adb push dropping-letters/tests/autopilot \
133 /home/phablet/autopilot
134
135Finally, run the application tests::
136
137 ./scripts/run-autopilot-tests.sh -a dropping_letters_app
138
139The test results are available under::
140
141 clientlogs/dropping_letters_app/test_results.xml
142

Subscribers

People subscribed via source and target branches