^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) # Makefile for LKDTM regression tests
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) include ../lib.mk
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) # NOTE: $(OUTPUT) won't get default value if used before lib.mk
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) TEST_FILES := tests.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) TEST_GEN_PROGS = $(patsubst %,$(OUTPUT)/%.sh,$(shell awk '{print $$1}' tests.txt | sed -e 's/\#//'))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) all: $(TEST_GEN_PROGS)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) $(OUTPUT)/%: run.sh tests.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) install -m 0744 run.sh $@