Running systemtap tests

William Cohen wcohen@redhat.com
Thu Sep 29 20:11:00 GMT 2005


With the develop of systemtap progressing people would like to check to 
see what the current state of SystemTap is on their local system. There 
are two repositories for tests. One set of tests in the systemtap src 
module in the cvs repository; these tests check operations of translator 
but do not install and run on the system. The other set of tests is in 
the tests module in the cvs repository; this set of tests build and 
instrument the kernel.

Running the tests module

1) check out the tests

cvs -d :pserver:anoncvs@sources.redhat.com:/cvs/systemtap login
{enter "anoncvs" as the password}
cvs -d :pserver:anoncvs@sources.redhat.com:/cvs/systemtap co tests

2) cd tests/testsuite

get into the correct directory

3)  runtest --tool=systemtap

The tests need dejagnu and expect installed on the machine to run. You 
will need to either have sudoer set up to give the account root access 
or run the tests as root because the tests install and remove modules.

You should see the tests listed on the screen as they are run. At the 
end their will be a summary of the tests that passed and failed.


Running the tests in the src module

Download the src module. Configure and build systemtap as you normally 
do. Use the following command in the build directory:

make check


-Will



More information about the Systemtap mailing list