diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2018-09-10 12:59:53 +1000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-09-10 14:20:51 +1000 |
commit | fd06c54d4711f20d16bb1e18cba4d7bed09e5ad2 (patch) | |
tree | ad9d54bf38ef14b675277cfcd81b13fb9a6a198b /tests/Makefile.tests | |
parent | c3f50c9a86d91758d9ca3885adcad0622eac66aa (diff) | |
download | device-tree-compiler-fd06c54d4711f20d16bb1e18cba4d7bed09e5ad2.tar.gz |
tests: Better testing of dtc -I fs mode
Greg Kurz added a trivial test of the -I fs mode recently, which was
previously basically untested. This is an oversight, since we
recently had a bug which completely broke it.
This replaces Greg's test with a more thorough test of -I fs mode. We
use a test helper to create the familiar test_tree1 in "fs" form, then use
dtc -I fs to process it, and check that the results match what they
should.
We only check the content in -I fs -O dtb mode, since that's simplest,
but we do run -I fs -O dts mode as well to make sure it doesn't blow
up (the aforementioned bug caused just such a blow up, specific to -O
dts mode, for example).
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/Makefile.tests')
-rw-r--r-- | tests/Makefile.tests | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Makefile.tests b/tests/Makefile.tests index e7cf6bc..6903333 100644 --- a/tests/Makefile.tests +++ b/tests/Makefile.tests @@ -27,7 +27,8 @@ LIB_TESTS_L = get_mem_rsv \ property_iterate \ subnode_iterate \ overlay overlay_bad_fixup \ - check_path check_header check_full + check_path check_header check_full \ + fs_tree1 LIB_TESTS = $(LIB_TESTS_L:%=$(TESTS_PREFIX)%) LIBTREE_TESTS_L = truncated_property truncated_string truncated_memrsv @@ -49,6 +50,8 @@ TESTS_DEPFILES = $(TESTS:%=%.d) \ TESTS_CLEANFILES_L = *.output vglog.* vgcore.* *.dtb *.test.dts *.dtsv1 tmp.* TESTS_CLEANFILES_L += dumptrees TESTS_CLEANFILES = $(TESTS) $(TESTS_CLEANFILES_L:%=$(TESTS_PREFIX)%) +TESTS_CLEANDIRS_L = fs +TESTS_CLEANDIRS = $(TESTS_CLEANDIRS_L:%=$(TESTS_PREFIX)%) .PHONY: tests tests: $(TESTS) $(TESTS_TREES) @@ -75,6 +78,7 @@ tests_clean: @$(VECHO) CLEAN "(tests)" rm -f $(STD_CLEANFILES:%=$(TESTS_PREFIX)%) rm -f $(TESTS_CLEANFILES) + rm -rf $(TESTS_CLEANDIRS) check: tests ${TESTS_BIN} $(TESTS_PYLIBFDT) cd $(TESTS_PREFIX); ./run_tests.sh |