On Tue, Sep 15, 2015 at 09:24:59PM -0700, Frank Rowand wrote: > From: Frank Rowand <frank.rowand@xxxxxxxxxxxxxx> > > Add dtc tests. > > - dtc --annotate to create a .dts with annotations > - compile the annotated .dts > > Not-signed-off-by: Frank Rowand <frank.rowand@xxxxxxxxxxxxxx> It'd be nice to make this test a bit less trivial by actually comparing the output against a sample. Maybe for tests/include0.dts to give it a real workout. > --- > tests/run_tests.sh | 3 +++ > 1 file changed, 3 insertions(+) > > Index: b/tests/run_tests.sh > =================================================================== > --- a/tests/run_tests.sh > +++ b/tests/run_tests.sh > @@ -276,6 +276,9 @@ libfdt_tests () { > run_dtc_test -I dts -O dtb -o sourceoutput.test.dts.test.dtb sourceoutput.test.dts > run_test dtbs_equal_ordered sourceoutput.test.dtb sourceoutput.test.dts.test.dtb > > + run_dtc_test --annotate -o sourceoutput.test.annotate.dts sourceoutput.dts > + run_dtc_test -o sourceoutput.test.annotate.dts.test.dts sourceoutput.test.annotate.dts > + > run_dtc_test -I dts -O dtb -o embedded_nul.test.dtb embedded_nul.dts > run_dtc_test -I dts -O dtb -o embedded_nul_equiv.test.dtb embedded_nul_equiv.dts > run_test dtbs_equal_ordered embedded_nul.test.dtb embedded_nul_equiv.test.dtb -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Attachment:
pgpgfkp9TVu8v.pgp
Description: PGP signature