Skip to content

Introduce structure for shell tests

Jakub Brnak linux-perf-users 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest7 patches 0 repliesNew
  2. v67 patches 5 repliesSuperseded
  3. v57 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v47 patches10 repliesApplied
v37 patches12 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7perf tests: Create a structure for shell teststools/perf/tests/tests-scripts.c tools/perf/tests/tests-scripts.h+277 -470 replies
2/7perf test: Provide setup for the shell test suitetools/perf/tests/builtin-test.c tools/perf/tests/tests-scripts.c tools/perf/tests/tests-scripts.h +1 more+77 -130 replies
3/7perf test: Add empty setup for base_probetools/perf/tests/shell/base_probe/setup.sh+13 -00 replies
4/7perf test: Introduce storing logs for shell teststools/perf/tests/builtin-test.c tools/perf/tests/tests-scripts.c tools/perf/tests/tests-scripts.h+136 -40 replies
5/7perf test: Format log directories for shell teststools/perf/tests/builtin-test.c+13 -10 replies
6/7perf test: Remove perftool driverstools/perf/tests/shell/perftool-testsuite_probe.sh tools/perf/tests/shell/perftool-testsuite_report.sh tools/perf/tests/tests-scripts.c+0 -500 replies
7/7perf test: Fix relative path for 'stderr-whitelist.txt'tools/perf/tests/shell/base_report/test_basic.sh+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH v7 0/7] Introduce structure for shell tests

Hi,

Sending the next revision addressing review feedback from Ian and Namhyung on v6.

Thanks,
Jakub

Link to v6: https://lore.kernel.org/linux-perf-users/[email protected]/

Changes since v6:

Patch 1: fixed fd leaks and missing error checks, added documentation for the shell test infrastructure (requested by Namhyung)

Patch 2: fixed race condition by marking setup suites exclusive, added NULL fallback for setup.sh description, fixed indentation

Patch 4: replaced VLA with calloc, fixed delete_file to not abort nftw on failure, added comment about intentional log retention on error

Patch 5: fixed premature loop termination on dots in test name

Jakub Brnak (7):
perf tests: Create a structure for shell tests perf test: Provide setup for the shell test suite perf test: Add empty setup for base_probe
perf test: Introduce storing logs for shell tests perf test: Format log directories for shell tests perf test: Remove perftool drivers
perf test: Fix relative path for 'stderr-whitelist.txt'

 tools/perf/tests/builtin-test.c               | 175 ++++++++-
 tools/perf/tests/shell/base_probe/setup.sh    |  13 +
 .../tests/shell/base_report/test_basic.sh     |   6 +-
 .../tests/shell/perftool-testsuite_probe.sh   |  24 --
 .../tests/shell/perftool-testsuite_report.sh  |  23 --
 tools/perf/tests/tests-scripts.c              | 359 +++++++++++++++---
 tools/perf/tests/tests-scripts.h              |  17 +
 tools/perf/tests/tests.h                      |   8 +-
 8 files changed, 513 insertions(+), 112 deletions(-)
 create mode 100755 tools/perf/tests/shell/base_probe/setup.sh
 delete mode 100755 tools/perf/tests/shell/perftool-testsuite_probe.sh
 delete mode 100755 tools/perf/tests/shell/perftool-testsuite_report.sh
Signature · 1 line
2.52.0