|
1 LIB_TESTS_L = get_mem_rsv \ |
|
2 root_node find_property subnode_offset path_offset \ |
|
3 get_name getprop get_phandle \ |
|
4 get_path supernode_atdepth_offset parent_offset \ |
|
5 node_offset_by_prop_value node_offset_by_phandle \ |
|
6 node_check_compatible node_offset_by_compatible \ |
|
7 notfound \ |
|
8 setprop_inplace nop_property nop_node \ |
|
9 sw_tree1 \ |
|
10 move_and_save mangle-layout nopulate \ |
|
11 open_pack rw_tree1 set_name setprop del_property del_node \ |
|
12 string_escapes references path-references boot-cpuid incbin \ |
|
13 dtbs_equal_ordered \ |
|
14 add_subnode_with_nops |
|
15 LIB_TESTS = $(LIB_TESTS_L:%=$(TESTS_PREFIX)%) |
|
16 |
|
17 LIBTREE_TESTS_L = truncated_property |
|
18 LIBTREE_TESTS = $(LIBTREE_TESTS_L:%=$(TESTS_PREFIX)%) |
|
19 |
|
20 TESTS = $(LIB_TESTS) $(LIBTREE_TESTS) |
|
21 |
|
22 TESTS_TREES_L = test_tree1.dtb |
|
23 TESTS_TREES = $(TESTS_TREES_L:%=$(TESTS_PREFIX)%) |
|
24 |
|
25 TESTS_TARGETS = $(TESTS) $(TESTS_TREES) |
|
26 |
|
27 TESTS_DEPFILES = $(TESTS:%=%.d) \ |
|
28 $(addprefix $(TESTS_PREFIX),testutils.d trees.d dumptrees.d) |
|
29 |
|
30 TESTS_CLEANFILES_L = *.output vglog.* vgcore.* *.dtb *.test.dts *.dtsv1 tmp.* |
|
31 TESTS_CLEANFILES = $(TESTS_CLEANFILES_L:%=$(TESTS_PREFIX)%) |
|
32 |
|
33 BIN += $(TESTS) $(TESTS_PREFIX)dumptrees |
|
34 |
|
35 .PHONY: tests |
|
36 tests: $(TESTS) $(TESTS_TREES) |
|
37 |
|
38 $(LIB_TESTS): %: $(TESTS_PREFIX)testutils.o $(LIBFDT_lib) |
|
39 |
|
40 $(LIBTREE_TESTS): %: $(TESTS_PREFIX)testutils.o $(TESTS_PREFIX)trees.o $(LIBFDT_lib) |
|
41 |
|
42 $(TESTS_PREFIX)dumptrees: $(TESTS_PREFIX)trees.o |
|
43 |
|
44 $(TESTS_TREES): $(TESTS_PREFIX)dumptrees |
|
45 @$(VECHO) DUMPTREES |
|
46 cd $(TESTS_PREFIX); ./dumptrees >/dev/null |
|
47 |
|
48 tests_clean: |
|
49 @$(VECHO) CLEAN "(tests)" |
|
50 rm -f $(STD_CLEANFILES:%=$(TESTS_PREFIX)%) |
|
51 rm -f $(TESTS_CLEANFILES) |
|
52 |
|
53 check: tests dtc convert-dtsv0 |
|
54 cd $(TESTS_PREFIX); ./run_tests.sh |
|
55 |
|
56 checkm: tests dtc convert-dtsv0 |
|
57 cd $(TESTS_PREFIX); ./run_tests.sh -m 2>&1 | tee vglog.$$$$ |
|
58 |
|
59 checkv: tests dtc convert-dtsv0 |
|
60 cd $(TESTS_PREFIX); ./run_tests.sh -v |
|
61 |
|
62 ifneq ($(DEPTARGETS),) |
|
63 -include $(TESTS_DEPFILES) |
|
64 endif |
|
65 |