Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[485655]: testsuite / README Maximize Restore History

Download this file

README    58 lines (37 with data), 1.9 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
This testsuite directory contains a simple testsuite to check the
functionality of OProfile on the machine. The testsuite supports testing
the previous user interface using opcontrol and the new operf interface.

The testsuite consists of several workloads.  Each workload is run using
an architecture specific list of event sets.  The OProfile report for
each workload run is then checked to make sure the expected symbols that
are specific to that workload are found in the profile report.


Running the opcontrol OProfile testsuite requires the following:

-Superuser privileges
-The dejagnu and expect packages are installed
-The OProfile commands to be on the PATH

The opcontrol tests are run by being in this directory and running the
following command:

runtest --tool oprofile-opcontrol


The system-wide operf OProfile testsuite requires the following:

-Superuser privileges
-The dejagnu and expect packages are installed
-The OProfile commands to be on the PATH

The system-wide operf tests are run by being in this directory and running
the following command:

runtest --tool oprofile-operf


To run both oprontrol and operf testsuites (provided the requirements for
both are met), use the command

runtest --tool oprofile


The tests will run and at the end should print out the number of tests
that passed and failed. Ideally, there should be no failures listed,
only "# of expected passes".

The testsuite is flexible and should run on a variety of different
architectures without change, but there may be some architectures
which are not yet included in the testsuite.

The testsuite suite is not a exhaustive test of all the options and
features of OProfile. It is designed to automate the simple smoke
tests that people commonly do to make sure that nothing is "horribly
wrong" and that the basic functionality works.

Comments about and additions to the testsuite infrastructure are
appreciated.

-Will