[Crosstoolchain-logs] [device-tree-compiler] 11/58: tests: Clarify dtc overlay tests
Vagrant Cascadian
vagrant at moszumanska.debian.org
Mon Sep 25 16:23:45 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 ba765b273f0f89dd0a2ffb74b96f08d117ce2915
Author: David Gibson <david at gibson.dropbear.id.au>
Date: Fri Dec 9 16:02:46 2016 +1100
tests: Clarify dtc overlay tests
This changes the names of the testfiles for a number of the testcases of
the dtc overlay generation functionality to make them shorter and a bit
cleaerer what's going on. In addition we move some of the check_path
sanity checks closer to the dtc commands they verify.
Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
...overlay_overlay_dtc.dts => overlay_overlay.dts} | 0
tests/run_tests.sh | 25 ++++++++++++----------
2 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/tests/overlay_overlay_dtc.dts b/tests/overlay_overlay.dts
similarity index 100%
rename from tests/overlay_overlay_dtc.dts
rename to tests/overlay_overlay.dts
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 8ac46e6..660e842 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -208,22 +208,25 @@ libfdt_overlay_tests () {
# 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
- run_test overlay overlay_base_with_symbols.test.dtb overlay_overlay_with_symbols.test.dtb
+ run_dtc_test -@ -I dts -O dtb -o overlay_base.test.dtb overlay_base.dts
+ run_test check_path overlay_base.test.dtb exists "/__symbols__"
+ run_test check_path overlay_base.test.dtb not-exists "/__fixups__"
+ run_test check_path overlay_base.test.dtb not-exists "/__local_fixups__"
- # Test symbols/fixups existence
- run_test check_path overlay_overlay_with_symbols.test.dtb exists "/__symbols__"
- run_test check_path overlay_overlay_with_symbols.test.dtb exists "/__fixups__"
- run_test check_path overlay_overlay_with_symbols.test.dtb exists "/__local_fixups__"
+ run_dtc_test -@ -I dts -O dtb -o overlay_overlay.test.dtb overlay_overlay.dts
+ run_test check_path overlay_overlay.test.dtb exists "/__symbols__"
+ run_test check_path overlay_overlay.test.dtb exists "/__fixups__"
+ run_test check_path overlay_overlay.test.dtb exists "/__local_fixups__"
+
+ run_test overlay overlay_base.test.dtb overlay_overlay.test.dtb
# test plugin source to dtb and back
- run_dtc_test -@ -I dtb -O dts -o overlay_overlay_dtc.test.dts overlay_overlay_with_symbols.test.dtb
- run_dtc_test -@ -I dts -O dtb -o overlay_overlay_with_symbols.test.test.dtb overlay_overlay_dtc.test.dts
- run_test dtbs_equal_ordered overlay_overlay_with_symbols.test.dtb overlay_overlay_with_symbols.test.test.dtb
+ run_dtc_test -@ -I dtb -O dts -o overlay_overlay_decompile.test.dts overlay_overlay.test.dtb
+ run_dtc_test -@ -I dts -O dtb -o overlay_overlay_decompile.test.dtb overlay_overlay_decompile.test.dts
+ run_test dtbs_equal_ordered overlay_overlay.test.dtb overlay_overlay_decompile.test.dtb
# test plugin auto-generation without using -@
- run_dtc_test -I dts -O dtb -o overlay_overlay_with_symbols_auto.test.dtb overlay_overlay_dtc.dts
+ run_dtc_test -I dts -O dtb -o overlay_overlay_with_symbols_auto.test.dtb overlay_overlay.dts
run_test check_path overlay_overlay_with_symbols_auto.test.dtb exists "/__symbols__"
run_test check_path overlay_overlay_with_symbols_auto.test.dtb exists "/__fixups__"
run_test check_path overlay_overlay_with_symbols_auto.test.dtb exists "/__local_fixups__"
--
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