On Wed, Jun 18, 2014 at 12:35:19PM -0500, Jack Miller wrote: > On Wed, Jun 18, 2014 at 11:27:29AM +1000, David Gibson wrote: > > > @@ -310,6 +310,9 @@ dtc_tests () { > > > run_dtc_test -I dts -O dtb -o dtc_comments-cmp.test.dtb comments-cmp.dts > > > run_test dtbs_equal_ordered dtc_comments.test.dtb dtc_comments-cmp.test.dtb > > > > > > + run_dtc_test -I dts -O dtb -o dtc_nul_string_list.dtb nul_string_list.dts > > > > dtb files generated by the tests should be named XXX.test.dtb so that > > make clean will clean them up again. > > Hmmm, the greater problem here seems to be that I'm including a .dtb that > *isn't* disposable and will be cleaned. Should this test check that the > generated dtb decompiles into "","","" format instead of comparing to a > binary? That seems a little weak as it assumes that the intermediate .dtb is > correct, but I don't know your thoughts on including binaries into your test > directory. So, I thought about that. It would be possible to avoid by making a comparison .dts which includes the NULs using string escapes or bytestrings instead of NULs in the input, then comparing the .dtb outputs from each. However, I don't think there's a real problem with a pre-built dtb, git handles binary files adequately well. -- 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:
pgpR5JZLwDrrL.pgp
Description: PGP signature