[Crosstoolchain-logs] [device-tree-compiler] 07/58: tests: Split overlay tests into those with do/don't exercise dtc plugin generation

Vagrant Cascadian vagrant at moszumanska.debian.org
Mon Sep 25 16:23:44 UTC 2017


This is an automated email from the git hooks/post-receive script.

vagrant pushed a commit to branch debian/master
in repository device-tree-compiler.

commit 3ea879dc0c8f86e57cac0ab8768aaa08b00940ea
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Fri Dec 9 14:19:21 2016 +1100

    tests: Split overlay tests into those with do/don't exercise dtc plugin generation
    
    The various tests for overlay/plugin support are currently lumped together
    in the overlay_tests shell function, which is executed by libfdt_tests.
    
    However, this includes both tests designed primarily to exercise libfdt's
    overlay application, and tests designed to exercise dtc's overlay
    generation.  Split these up for improved clarity.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 tests/run_tests.sh | 26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index c87d7d9..bd94604 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -169,12 +169,22 @@ BAD_FIXUP_TREES="bad_index \
 		path_only_sep \
 		path_prop"
 
-overlay_tests () {
-    # Overlay tests for libfdt alone
+# Test to exercise libfdt overlay application without dtc's overlay support
+libfdt_overlay_tests () {
     run_dtc_test -I dts -O dtb -o overlay_base_no_symbols.test.dtb overlay_base.dts
     run_dtc_test -I dts -O dtb -o overlay_overlay_no_symbols.test.dtb overlay_overlay_nodtc.dts
     run_test overlay overlay_base_no_symbols.test.dtb overlay_overlay_no_symbols.test.dtb
 
+    # Bad fixup tests
+    for test in $BAD_FIXUP_TREES; do
+	tree="overlay_bad_fixup_$test"
+	run_dtc_test -I dts -O dtb -o $tree.test.dtb $tree.dts
+	run_test overlay_bad_fixup overlay_base_no_symbols.test.dtb $tree.test.dtb
+    done
+}
+
+# Tests to exercise dtc's overlay generation support
+dtc_overlay_tests () {
     # Overlay tests for dtc
     run_dtc_test -@ -I dts -O dtb -o overlay_base_with_symbols.test.dtb overlay_base.dts
     run_dtc_test -@ -I dts -O dtb -o overlay_overlay_with_symbols.test.dtb overlay_overlay_dtc.dts
@@ -208,13 +218,6 @@ overlay_tests () {
     run_test check_path overlay_base_with_aliases.dtb not-exists "/__symbols__"
     run_test check_path overlay_base_with_aliases.dtb not-exists "/__fixups__"
     run_test check_path overlay_base_with_aliases.dtb not-exists "/__local_fixups__"
-
-    # Bad fixup tests
-    for test in $BAD_FIXUP_TREES; do
-	tree="overlay_bad_fixup_$test"
-	run_dtc_test -I dts -O dtb -o $tree.test.dtb $tree.dts
-	run_test overlay_bad_fixup overlay_base_no_symbols.test.dtb $tree.test.dtb
-    done
 }
 
 tree1_tests () {
@@ -330,7 +333,7 @@ libfdt_tests () {
     run_test appendprop2 appendprop1.test.dtb
     run_dtc_test -I dts -O dtb -o appendprop.test.dtb appendprop.dts
     run_test dtbs_equal_ordered appendprop2.test.dtb appendprop.test.dtb
-    overlay_tests
+    libfdt_overlay_tests
 
     for basetree in test_tree1.dtb sw_tree1.test.dtb rw_tree1.test.dtb; do
 	run_test nopulate $basetree
@@ -589,6 +592,9 @@ dtc_tests () {
 	run_dtc_test -O dtb -S 1999 -a $align -o align1.dtb subnode_iterate.dts
 	check_align align1.dtb $align
     done
+
+    # Tests for overlay/plugin generation
+    dtc_overlay_tests
 }
 
 cmp_tests () {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list