File: README

package info (click to toggle)
linaro-image-tools 2016.05-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,180 kB
  • sloc: python: 15,832; sh: 393; makefile: 6
file content (67 lines) | stat: -rw-r--r-- 1,798 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
This project contains a collection of tools to help creating Linaro bootable
images to be used in development boards.

= Running linaro-media-create =

To run linaro-media-create you'll need to make sure the following packages are
installed:

  - parted
  - dosfstools
  - u-boot-tools or uboot-mkimage
  - python-argparse
  - python-dbus
  - python-debian >= 0.1.16ubuntu1
  - python-parted
  - qemu-user-static >= 0.13.0 (only if you're running on x86)
  - btrfs-tools
  - command-not-found
  - python-yaml

= Running tests =

Before running any tests you need to install the following packages:

  - testrepository
  - python-testtools >= 0.9.12
     (available at https://launchpad.net/~linaro-maintainers/+archive/tools)
  - python-debian >= 0.1.16ubuntu1
  - python-argparse
  - dpkg-dev
  - python-parted
  - python-dbus (and dbus, udisks)
  - python-apt
  - qemu-kvm
  - sfdisk (from util-linux)
  - apt-utils
  - pep8
  - python-mock
  - python-commandnotfound (as of Ubuntu 12.10)

Also consider installing pyflakes, which is optional but will enable more
tests.

Some of the packages above require fixes, which are as of Ubuntu 12.04 are
not yet in upstream, so using Linaro PPA is required:

  $ sudo add-apt-repository ppa:linaro-maintainers/tools

Then, you can install all packages listed above in one go with the following
command:

  $ sudo apt-get install testrepository python-testtools python-debian \
        python-argparse dpkg-dev python-parted dbus udisks python-dbus \
        python-apt qemu-kvm util-linux apt-utils pep8 pyflakes \
        python-commandnotfound

To initialized testsuite, run the following command:

  $ testr init

After that you can run the whole test suite with:

  $ testr run

If you want to learn more about testrepository:

  $ testr quickstart