mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
266679ffd8
Now that kselftest.h can be used with nolibc convert the za-fork test to use it. We do still have to open code ksft_print_msg() but that's not the end of the world. Some of the advantage comes from using printf() which we could have been using already. This does change the output when tests are skipped, bringing it in line with the standard kselftest output by removing the test name - we move from ok 0 skipped to ok 1 # SKIP fork_test The old output was not following KTAP format for skips, and the numbering was not standard or consistent with the reported plan. Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
50 lines
1.6 KiB
Makefile
50 lines
1.6 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# A proper top_srcdir is needed by KSFT(lib.mk)
|
|
top_srcdir = $(realpath ../../../../../)
|
|
|
|
CFLAGS += $(KHDR_INCLUDES)
|
|
|
|
TEST_GEN_PROGS := fp-stress \
|
|
sve-ptrace sve-probe-vls \
|
|
vec-syscfg \
|
|
za-fork za-ptrace
|
|
TEST_GEN_PROGS_EXTENDED := fp-pidbench fpsimd-test \
|
|
rdvl-sme rdvl-sve \
|
|
sve-test \
|
|
ssve-test \
|
|
za-test \
|
|
zt-ptrace \
|
|
zt-test \
|
|
vlset
|
|
TEST_PROGS_EXTENDED := fpsimd-stress sve-stress ssve-stress za-stress
|
|
|
|
EXTRA_CLEAN += $(OUTPUT)/asm-utils.o $(OUTPUT)/rdvl.o $(OUTPUT)/za-fork-asm.o
|
|
|
|
# Build with nolibc to avoid effects due to libc's clone() support
|
|
$(OUTPUT)/fp-pidbench: fp-pidbench.S $(OUTPUT)/asm-utils.o
|
|
$(CC) -nostdlib $^ -o $@
|
|
$(OUTPUT)/fpsimd-test: fpsimd-test.S $(OUTPUT)/asm-utils.o
|
|
$(CC) -nostdlib $^ -o $@
|
|
$(OUTPUT)/rdvl-sve: rdvl-sve.c $(OUTPUT)/rdvl.o
|
|
$(OUTPUT)/rdvl-sme: rdvl-sme.c $(OUTPUT)/rdvl.o
|
|
$(OUTPUT)/sve-ptrace: sve-ptrace.c
|
|
$(OUTPUT)/sve-probe-vls: sve-probe-vls.c $(OUTPUT)/rdvl.o
|
|
$(OUTPUT)/sve-test: sve-test.S $(OUTPUT)/asm-utils.o
|
|
$(CC) -nostdlib $^ -o $@
|
|
$(OUTPUT)/ssve-test: sve-test.S $(OUTPUT)/asm-utils.o
|
|
$(CC) -DSSVE -nostdlib $^ -o $@
|
|
$(OUTPUT)/vec-syscfg: vec-syscfg.c $(OUTPUT)/rdvl.o
|
|
$(OUTPUT)/vlset: vlset.c
|
|
$(OUTPUT)/za-fork: za-fork.c $(OUTPUT)/za-fork-asm.o
|
|
$(CC) -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \
|
|
-include ../../../../include/nolibc/nolibc.h -I../..\
|
|
-static -ffreestanding -Wall $^ -o $@
|
|
$(OUTPUT)/za-ptrace: za-ptrace.c
|
|
$(OUTPUT)/za-test: za-test.S $(OUTPUT)/asm-utils.o
|
|
$(CC) -nostdlib $^ -o $@
|
|
$(OUTPUT)/zt-ptrace: zt-ptrace.c
|
|
$(OUTPUT)/zt-test: zt-test.S $(OUTPUT)/asm-utils.o
|
|
$(CC) -nostdlib $^ -o $@
|
|
|
|
include ../../lib.mk
|