Makefile 394 B

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