c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerThe extended testsuite only works with uid=0. It contains of several
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyersubdirectories named "test/TEST-??-*", which are run one by one.
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerTo run the extended testsuite do the following:
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer$ sudo make clean check
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyermake[1]: Entering directory `/mnt/data/harald/git/systemd/test/TEST-01-BASIC'
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerMaking all in .
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerMaking all in po
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerTEST: Basic systemd setup [OK]
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyermake[1]: Leaving directory `/mnt/data/harald/git/systemd/test/TEST-01-BASIC'
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerIf one of the tests fails, then $subdir/test.log contains the log file of
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerTo debug a special testcase of the testsuite do:
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer$ sudo make clean setup run
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerIf you want to log in the testsuite virtual machine, you can specify
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalieradditional kernel command line parameter with $KERNEL_APPEND.
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier$ sudo make KERNEL_APPEND="systemd.unit=multi-user.target" clean setup run
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyeryou can even skip the "clean" and "setup" if you want to run the machine again.
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier$ sudo make KERNEL_APPEND="systemd.unit=multi-user.target" run
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierYou can specify a different kernel and initramfs with $KERNEL_BIN and $INITRD.
61fea35e14d84144e6e2122f5cd247f9c7e6245eEvgeny Vereshchagin(Fedora's or Debian's default kernel path and initramfs are used by default)
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier$ sudo make KERNEL_BIN=/boot/vmlinuz-foo INITRD=/boot/initramfs-bar clean check
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierA script will try to find your QEMU binary. If you want to specify a different
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierone you can use $QEMU_BIN.
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier$ sudo make QEMU_BIN=/path/to/qemu/qemu-kvm clean check