linux/tools/perf/tests
Arnaldo Carvalho de Melo 2ae828786c perf test: Allow skipping tests
Sometimes a test is problematic for some reason and one wants to skip it,
for instance:

[root@sandy ~]# perf test
   1: vmlinux symtab matches kallsyms                        : Ok
   2: detect open syscall event                              : Ok
   3: detect open syscall event on all cpus                  : Ok
   4: read samples using the mmap interface                  : Ok
   5: parse events tests                                     :  Warning: bad op token {
    Warning: bad op token {
    Warning: bad op token {
    Warning: bad op token {
    Warning: bad op token {
    Warning: function is_writable_pte not defined
  Segmentation fault (core dumped)

So now we can use -s/--skip while the problematic tests are being fixed,
allowing us to test all the other entries:

  [root@sandy ~]# perf test -s 5
   1: vmlinux symtab matches kallsyms                        : Ok
   2: detect open syscall event                              : Ok
   3: detect open syscall event on all cpus                  : Ok
   4: read samples using the mmap interface                  : Ok
   5: parse events tests                                     : Skip (user override)
   6: x86 rdpmc test                                         : Ok
   7: Validate PERF_RECORD_* events & perf_sample fields     : Ok
   8: Test perf pmu format parsing                           : Ok
   9: Test dso data interface                                : Ok
  10: roundtrip evsel->name check                            : Ok
  11: Check parsing of sched tracepoints fields              : Ok
  12: Generate and check syscalls:sys_enter_open event fields: Ok
  13: struct perf_event_attr setup                           : Ok
  14: Test matching and linking mutliple hists               : Ok
  15: Try 'use perf' in python, checking link problems       : Ok
  [root@sandy ~]#

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-klzd8p57jzdryafqkmlppcb1@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-01-24 16:40:53 -03:00
..
attr perf test: Remove leftover temp file left by one of the attr tests 2013-01-24 16:40:07 -03:00
attr.c perf tests: Check python path on attr and binding test 2013-01-24 16:40:10 -03:00
attr.py perf tests: Adjust some message log levels to help diagnosing problems in attr tests 2013-01-24 16:40:08 -03:00
builtin-test.c perf test: Allow skipping tests 2013-01-24 16:40:53 -03:00
dso-data.c
evsel-roundtrip-name.c perf tools: Remove unused 'unset' parameter from parse_events 2013-01-24 16:40:40 -03:00
evsel-tp-sched.c
hists_link.c perf tools: Remove unused 'unset' parameter from parse_events 2013-01-24 16:40:40 -03:00
mmap-basic.c perf evsel: Introduce method to request IDs be used 2012-12-10 15:21:30 -03:00
open-syscall-all-cpus.c perf test: Use perf_evsel__newtp constructor in the tracepoint tests 2012-12-10 15:11:43 -03:00
open-syscall-tp-fields.c
open-syscall.c perf test: Use perf_evsel__newtp constructor in the tracepoint tests 2012-12-10 15:11:43 -03:00
parse-events.c perf tools: Fix usage of __ in event parsing struct names 2013-01-24 16:40:51 -03:00
perf-record.c perf evlist: Set the leader in the perf_evlist__config method 2012-12-11 17:19:01 -03:00
pmu.c perf tests: Use ARRAY_SIZE() were applicable 2013-01-24 16:40:51 -03:00
python-use.c perf tests: Check python path on attr and binding test 2013-01-24 16:40:10 -03:00
rdpmc.c
tests.h perf tests: Add return states enum for tests 2013-01-24 16:40:14 -03:00
vmlinux-kallsyms.c perf tests: Don't fail if a matching vmlinux isn't found, skip that test 2013-01-24 16:40:14 -03:00