2007-10-10 09:12:12 +02:00
|
|
|
LIB_TESTS_L = get_mem_rsv \
|
|
|
|
root_node find_property subnode_offset path_offset \
|
2007-08-30 06:54:04 +02:00
|
|
|
get_name getprop get_path supernode_atdepth_offset parent_offset \
|
2007-09-17 06:28:34 +02:00
|
|
|
node_offset_by_prop_value \
|
2007-10-16 05:58:25 +02:00
|
|
|
node_check_compatible node_offset_by_compatible \
|
2007-06-26 04:45:51 +02:00
|
|
|
notfound \
|
|
|
|
setprop_inplace nop_property nop_node \
|
|
|
|
sw_tree1 \
|
2007-10-25 07:05:58 +02:00
|
|
|
move_and_save mangle-layout \
|
2007-10-16 08:42:02 +02:00
|
|
|
open_pack rw_tree1 setprop del_property del_node \
|
2007-10-24 03:06:09 +02:00
|
|
|
string_escapes dtbs_equal_ordered
|
2007-06-26 04:45:51 +02:00
|
|
|
LIB_TESTS = $(LIB_TESTS_L:%=$(TESTS_PREFIX)%)
|
|
|
|
|
|
|
|
LIBTREE_TESTS_L = truncated_property
|
|
|
|
LIBTREE_TESTS = $(LIBTREE_TESTS_L:%=$(TESTS_PREFIX)%)
|
|
|
|
|
|
|
|
TESTS = $(LIB_TESTS) $(LIBTREE_TESTS)
|
|
|
|
|
|
|
|
TESTS_TREES_L = test_tree1.dtb
|
|
|
|
TESTS_TREES = $(TESTS_TREES_L:%=$(TESTS_PREFIX)%)
|
|
|
|
|
|
|
|
TESTS_TARGETS = $(TESTS) $(TESTS_TREES)
|
|
|
|
|
2007-11-12 23:52:58 +01:00
|
|
|
TESTS_DEPFILES = $(TESTS:%=%.d) \
|
|
|
|
$(addprefix $(TESTS_PREFIX),testutils.d trees.d dumptrees.d)
|
2007-06-26 04:45:51 +02:00
|
|
|
|
2007-11-07 00:34:06 +01:00
|
|
|
TESTS_CLEANFILES_L = *.output vgcore.* *.dtb *.test.dts
|
2007-06-26 04:45:51 +02:00
|
|
|
TESTS_CLEANFILES = $(TESTS_CLEANFILES_L:%=$(TESTS_PREFIX)%)
|
|
|
|
|
|
|
|
BIN += $(TESTS) $(TESTS_PREFIX)dumptrees
|
|
|
|
|
|
|
|
.PHONY: tests
|
|
|
|
tests: $(TESTS) $(TESTS_TREES)
|
|
|
|
|
|
|
|
$(LIB_TESTS): %: $(TESTS_PREFIX)testutils.o $(LIBFDT_LIB)
|
|
|
|
|
|
|
|
$(LIBTREE_TESTS): %: $(TESTS_PREFIX)testutils.o $(TESTS_PREFIX)trees.o $(LIBFDT_LIB)
|
|
|
|
|
|
|
|
$(TESTS_PREFIX)dumptrees: $(TESTS_PREFIX)trees.o
|
|
|
|
|
|
|
|
$(TESTS_TREES): $(TESTS_PREFIX)dumptrees
|
|
|
|
@$(VECHO) DUMPTREES
|
|
|
|
cd $(TESTS_PREFIX); ./dumptrees >/dev/null
|
|
|
|
|
|
|
|
tests_clean:
|
|
|
|
@$(VECHO) CLEAN "(tests)"
|
|
|
|
rm -f $(STD_CLEANFILES:%=$(TESTS_PREFIX)%)
|
|
|
|
rm -f $(TESTS_CLEANFILES)
|
|
|
|
|
2007-09-18 02:33:40 +02:00
|
|
|
check: tests dtc
|
2007-06-26 04:45:51 +02:00
|
|
|
cd $(TESTS_PREFIX); ./run_tests.sh
|
|
|
|
|
2007-09-18 02:33:40 +02:00
|
|
|
checkv: tests dtc
|
2007-06-26 04:45:51 +02:00
|
|
|
cd $(TESTS_PREFIX); ./run_tests.sh -v
|
|
|
|
|
|
|
|
ifneq ($(DEPTARGETS),)
|
|
|
|
-include $(TESTS_DEPFILES)
|
|
|
|
endif
|
|
|
|
|