| 1 |
base-installer regression test interface |
| 2 |
======================================== |
| 3 |
|
| 4 |
This test suite attempts to test base-installer's per-architecture kernel |
| 5 |
selection, using a few shims. Run it using 'make test' in the |
| 6 |
base-installer/kernel/ directory or './runtests <architecture>' in the |
| 7 |
base-installer/kernel/tests/ directory. |
| 8 |
|
| 9 |
Individual tests consist of a .test file in the appropriate per-architecture |
| 10 |
subdirectory, plus optionally some auxiliary files. The .test file consists |
| 11 |
of a series of directives, one per line. All lists are space-separated, and |
| 12 |
all kernel versions are the names of kernel packages. The available |
| 13 |
directives are as follows: |
| 14 |
|
| 15 |
subarch <subarchitecture> |
| 16 |
The subarchitecture, if relevant: e.g. powermac_newworld. |
| 17 |
|
| 18 |
cpuinfo <cpuinfo file> |
| 19 |
Path (relative to the .test file) to a file to be used instead of |
| 20 |
/proc/cpuinfo while running this test. If not specified, $CPUINFO will |
| 21 |
be unset. |
| 22 |
|
| 23 |
numcpus <number of processors> |
| 24 |
The number of processors in the machine to emulate for the test. |
| 25 |
Only needed on arches that expect a /var/numcpus file and don't have |
| 26 |
the info in /proc/cpuinfo. |
| 27 |
|
| 28 |
machine <machine hardware name> |
| 29 |
The machine hardware name, as returned by 'uname -m'. |
| 30 |
|
| 31 |
majors <kernel major versions> |
| 32 |
The kernel major versions to test: e.g. 2.6. |
| 33 |
|
| 34 |
flavour <arch_get_kernel_flavour output> |
| 35 |
The expected kernel flavour for this machine. |
| 36 |
|
| 37 |
kernel-2.6 <kernel version> |
| 38 |
The "best" 2.6 kernel versions for this machine, as expected to be |
| 39 |
returned by arch_get_kernel. |
| 40 |
|
| 41 |
usable <kernel versions> |
| 42 |
A list of kernel versions that are expected to be usable on this |
| 43 |
machine. |
| 44 |
|
| 45 |
unusable <kernel versions> |
| 46 |
A list of kernel versions that are expected to be unusable on this |
| 47 |
machine. |
| 48 |
|
| 49 |
env <name> <value> |
| 50 |
Any environment variable you want to set. |
| 51 |
|
| 52 |
Please add to the test suite as appropriate. |