xref: /linux/tools/perf/arch/x86/tests/Build (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1perf-test-$(CONFIG_DWARF_UNWIND) += regs_load.o
2perf-test-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o
3
4perf-test-y += arch-tests.o
5perf-test-y += sample-parsing.o
6perf-test-y += hybrid.o
7perf-test-$(CONFIG_AUXTRACE) += intel-pt-test.o
8ifeq ($(CONFIG_EXTRA_TESTS),y)
9perf-test-$(CONFIG_AUXTRACE) += insn-x86.o
10endif
11perf-test-$(CONFIG_X86_64) += bp-modify.o
12perf-test-y += amd-ibs-via-core-pmu.o
13
14ifdef SHELLCHECK
15  SHELL_TESTS := gen-insn-x86-dat.sh
16  TEST_LOGS := $(SHELL_TESTS:%=%.shellcheck_log)
17else
18  SHELL_TESTS :=
19  TEST_LOGS :=
20endif
21
22$(OUTPUT)%.shellcheck_log: %
23	$(call rule_mkdir)
24	$(Q)$(call echo-cmd,test)shellcheck -a -S warning "$<" > $@ || (cat $@ && rm $@ && false)
25
26perf-test-y += $(TEST_LOGS)
27