~ppa-smoketest-dev/ppa-smoketest/trunk

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
*********************
PPA Smoketest Scripts
*********************

These scripts help you tell whether the software in a ppa is in an
installable/shippable state, and in particular whether interdependent
packages are simultaneously installable. 

This project is copyright (C) 2009 Canonical Ltd.

How it works
************

ppa-smoketest uses schroot to provide an isolated, reproducible
environment where it can install and test the packages from the ppa.

Configuration
*************

(These should be separated for easy configuration).

* Platforms to test, specified as the names of schroot environments.
* PPAs to test, and their keys.
* Packages to install from those PPAs.


Setting up schroots
*******************

Before using this script you need to create schroot environments in
which to test.  Basically:

* create a directory
* run ``debootstrap`` to install Ubuntu into it
* tar it up
* add an schroot configuration section like this::

    [karmic-ppa-test]
    type=file
    description=Ubuntu 9.10 Karmic (for testing bzr ppa)
    users=mbp
    root-users=mbp
    source-root-users=mbp
    file=/home/chroot/karmic-ppa-test.tar.gz
    run-setup-scripts=true
    run-exec-scripts=true


Future work
***********

* Automatically try to install all packages from the PPA unless
  configured otherwise?  I'm not sure how to get that list but obviously
  the data is there.

* Split out the configuration from the script itself.