aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2012-10-30 18:02:05 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-11-01 16:00:40 -0400
commitd898b241215daf6f2e654b32ebb8341bffc98cc5 (patch)
treeebb474c8c481dbbd3f55be3d689fef289e487c98 /tools/perf/Makefile
parentbf779746f928de99eba84de0a72a5bbfa87ca680 (diff)
perf tests: Add attr tests under builtin test command
The test attr suite is run only if it's run under perf source directory, or tests are found in installed path. Otherwise tests are omitted (notification is displayed) and finished as successful. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1351634526-1516-25-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 1da87a30c73a..4ffcd02404f8 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -898,6 +898,11 @@ $(OUTPUT)util/exec_cmd.o: util/exec_cmd.c $(OUTPUT)PERF-CFLAGS
898 '-DPREFIX="$(prefix_SQ)"' \ 898 '-DPREFIX="$(prefix_SQ)"' \
899 $< 899 $<
900 900
901$(OUTPUT)tests/attr.o: tests/attr.c $(OUTPUT)PERF-CFLAGS
902 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) \
903 '-DBINDIR="$(bindir_SQ)"' \
904 $<
905
901$(OUTPUT)util/config.o: util/config.c $(OUTPUT)PERF-CFLAGS 906$(OUTPUT)util/config.o: util/config.c $(OUTPUT)PERF-CFLAGS
902 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< 907 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $<
903 908
@@ -1062,6 +1067,10 @@ install: all try-install-man
1062 $(INSTALL) scripts/python/bin/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin' 1067 $(INSTALL) scripts/python/bin/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin'
1063 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d' 1068 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d'
1064 $(INSTALL) bash_completion '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d/perf' 1069 $(INSTALL) bash_completion '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d/perf'
1070 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'
1071 $(INSTALL) tests/attr.py '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'
1072 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr'
1073 $(INSTALL) tests/attr/* '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr'
1065 1074
1066install-python_ext: 1075install-python_ext:
1067 $(PYTHON_WORD) util/setup.py --quiet install --root='/$(DESTDIR_SQ)' 1076 $(PYTHON_WORD) util/setup.py --quiet install --root='/$(DESTDIR_SQ)'