162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci# Makefile for LKDTM regression tests 362306a36Sopenharmony_ci 462306a36Sopenharmony_ciinclude ../lib.mk 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci# NOTE: $(OUTPUT) won't get default value if used before lib.mk 762306a36Sopenharmony_ciTEST_FILES := tests.txt 862306a36Sopenharmony_ciTEST_PROGS := stack-entropy.sh 962306a36Sopenharmony_ciTEST_GEN_PROGS = $(patsubst %,$(OUTPUT)/%.sh,$(shell awk '{print $$1}' tests.txt | sed -e 's/\#//')) 1062306a36Sopenharmony_ciall: $(TEST_GEN_PROGS) 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci$(OUTPUT)/%: run.sh tests.txt 1362306a36Sopenharmony_ci install -m 0744 run.sh $@ 14