[RFC PATCH v2 2/3] dtc: make check test for dtc --annotate

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



From: Frank Rowand <frank.rowand@xxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxx>
---
 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
--
To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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