aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-12-27 13:42:58 +0200
committeraqua <aqua@iserlohn-fortress.net>2022-12-27 13:42:58 +0200
commit7bde59183f40fe7540ab87a03429453b76e286c3 (patch)
tree60a2db357f119a3925ed6a6fb2925228a51307fa /lib/Makefile
parentAdd sched/roundrobin tests (diff)
downloadkernel-7bde59183f40fe7540ab87a03429453b76e286c3.tar.xz
Add test and valgrind targets to rules.mk
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Makefile b/lib/Makefile
index b82d773..9b34c20 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -4,11 +4,7 @@ libk.SRCS = stdio/printf.c stdio/fprintf.c stdio/vfprintf.cpp \
stdlib/memcpy.c stdlib/memset.c stdlib/linked_list_allocator.c \
string/itoa.c
-include ../rules.mk
+TESTS += tst/test_mem tst/test_string tst/test_linked_list_allocator
-.PHONY: test valgrind
-test: tst/test_mem tst/test_string tst/test_linked_list_allocator
- $(foreach f,$^,./$f;)
+include ../rules.mk
-valgrind: tst/test_mem tst/test_string tst/test_linked_list_allocator
- $(foreach f,$^,valgrind --leak-check=full ./$f;)