linux/tools/perf/tests
Namhyung Kim 000ae33fdb perf tests: Check python path on attr and binding test
Current perf test code tries to execute python version 2 in order to
test attributes on perf_event_open syscall.  However it's not default
python version anymore a system can have python v3 only or v2 with a
different name (e.g. python2).  So if there's no such python interpreter
with the name 'python', the test would fail like this (yes, it's
happened on my new archlinux laptop :).

13: struct perf_event_attr setup                 :sh: python: command not found
 FAILED!

As we can pass name of the python interpreter on make, use it for
the attr test also.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1355729101-31317-1-git-send-email-namhyung@kernel.org
[ committer note: Added the same mechanism to the python binding test ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-01-24 16:40:10 -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: Check for linking problems in the python binding 2013-01-24 16:40:09 -03:00
dso-data.c perf tests: Check for mkstemp return value in dso-data test 2012-11-14 16:50:30 -03:00
evsel-roundtrip-name.c perf tests: Move perf_evsel__roundtrip_name_test into separate object 2012-11-14 16:49:56 -03:00
evsel-tp-sched.c perf tests: Move perf_evsel__tp_sched_test into separate object 2012-11-14 16:50:02 -03:00
hists_link.c perf test: Add a test case for hists__{match,link} 2013-01-24 16:40:07 -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 perf tools: Fix attributes for '{}' defined event groups 2012-11-14 16:51:50 -03:00
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 tests: Add event parsing test for '*:*' tracepoints 2013-01-24 16:40:10 -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: Move pmu tests into separate object 2012-11-14 16:50:19 -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 perf tests: Move test__rdpmc into separate object 2012-11-14 16:49:50 -03:00
tests.h perf test: Check for linking problems in the python binding 2013-01-24 16:40:09 -03:00
vmlinux-kallsyms.c perf tests: Move test__vmlinux_matches_kallsyms into separate object 2012-11-14 16:48:35 -03:00