Re: [PATCH 2/2] Add embedded nul string list test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Jun 16, 2014 at 11:35:52AM -0500, Jack Miller wrote:
> ---
>  tests/nul_string_list.dtb | Bin 0 -> 127 bytes
>  tests/nul_string_list.dts | Bin 0 -> 66 bytes
>  tests/run_tests.sh        |   3 +++
>  3 files changed, 3 insertions(+)
>  create mode 100644 tests/nul_string_list.dtb
>  create mode 100644 tests/nul_string_list.dts
> 
> diff --git a/tests/nul_string_list.dtb b/tests/nul_string_list.dtb
> new file mode 100644
> index 0000000000000000000000000000000000000000..ea2bc3915d8129c849d2cc7b247bc9d1a201256c
> GIT binary patch
> literal 127
> zcmcb>`|m9S14BI!TL5tZ5NiOjAP@@xF$nMjF-Q&_FhT{GfwVM;U6fj!T2z*52xAz*
> W7{*|gOhA$oswPD@FEKZ@m;nI8VH4E=
> 
> literal 0
> HcmV?d00001
> 
> diff --git a/tests/nul_string_list.dts b/tests/nul_string_list.dts
> new file mode 100644
> index 0000000000000000000000000000000000000000..845a14425fd36db3fac2934d1412dbb2cd8fb3a9
> GIT binary patch
> literal 66
> zcmdN-DJj-1Gt{@{;?h^B=He_$Elw>eOHI+uOUz9zR<Ko2f{GY2Kp93bhOv@0SFJS{
> E0H@#-od5s;
> 
> literal 0
> HcmV?d00001
> 
> diff --git a/tests/run_tests.sh b/tests/run_tests.sh
> index f205ce6..3b0b500 100755
> --- a/tests/run_tests.sh
> +++ b/tests/run_tests.sh
> @@ -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.

> +    run_test dtbs_equal_ordered dtc_nul_string_list.dtb nul_string_list.dtb
> +
>      # Check aliases support in fdt_path_offset
>      run_dtc_test -I dts -O dtb -o aliases.dtb aliases.dts
>      run_test get_alias aliases.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: pgpB0hARUmbN8.pgp
Description: PGP signature


[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux