diff options
author | aqua <aqua@iserlohn-fortress.net> | 2023-03-12 21:16:21 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2023-03-12 21:16:21 +0200 |
commit | 30fd1dcbe128778d00b6677a3dc00c119c000e83 (patch) | |
tree | 76ee3d0843018e9fdbc5b6c1f7e2c5ca74997abd /rules.mk | |
parent | src/Makefile: generate conf.h if it doesn't exist (diff) | |
download | kernel-30fd1dcbe128778d00b6677a3dc00c119c000e83.tar.xz |
Add scripts/test_runner.py
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -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)" |