README.testsuite revision c452e3725497b873bce9289d2858fb8baf367bf9
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 Hoyer
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerTo run the extended testsuite do the following:
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer$ make all
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer$ cd test
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer$ sudo make clean check
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer...
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyermake[1]: Entering directory `/mnt/data/harald/git/systemd/test/TEST-01-BASIC'
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerMaking all in .
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerMaking all in po
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerMaking all in docs/libudev
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerMaking all in docs/gudev
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerTEST: Basic systemd setup [OK]
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyermake[1]: Leaving directory `/mnt/data/harald/git/systemd/test/TEST-01-BASIC'
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer...
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerIf one of the tests fails, then $subdir/test.log contains the log file of
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyerthe test.
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerTo debug a special testcase of the testsuite do:
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer$ make all
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer$ cd test/TEST-01-BASIC
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer$ sudo make clean setup run
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer
c452e3725497b873bce9289d2858fb8baf367bf9Harald HoyerIf you want to log in the testsuite virtual machine, you can specify
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyeradditional kernel command line parameter with $DEBUGFAIL.
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer$ sudo sh -c 'DEBUGFAIL="systemd.unit=multi-user.target" make clean setup run'
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyeryou can even skip the "clean" and "setup" if you want to run the machine again.
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer
c452e3725497b873bce9289d2858fb8baf367bf9Harald Hoyer$ sudo sh -c 'DEBUGFAIL="systemd.unit=multi-user.target" make run'