linux-stable/tools/perf/tests/shell
James Clark ac96f463cc perf tests: Remove bash constructs from stat_all_pmu.sh
The tests were passing but without testing and were printing the
following:

  $ ./perf test -v 90
  90: perf all PMU test                                               :
  --- start ---
  test child forked, pid 51650
  Testing cpu/branch-instructions/
  ./tests/shell/stat_all_pmu.sh: 10: [:
   Performance counter stats for 'true':

             137,307      cpu/branch-instructions/

         0.001686672 seconds time elapsed

         0.001376000 seconds user
         0.000000000 seconds sys: unexpected operator

Changing the regexes to a grep works in sh and prints this:

  $ ./perf test -v 90
  90: perf all PMU test                                               :
  --- start ---
  test child forked, pid 60186
  [...]
  Testing tlb_flush.stlb_any
  test child finished with 0
  ---- end ----
  perf all PMU test: Ok

Signed-off-by: James Clark <james.clark@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: KP Singh <kpsingh@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Martin KaFai Lau <kafai@fb.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Cc: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Yonghong Song <yhs@fb.com>
Cc: bpf@vger.kernel.org
Cc: netdev@vger.kernel.org
Link: https://lore.kernel.org/r/20211028134828.65774-4-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2021-11-13 18:11:51 -03:00
..
lib perf tests: Fix *probe_vfs_getname.sh test failures 2021-08-30 10:06:43 -03:00
buildid.sh perf buildid-cache: Add test for PE executable 2021-03-02 09:41:04 -03:00
daemon.sh Merge remote-tracking branch 'torvalds/master' into perf/core 2021-03-29 10:39:10 -03:00
pipe_test.sh perf tools: Add pipe_test.sh to verify pipe operations 2021-08-02 10:14:58 -03:00
probe_vfs_getname.sh perf tests: Add missing SPDX headers 2019-06-17 15:57:19 -03:00
record+probe_libc_inet_pton.sh Merge remote-tracking branch 'tip/perf/core' into perf/urgent 2019-07-08 13:06:57 -03:00
record+script_probe_vfs_getname.sh perf test: Fix record+script_probe_vfs_getname.sh /tmp cleanup 2021-10-26 11:14:49 -03:00
record+zstd_comp_decomp.sh perf tests: Remove bash construct from record+zstd_comp_decomp.sh 2021-11-13 18:11:51 -03:00
stat+csv_summary.sh perf test: Add CSV summary test 2021-03-24 10:21:57 -03:00
stat+shadow_stat.sh perf tests: Skip 'perf stat metrics (shadow stat) test' for hybrid 2021-04-29 10:31:00 -03:00
stat_all_metricgroups.sh perf test: Workload test of metric and metricgroups 2021-09-28 15:43:49 -03:00
stat_all_metrics.sh perf test: Workload test of metric and metricgroups 2021-09-28 15:43:49 -03:00
stat_all_pmu.sh perf tests: Remove bash constructs from stat_all_pmu.sh 2021-11-13 18:11:51 -03:00
stat_bpf_counters.sh perf test: Remove bash construct from stat_bpf_counters.sh test 2021-11-13 18:11:51 -03:00
test_arm_coresight.sh perf tests: Improve temp file cleanup in test_arm_coresight.sh 2021-10-26 11:17:46 -03:00
test_arm_spe.sh perf arm-spe: Snapshot mode test 2021-11-13 18:11:50 -03:00
trace+probe_vfs_getname.sh perf tests: Fix trace+probe_vfs_getname.sh /tmp cleanup 2021-10-26 11:17:38 -03:00