2007-10-10 09:12:12 +02:00
|
|
|
LIB_TESTS_L = get_mem_rsv \
|
|
|
|
root_node find_property subnode_offset path_offset \
|
2007-11-12 23:59:38 +01:00
|
|
|
get_name getprop get_phandle \
|
|
|
|
get_path supernode_atdepth_offset parent_offset \
|
|
|
|
node_offset_by_prop_value node_offset_by_phandle \
|
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 \
|
2008-01-11 04:55:05 +01:00
|
|
|
open_pack rw_tree1 set_name setprop del_property del_node \
|
2007-12-05 00:43:50 +01:00
|
|
|
string_escapes references path-references \
|
2007-11-13 00:02:29 +01:00
|
|
|
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-12-06 06:56:55 +01:00
|
|
|
TESTS_CLEANFILES_L = *.output vglog.* vgcore.* *.dtb *.test.dts tmp.*
|
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-11-21 01:56:14 +01:00
|
|
|
checkm: tests dtc
|
|
|
|
cd $(TESTS_PREFIX); ./run_tests.sh -m 2>&1 | tee vglog.$$$$
|
|
|
|
|
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
|
|
|
|
|