Name | Date | Size | |
---|---|---|---|
.. | 2016-02-10 19:19:08 | 44 | |
.gitignore | 2013-01-28 03:54:49 | 33 | |
a.service | 2011-12-31 18:06:56 | 88 | |
b.service | 2011-12-31 18:06:56 | 68 | |
basic.target | 2018-03-15 07:06:54 | 879 | |
bus-policy | 2014-11-26 20:58:34 | 9 | |
c.service | 2011-12-31 18:06:56 | 71 | |
d.service | 2011-12-31 18:06:56 | 111 | |
daughter.service | 2013-11-22 02:22:47 | 99 | |
e.service | 2011-12-31 18:06:56 | 108 | |
end.service | 2015-11-10 19:01:15 | 219 | |
f.service | 2011-12-31 18:06:56 | 52 | |
g.service | 2011-12-31 18:06:56 | 72 | |
grandchild.service | 2014-02-18 23:55:41 | 106 | |
h.service | 2011-12-31 18:06:56 | 68 | |
hello-after-sleep.target | 2013-01-25 22:29:56 | 130 | |
hello.service | 2013-01-25 22:29:56 | 76 | |
loopy.service | 2014-08-08 02:42:58 | 30 | |
loopy.service.d | 2014-08-08 02:42:58 | 3 | |
loopy2.service | 2018-03-15 07:05:46 | 30 | |
loopy3.service | 2014-08-08 02:46:49 | 63 | |
loopy4.service | 2018-03-15 07:05:46 | 63 | |
Makefile | 2012-05-22 16:54:54 | 398 | |
mocks | 2015-02-18 16:33:46 | 3 | |
networkd-test.py | 2015-11-27 11:53:07 | 14.3 KiB | |
parent-deep.slice | 2014-02-18 23:55:41 | 63 | |
parent.slice | 2013-11-22 02:22:47 | 59 | |
README.testsuite | 2015-11-20 01:10:12 | 1.4 KiB | |
rule-syntax-check.py | 2015-06-30 19:57:40 | 2.6 KiB | |
sched_idle_bad.service | 2012-11-15 16:16:45 | 102 | |
sched_idle_ok.service | 2012-11-15 16:16:45 | 97 | |
sched_rr_bad.service | 2012-11-15 16:16:45 | 149 | |
sched_rr_change.service | 2012-11-15 16:16:45 | 158 | |
sched_rr_ok.service | 2012-11-15 16:16:45 | 93 | |
shutdown.target | 2018-03-15 07:06:54 | 402 | |
sleep.service | 2013-01-25 22:29:56 | 86 | |
sockets.target | 2018-03-15 07:06:54 | 356 | |
son.service | 2013-11-22 02:22:47 | 108 | |
splash.bmp | 2015-02-17 14:36:59 | 282.5 KiB | |
sys.tar.xz | 2016-02-08 12:23:18 | 255.3 KiB | |
sysinit.target | 2018-03-15 07:06:54 | 518 | |
sysv-generator-test.py | 2016-01-21 00:53:14 | 17.1 KiB | |
TEST-01-BASIC | 2016-02-10 19:19:08 | 4 | |
TEST-02-CRYPTSETUP | 2016-01-18 04:56:51 | 4 | |
TEST-03-JOBS | 2016-02-05 11:38:58 | 5 | |
TEST-04-JOURNAL | 2016-02-05 11:38:58 | 5 | |
TEST-05-RLIMITS | 2016-02-05 11:38:58 | 5 | |
TEST-06-SELINUX | 2016-02-05 11:38:58 | 7 | |
TEST-07-ISSUE-1981 | 2016-02-10 19:19:08 | 5 | |
test-efi-create-disk.sh | 2015-02-26 19:51:08 | 1.7 KiB | |
test-execute | 2016-01-11 23:14:50 | 45 | |
test-functions | 2016-02-10 19:19:08 | 38.4 KiB | |
test-path | 2015-10-31 15:07:19 | 20 | |
testsuite.target | 2013-01-25 22:29:56 | 128 | |
timers.target | 2018-03-15 07:06:54 | 405 | |
udev-test.pl | 2016-02-08 12:23:18 | 64.9 KiB | |
unstoppable.service | 2015-11-12 04:24:10 | 143 |
README.testsuite
The extended testsuite only works with uid=0. It contains of several
subdirectories named "test/TEST-??-*", which are run one by one.
To run the extended testsuite do the following:
$ make all
$ cd test
$ sudo make clean check
...
make[1]: Entering directory `/mnt/data/harald/git/systemd/test/TEST-01-BASIC'
Making all in .
Making all in po
TEST: Basic systemd setup [OK]
make[1]: Leaving directory `/mnt/data/harald/git/systemd/test/TEST-01-BASIC'
...
If one of the tests fails, then $subdir/test.log contains the log file of
the test.
To debug a special testcase of the testsuite do:
$ make all
$ cd test/TEST-01-BASIC
$ sudo make clean setup run
QEMU
====
If you want to log in the testsuite virtual machine, you can specify
additional kernel command line parameter with $KERNEL_APPEND.
$ sudo make KERNEL_APPEND="systemd.unit=multi-user.target" clean setup run
you can even skip the "clean" and "setup" if you want to run the machine again.
$ sudo make KERNEL_APPEND="systemd.unit=multi-user.target" run
You can specify a different kernel and initramfs with $KERNEL_BIN and $INITRD.
(Fedora's or Debian's default kernel path and initramfs are used by default)
$ sudo make KERNEL_BIN=/boot/vmlinuz-foo INITRD=/boot/initramfs-bar clean check
A script will try to find your QEMU binary. If you want to specify a different
one you can use $QEMU_BIN.
$ sudo make QEMU_BIN=/path/to/qemu/qemu-kvm clean check