Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tests: Add test for make install with prefix

Lukas Wunner reported issue (and fix[1]) with 'make install prefix=...'.
Adding automated test for this, so it wouldn't happen again.

[1]: 75e84ab906ef ("perf tools: Fix build breakage if prefix= is specified")

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Lukas Wunner <lukas@wunner.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1434977452-32520-3-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
eb30d2c5 502819c5

+8
+8
tools/perf/tests/make
··· 58 58 make_install_html := install-html 59 59 make_install_info := install-info 60 60 make_install_pdf := install-pdf 61 + make_install_prefix := install prefix=/tmp/krava 61 62 make_static := LDFLAGS=-static 62 63 63 64 # all the NO_* variable combined ··· 100 99 run += make_util_pmu_bison_o 101 100 run += make_install 102 101 run += make_install_bin 102 + run += make_install_prefix 103 103 # FIXME 'install-*' commented out till they're fixed 104 104 # run += make_install_doc 105 105 # run += make_install_man ··· 174 172 test_make_install_O := $(call test_dest_files,$(installed_files_all)) 175 173 test_make_install_bin := $(call test_dest_files,$(installed_files_bin)) 176 174 test_make_install_bin_O := $(call test_dest_files,$(installed_files_bin)) 175 + 176 + # We prefix all installed files for make_install_prefix 177 + # with '/tmp/krava' to match installed/prefix-ed files. 178 + installed_files_all_prefix := $(addprefix /tmp/krava/,$(installed_files_all)) 179 + test_make_install_prefix := $(call test_dest_files,$(installed_files_all_prefix)) 180 + test_make_install_prefix_O := $(call test_dest_files,$(installed_files_all_prefix)) 177 181 178 182 # FIXME nothing gets installed 179 183 test_make_install_man := test -f $$TMP_DEST/share/man/man1/perf.1