Merge lp:~pfalcon/linaro-image-tools/readme-tests into lp:linaro-image-tools/11.11

Proposed by Paul Sokolovsky
Status: Merged
Approved by: James Tunnicliffe
Approved revision: 553
Merged at revision: 552
Proposed branch: lp:~pfalcon/linaro-image-tools/readme-tests
Merge into: lp:linaro-image-tools/11.11
Diff against target: 35 lines (+16/-3)
1 file modified
README (+16/-3)
To merge this branch: bzr merge lp:~pfalcon/linaro-image-tools/readme-tests
Reviewer Review Type Date Requested Status
James Tunnicliffe (community) Approve
Linaro Infrastructure Pending
Review via email: mp+121435@code.launchpad.net

Description of the change

See commit message and associated bug.

To post a comment you must log in.
Revision history for this message
Loïc Minier (lool) wrote :

On Mon, Aug 27, 2012, Paul Sokolovsky wrote:
> - - python-dbus
> + - python-dbus (and dbus, udisks)

dbus and udisks should be optional; python-dbus is required to check
whether dbus is running, and lit will try talking to udisks over dbus if
it's there, but if not it should continue gracefully.

> - - sfdisk
> + - sfdisk (from util-linux)

Hmm not sure how to capture this; we really want to list which commands
are needed for other distros, but under Debian or Ubuntu this is
guaranteed to be installed so doesn't beed to be listed.

> + python-argparse dpkg-dev python-parted dbus udisks python-dbus python-apt \

More than 79 chars?

--
Loïc Minier

552. By Paul Sokolovsky

Wrap in 79 chars.

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

On Mon, 27 Aug 2012 15:25:23 -0000
Loïc Minier <email address hidden> wrote:

I should emphasize that this patch updates README section related only
to *test* (testsuite) dependencies, so should be looked at as such.

> On Mon, Aug 27, 2012, Paul Sokolovsky wrote:
> > - - python-dbus
> > + - python-dbus (and dbus, udisks)
>
> dbus and udisks should be optional; python-dbus is required to check
> whether dbus is running, and lit will try talking to udisks over dbus
> if it's there, but if not it should continue gracefully.

These are not optional *for testing*, their lack leads to testcases
failure, tested on ec2 instance (with server distro and thus lacking
dbus and friends by default).

>
> > - - sfdisk
> > + - sfdisk (from util-linux)
>
> Hmm not sure how to capture this; we really want to list which
> commands are needed for other distros, but under Debian or Ubuntu
> this is guaranteed to be installed so doesn't beed to be listed.

I wanted to get a single command line which you can run on supported
development system (ubuntu) and get all dependencies installed. There's
no such package as "sfdisk". And making a choice between concealing a
dependency and making apt-get report "already installed", I chose
latter ;-).

>
> > + python-argparse dpkg-dev python-parted dbus udisks
> > python-dbus python-apt \
>
> More than 79 chars?

Fixed.

--
Best Regards,
Paul

Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog

553. By Paul Sokolovsky

Using ppa:linaro-maintainers/tools is still required on 12.04.

Using pristine packages leads to weird testr errors, see
https://bugs.launchpad.net/linaro-image-tools/+bug/1042208

Revision history for this message
James Tunnicliffe (dooferlad) wrote :

Thanks for tidying this up Paul. The README is nice and clear now.

review: Approve
Revision history for this message
Loïc Minier (lool) wrote :

On Tue, Aug 28, 2012, Paul Sokolovsky wrote:
> I should emphasize that this patch updates README section related only
> to *test* (testsuite) dependencies, so should be looked at as such.

ah right, indeed

--
Loïc Minier

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README'
2--- README 2012-06-20 12:49:22 +0000
3+++ README 2012-08-28 10:19:21 +0000
4@@ -29,16 +29,29 @@
5 - python-argparse
6 - dpkg-dev
7 - python-parted
8- - python-dbus
9+ - python-dbus (and dbus, udisks)
10 - python-apt
11 - qemu-kvm
12- - sfdisk
13+ - sfdisk (from util-linux)
14 - apt-utils
15+ - pep8
16
17 Also consider installing pyflakes, which is optional but will enable more
18 tests.
19
20-And run the following command:
21+Some of the packages above require fixes, which are as of Ubuntu 12.04 are
22+not yet in upstream, so using Linaro PPA is required:
23+
24+ $ sudo add-apt-repository ppa:linaro-maintainers/tools
25+
26+Then, you can install all packages listed above in one go with the following
27+command:
28+
29+ $ sudo apt-get install testrepository python-testtools python-debian \
30+ python-argparse dpkg-dev python-parted dbus udisks python-dbus \
31+ python-apt qemu-kvm util-linux apt-utils pep8 pyflakes
32+
33+To initialized testsuite, run the following command:
34
35 $ testr init
36

Subscribers

People subscribed via source and target branches