-
Notifications
You must be signed in to change notification settings - Fork 0
ClientQuickStart
The autotest client has few requirements. Make sure you have python 2.4 or later installed. Also, it is a good idea to try things in a VM or test machine you don't care about, for safety.
Download the client wherever you see fit:
git clone --recursive git://github.com/autotest/autotest.git cd autotest
Run some simple tests, such our sleeptest, which only sleeps for a given amount of seconds (our favorite autotest sanity testing). From the autotest directory (i.e. /usr/local/autotest/client):
client/autotest-local --verbose run sleeptest
To run any individual test:
client/autotest-local run <testname>
You can also run tests by providing the control file
client/autotest-local tests/sleeptest/control
Some tests may require that you run them as root.
In case you run the client as root, then switch back to a regular user, some important directories will be owned by root and the next run will fail. If that happens, you can remove the directories:
sudo rm -rf client/tmp sudo rm -rf client/results
You might also check the control files inside the samples directory. The control file control.kbuild_and_tests will download a kernel, compile it, reboot the machine, so execute it on a VM or test machine:
client/autotest-local --verbose client/samples/control.kbuild_and_tests