perf tests: Skip the llvm and bpf tests if HAVE_LIBBPF_SUPPORT isn't defined
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Oct 2020 18:00:51 +0000 (15:00 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 4 Nov 2020 12:42:41 +0000 (09:42 -0300)
commit38219f24116ace9b0e604f2ced9c7dbef3041058
tree17732af5746f65ae16ef52ccf937b132d610280a
parentc18cf78d7969db89934587fa476220eefe7bd4bd
perf tests: Skip the llvm and bpf tests if HAVE_LIBBPF_SUPPORT isn't defined

If either NO_LIBBPF=1 is passed, explicitely disabling it or if libbpf
is not available due to some missing dependency, skip its tests, telling
the user the feature isn't available.

  # perf test
  <SNIP>
  40: LLVM search and compile                                         : Skip (not compiled in)
  41: Session topology                                                : Ok
  42: BPF filter                                                      : Skip (not compiled in)
  <SNIP>

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/bpf.c
tools/perf/tests/llvm.c