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"
5all:
6
7uname_M := $(shell uname -m 2>/dev/null || echo not)
8ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
9
10ifeq (x86,$(ARCH))
11TEST_GEN_FILES += ../../../power/x86/amd_pstate_tracer/amd_pstate_trace.py
12TEST_GEN_FILES += ../../../power/x86/intel_pstate_tracer/intel_pstate_tracer.py
13endif
14
15TEST_PROGS := run.sh
16TEST_FILES := basic.sh tbench.sh gitsource.sh
17
18include ../lib.mk
19