146d1a0f0SKees Cook# SPDX-License-Identifier: GPL-2.0
246d1a0f0SKees Cook# Makefile for LKDTM regression tests
346d1a0f0SKees Cook
446d1a0f0SKees Cookinclude ../lib.mk
546d1a0f0SKees Cook
646d1a0f0SKees Cook# NOTE: $(OUTPUT) won't get default value if used before lib.mk
746d1a0f0SKees CookTEST_FILES := tests.txt
846d1a0f0SKees CookTEST_GEN_PROGS = $(patsubst %,$(OUTPUT)/%.sh,$(shell awk '{print $$1}' tests.txt | sed -e 's/\#//'))
946d1a0f0SKees Cookall: $(TEST_GEN_PROGS)
1046d1a0f0SKees Cook
1146d1a0f0SKees Cook$(OUTPUT)/%: run.sh tests.txt
1246d1a0f0SKees Cook	install -m 0744 run.sh $@
13