From: Frank Rowand <frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org,
jdl-CYoMK+44s/E@public.gmane.org,
devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [RFC PATCH v2 2/3] dtc: make check test for dtc --annotate
Date: Mon, 21 Sep 2015 22:38:27 -0700 [thread overview]
Message-ID: <5600E953.40308@gmail.com> (raw)
In-Reply-To: <5600E191.9020903-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
From: Frank Rowand <frank.rowand-/MT0OVThwyLZJqsBc5GL+g@public.gmane.org>
Add dtc tests.
- dtc --annotate to create a .dts with annotations
- compile the annotated .dts
- compare the .dts created from include0.dts to the .dts created
by first compiling include0.dts with annotations, then compiling
the resulting .dts without --annotations to strip the annotation
Not-signed-off-by: Frank Rowand <frank.rowand-/MT0OVThwyLZJqsBc5GL+g@public.gmane.org>
---
tests/run_tests.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
Index: b/tests/run_tests.sh
===================================================================
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -276,6 +276,16 @@ 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
+ # verify annotated .dts can be compiled
+ 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
+
+ # verify annotated .dts can be stripped to match non-annotated
+ run_dtc_test -o includes.dts include0.dts
+ run_dtc_test --annotate -o includes.annotate.dts include0.dts
+ run_dtc_test -o includes.annotate_undo.dts includes.annotate.dts
+ run_wrap_test cmp includes.dts includes.annotate_undo.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
next prev parent reply other threads:[~2015-09-22 5:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-22 5:05 [RFC PATCH v2 0/3] dtc: dts source location annotation Frank Rowand
[not found] ` <5600E191.9020903-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-22 5:36 ` [RFC PATCH v2 1/3] " Frank Rowand
[not found] ` <5600E8EF.6020107-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-22 10:32 ` David Gibson
[not found] ` <20150922103251.GO20331-RXTfZT5YzpxwFLYp8hBm2A@public.gmane.org>
2015-09-22 17:10 ` Frank Rowand
[not found] ` <56018B92.90305-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-23 0:11 ` David Gibson
2015-09-22 5:38 ` Frank Rowand [this message]
[not found] ` <5600E953.40308-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-22 10:39 ` [RFC PATCH v2 2/3] dtc: make check test for dtc --annotate David Gibson
[not found] ` <20150922103907.GP20331-RXTfZT5YzpxwFLYp8hBm2A@public.gmane.org>
2015-09-22 17:21 ` Frank Rowand
[not found] ` <56018E33.5090708-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-23 0:18 ` David Gibson
2015-09-22 5:39 ` [RFC PATCH v2 3/3] dtc: linux kernel build process to create annotated .dts Frank Rowand
[not found] ` <5600E9A2.5050000-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-22 10:40 ` David Gibson
[not found] ` <20150922104013.GQ20331-RXTfZT5YzpxwFLYp8hBm2A@public.gmane.org>
2015-09-22 17:24 ` Frank Rowand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5600E953.40308@gmail.com \
--to=frowand.list-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org \
--cc=devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=jdl-CYoMK+44s/E@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.