aboutsummaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2023-03-12 21:16:21 +0200
committeraqua <aqua@iserlohn-fortress.net>2023-03-12 21:16:21 +0200
commit30fd1dcbe128778d00b6677a3dc00c119c000e83 (patch)
tree76ee3d0843018e9fdbc5b6c1f7e2c5ca74997abd /rules.mk
parentsrc/Makefile: generate conf.h if it doesn't exist (diff)
downloadkernel-30fd1dcbe128778d00b6677a3dc00c119c000e83.tar.xz
Add scripts/test_runner.py
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk18
1 files changed, 13 insertions, 5 deletions
diff --git a/rules.mk b/rules.mk
index 75fa9f1..b22a3b3 100644
--- a/rules.mk
+++ b/rules.mk
@@ -119,14 +119,22 @@ test_%: test_%.cc
@echo ' CXX TEST $@'
@${HOST_CXX} ${HOST_CXXFLAGS} ${HOST_LDFLAGS} $< -o $@
-.PHONY: test.base valgrind.base clean.base FORCE
-test.base: ${TESTS}
+.PHONY: test test.quiet valgrind valgrind.quiet clean.base FORCE
+test: ${TESTS}
@echo " -> Running tests in $(shell pwd | xargs basename)"
- @$(foreach f,$^,echo " -> $f"; ./$f &&) echo "Done"
+ @../scripts/test_runner.py --verbose ${TESTS}
-valgrind.base: ${TESTS}
+test.quiet: ${TESTS}
+ @echo " -> Running tests in $(shell pwd | xargs basename)"
+ @../scripts/test_runner.py ${TESTS}
+
+valgrind: ${TESTS}
+ @echo " -> Running valgrind on tests in $(shell pwd | xargs basename)"
+ @../scripts/test_runner.py --verbose --valgrind ${TESTS}
+
+valgrind.quiet: ${TESTS}
@echo " -> Running valgrind on tests in $(shell pwd | xargs basename)"
- @$(foreach f,$^,echo " -> $f"; valgrind --leak-check=full ./$f;)
+ @../scripts/test_runner.py --valgrind ${TESTS}
clean.base: FORCE
@echo " -> Cleaning $(shell pwd | xargs basename)"