]>
Commit | Line | Data |
---|---|---|
c452e372 HH |
1 | The extended testsuite only works with uid=0. It contains of several |
2 | subdirectories named "test/TEST-??-*", which are run one by one. | |
3 | ||
4 | To run the extended testsuite do the following: | |
5 | ||
04e599b1 | 6 | $ make all # Avoid the "sudo make" below building anything as root |
c452e372 HH |
7 | $ cd test |
8 | $ sudo make clean check | |
9 | ... | |
10 | make[1]: Entering directory `/mnt/data/harald/git/systemd/test/TEST-01-BASIC' | |
11 | Making all in . | |
12 | Making all in po | |
c452e372 HH |
13 | TEST: Basic systemd setup [OK] |
14 | make[1]: Leaving directory `/mnt/data/harald/git/systemd/test/TEST-01-BASIC' | |
15 | ... | |
16 | ||
17 | If one of the tests fails, then $subdir/test.log contains the log file of | |
18 | the test. | |
19 | ||
20 | To debug a special testcase of the testsuite do: | |
21 | ||
22 | $ make all | |
23 | $ cd test/TEST-01-BASIC | |
24 | $ sudo make clean setup run | |
25 | ||
c6a77179 RC |
26 | QEMU |
27 | ==== | |
28 | ||
c452e372 | 29 | If you want to log in the testsuite virtual machine, you can specify |
c6a77179 | 30 | additional kernel command line parameter with $KERNEL_APPEND. |
c452e372 | 31 | |
c6a77179 | 32 | $ sudo make KERNEL_APPEND="systemd.unit=multi-user.target" clean setup run |
c452e372 HH |
33 | |
34 | you can even skip the "clean" and "setup" if you want to run the machine again. | |
35 | ||
c6a77179 RC |
36 | $ sudo make KERNEL_APPEND="systemd.unit=multi-user.target" run |
37 | ||
38 | You can specify a different kernel and initramfs with $KERNEL_BIN and $INITRD. | |
61fea35e | 39 | (Fedora's or Debian's default kernel path and initramfs are used by default) |
c6a77179 RC |
40 | |
41 | $ sudo make KERNEL_BIN=/boot/vmlinuz-foo INITRD=/boot/initramfs-bar clean check | |
42 | ||
43 | A script will try to find your QEMU binary. If you want to specify a different | |
44 | one you can use $QEMU_BIN. | |
45 | ||
46 | $ sudo make QEMU_BIN=/path/to/qemu/qemu-kvm clean check |