[Crosstoolchain-logs] [device-tree-compiler] 144/357: libfdt: Test rw functions on more trees
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:06:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit 02a5556850bbb64a73cd45b2dbca6579880bb424
Author: David Gibson <david at gibson.dropbear.id.au>
Date: Fri Sep 28 14:57:01 2007 +1000
libfdt: Test rw functions on more trees
At present, the testcases for read/write functions (setprop,
del_property and del_node) are only invoked on the single
asm-generated tree, not on any of the other tree images which should
be equivalent. The functions in question will (correctly) not work on
the "unfinished" tree output from sw_tree1, but should work on most of
the others.
This patch extends the run_tests script to invoke the r/w testcases on
more example trees. The testsuite still passes clean with this
addition.
Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
tests/run_tests.sh | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 3c64e9d..b51bd8f 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -49,6 +49,15 @@ tree1_tests () {
run_test nop_node $TREE
}
+tree1_tests_rw () {
+ TREE=$1
+
+ # Read-write tests
+ run_test setprop $TREE
+ run_test del_property $TREE
+ run_test del_node $TREE
+}
+
libfdt_tests () {
# Make sure we don't have stale blobs lying around
rm -f *.test.dtb
@@ -76,11 +85,16 @@ libfdt_tests () {
tree1_tests opened.$tree
tree1_tests repacked.$tree
done
- run_test setprop test_tree1.dtb
- run_test del_property test_tree1.dtb
- run_test del_node test_tree1.dtb
+
+ for tree in test_tree1.dtb sw_tree1.test.dtb; do
+ tree1_tests_rw $tree
+ tree1_tests_rw moved.$tree
+ tree1_tests_rw shunted.$tree
+ tree1_tests_rw deshunted.$tree
+ done
run_test rw_tree1
tree1_tests rw_tree1.test.dtb
+ tree1_tests_rw rw_tree1.test.dtb
# Tests for behaviour on various sorts of corrupted trees
run_test truncated_property
@@ -92,6 +106,7 @@ dtc_tests () {
run_test dtc.sh -f -I dts -O dtb -o dtc_tree1.test.dtb test_tree1.dts
tree1_tests dtc_tree1.test.dtb
+ tree1_tests_rw dtc_tree1.test.dtb
}
while getopts "vdt:" ARG ; do
--
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