Skip to content

Make more tests skip rather than fail

Ian Rogers linux-perf-users lkml 2 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 1 replyApplied
  2. v17 patches 12 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8perf test: Skip reason for suites with 1 testtools/perf/tests/builtin-test.c+3 -30 replies
2/8perf test: Use skip in vmlinux kallsymstools/perf/tests/vmlinux-kallsyms.c+7 -50 replies
3/8perf test: Use skip in openat syscalltools/perf/tests/openat-syscall-all-cpus.c tools/perf/tests/openat-syscall.c+34 -90 replies
4/8perf test: Basic mmap use skiptools/perf/tests/mmap-basic.c+16 -20 replies
5/8perf test: Parse events tidy terms_testtools/perf/tests/parse-events.c+5 -70 replies
6/8perf test: Parse events tidy evlist_testtools/perf/tests/parse-events.c+84 -870 replies
7/8perf test: Parse events break apart teststools/perf/tests/parse-events.c+177 -1340 replies
8/8perf test: Use skip in PERF_RECORD_*tools/perf/tests/perf-record.c+16 -20 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchJohn GarryNamhyung Kim
1/8R-b A-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] Make more tests skip rather than fail

A long standing niggle has been that tests that cannot pass are marked as failing rather than skip. John Garry mentioned a similar concern in [1]. These changes fix this behavior so that as root, or not, at least the first 10 tests are passing or skipping.

[1] https://lore.kernel.org/lkml/[email protected]/

v2. Updates reviewed-by and acked-by. It addresses review comments
from Namhyung Kim <[email protected]>. An extra fix is now included for PERF_RECORD_* which can fail as a user because of perf_event_paranoid.

Ian Rogers (8):
perf test: Skip reason for suites with 1 test
perf test: Use skip in vmlinux kallsyms
perf test: Use skip in openat syscall
perf test: Basic mmap use skip
perf test: Parse events tidy terms_test
perf test: Parse events tidy evlist_test
perf test: Parse events break apart tests
perf test: Use skip in PERF_RECORD_*

 tools/perf/tests/builtin-test.c            |   6 +-
 tools/perf/tests/mmap-basic.c              |  18 +-
 tools/perf/tests/openat-syscall-all-cpus.c |  23 +-
 tools/perf/tests/openat-syscall.c          |  20 +-
 tools/perf/tests/parse-events.c            | 492 +++++++++++----------
 tools/perf/tests/perf-record.c             |  18 +-
 tools/perf/tests/vmlinux-kallsyms.c        |  12 +-
 7 files changed, 341 insertions(+), 248 deletions(-)
Signature · 1 line
2.36.0.550.gb090851708-goog