README.testsuite revision c452e3725497b873bce9289d2858fb8baf367bf9
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart PoetteringThe extended testsuite only works with uid=0. It contains of several
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poetteringsubdirectories named "test/TEST-??-*", which are run one by one.
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart PoetteringTo run the extended testsuite do the following:
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering$ make all
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering$ cd test
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering$ sudo make clean check
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering...
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poetteringmake[1]: Entering directory `/mnt/data/harald/git/systemd/test/TEST-01-BASIC'
eea1aadb5bb3fc121e8f66332249d05e5437debcDavid HerrmannMaking all in .
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart PoetteringMaking all in po
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart PoetteringMaking all in docs/libudev
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart PoetteringMaking all in docs/gudev
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart PoetteringTEST: Basic systemd setup [OK]
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poetteringmake[1]: Leaving directory `/mnt/data/harald/git/systemd/test/TEST-01-BASIC'
da625e4b80ba8b03e68ce1782753acd34cf19bd5Ronny Chevalier...
da625e4b80ba8b03e68ce1782753acd34cf19bd5Ronny Chevalier
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart PoetteringIf one of the tests fails, then $subdir/test.log contains the log file of
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poetteringthe test.
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering
b5a223bfcf2ebcf374973b29870a5e80fb42b8beZbigniew Jędrzejewski-SzmekTo debug a special testcase of the testsuite do:
b5a223bfcf2ebcf374973b29870a5e80fb42b8beZbigniew Jędrzejewski-Szmek
b5a223bfcf2ebcf374973b29870a5e80fb42b8beZbigniew Jędrzejewski-Szmek$ make all
b5a223bfcf2ebcf374973b29870a5e80fb42b8beZbigniew Jędrzejewski-Szmek$ cd test/TEST-01-BASIC
7b4d7cc08283e5485dcfa49ffdf1915de1d5e81bKay Sievers$ sudo make clean setup run
b5a223bfcf2ebcf374973b29870a5e80fb42b8beZbigniew Jędrzejewski-Szmek
89ffcd2ad5bf87866314e96c4179ba622851cd6eLennart PoetteringIf you want to log in the testsuite virtual machine, you can specify
b5a223bfcf2ebcf374973b29870a5e80fb42b8beZbigniew Jędrzejewski-Szmekadditional kernel command line parameter with $DEBUGFAIL.
b5a223bfcf2ebcf374973b29870a5e80fb42b8beZbigniew Jędrzejewski-Szmek
f4bab1690ebb7bb01ea2d89f92bffd26c04b61eeLennart Poettering$ sudo sh -c 'DEBUGFAIL="systemd.unit=multi-user.target" make clean setup run'
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poetteringyou can even skip the "clean" and "setup" if you want to run the machine again.
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering$ sudo sh -c 'DEBUGFAIL="systemd.unit=multi-user.target" make run'
b5a223bfcf2ebcf374973b29870a5e80fb42b8beZbigniew Jędrzejewski-Szmek