git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix page mounting contention (close #57)
[lunaix-os.git]
/
lunaix-os
/
tests
/
units
/
makefile
diff --git
a/lunaix-os/tests/units/makefile
b/lunaix-os/tests/units/makefile
index 66cf8ab06ecee77e17bbc30120953c24d6ea516e..866c71822f45b42c0a49fe03aa0eae0a8f490b9a 100644
(file)
--- a/
lunaix-os/tests/units/makefile
+++ b/
lunaix-os/tests/units/makefile
@@
-1,8
+1,12
@@
LUNAIX_ROOT ?= $(shell realpath ../../)
LUNAIX_ROOT ?= $(shell realpath ../../)
-include test_build.mkinc
+include $(LUNAIX_ROOT)/tests/shared/makefile
+include $(LUNAIX_ROOT)/tests/shared/mkobj.mkinc
-__test-dir := device-tree
+MAKEFLAGS += --no-print-directory
+CFLAGS += -isystem $(unit-test-root)/stubs/includes
+
+__test-dir := device-tree btrie
test-dir := $(addprefix test-,$(__test-dir))
obj-stubs :=
test-dir := $(addprefix test-,$(__test-dir))
obj-stubs :=
@@
-11,7
+15,9
@@
obj-tmp :=
include stubs/makefile
obj-stubs += $(addprefix $(unit-test-root)/stubs/,$(obj-tmp))
include stubs/makefile
obj-stubs += $(addprefix $(unit-test-root)/stubs/,$(obj-tmp))
-export obj-stubs LUNAIX_ROOT
+BIN_DEPS := $(obj-stubs) $(obj-shared)
+
+export BIN_DEPS CFLAGS LUNAIX_ROOT
test-%:
$(call status,MK,$*)
@$(MAKE) $(MKFLAGS) -C $* $(_ACT) -I $(CURDIR)
test-%:
$(call status,MK,$*)
@$(MAKE) $(MKFLAGS) -C $* $(_ACT) -I $(CURDIR)