| 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | # Makefile for amd-pstate/ function selftests |
| 3 | |
| 4 | # No binaries, but make sure arg-less "make" doesn't trigger "run_tests" |
| 5 | all: |
| 6 | |
| 7 | ARCH ?= $(shell uname -m 2>/dev/null || echo not) |
| 8 | ARCH := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/) |
| 9 | |
| 10 | ifeq (x86,$(ARCH)) |
| 11 | TEST_FILES += ../../../power/x86/amd_pstate_tracer/amd_pstate_trace.py |
| 12 | TEST_FILES += ../../../power/x86/intel_pstate_tracer/intel_pstate_tracer.py |
| 13 | endif |
| 14 | |
| 15 | TEST_PROGS += run.sh |
| 16 | TEST_FILES += basic.sh tbench.sh gitsource.sh |
| 17 | |
| 18 | include ../lib.mk |