18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci# Makefile for LKDTM regression tests
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciinclude ../lib.mk
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci# NOTE: $(OUTPUT) won't get default value if used before lib.mk
78c2ecf20Sopenharmony_ciTEST_FILES := tests.txt
88c2ecf20Sopenharmony_ciTEST_GEN_PROGS = $(patsubst %,$(OUTPUT)/%.sh,$(shell awk '{print $$1}' tests.txt | sed -e 's/\#//'))
98c2ecf20Sopenharmony_ciall: $(TEST_GEN_PROGS)
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci$(OUTPUT)/%: run.sh tests.txt
128c2ecf20Sopenharmony_ci	install -m 0744 run.sh $@
13