README.testsuite revision 61fea35e14d84144e6e2122f5cd247f9c7e6245e
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald HoyerThe extended testsuite only works with uid=0. It contains of several
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyersubdirectories named "test/TEST-??-*", which are run one by one.
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald HoyerTo run the extended testsuite do the following:
0d6e798a784ef0ba6b95512e4453067b2f84a91aHarald Hoyer$ sudo make clean check
4be4833ece2856e0cacc09f8f8b2c02b320751faMartin Pittmake[1]: Entering directory `/mnt/data/harald/git/systemd/test/TEST-01-BASIC'
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierMaking all in .
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierMaking all in po
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierTEST: Basic systemd setup [OK]
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevaliermake[1]: Leaving directory `/mnt/data/harald/git/systemd/test/TEST-01-BASIC'
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierIf one of the tests fails, then $subdir/test.log contains the log file of
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierTo debug a special testcase of the testsuite do:
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier$ sudo make clean setup run
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierIf 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
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalieryou 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.
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier(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