summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSzuWei Lin <szuweilin@google.com>2017-03-27 09:47:59 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-27 09:47:59 +0000
commit5f9e3c616657378354ed5ca1e4d0c91e33afceca (patch)
tree5470a902bb76dbb75fe07e0c22ad34acf4e55b04 /tests
parentdb4b614654bd9edbca242d22b683df308a91c745 (diff)
parentb1800e8d008a85220764bd369a9d8518ee3d4537 (diff)
downloadlibufdt-5f9e3c616657378354ed5ca1e4d0c91e33afceca.tar.gz
Merge "Handle overlaying without node __symbols__" am: 523ab1c32a am: ae73a37334
am: b1800e8d00 Change-Id: I8e4cba2dc59a7ec8035bc5b23434c163dfe5887b
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run_tests.sh9
-rw-r--r--tests/testdata/base_no_symbols-base.dts7
-rw-r--r--tests/testdata/base_no_symbols-overlay.dts10
-rw-r--r--tests/testdata/empty_overlay-base.dts4
-rw-r--r--tests/testdata/empty_overlay-overlay.dts4
-rw-r--r--tests/testdata/overlay_no_symbols-base.dts7
-rw-r--r--tests/testdata/overlay_no_symbols-overlay.dts4
7 files changed, 45 insertions, 0 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index eda6d5c..4513950 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -60,6 +60,15 @@ main() {
run_test_case \
"node_ordering" \
"Run test about node ordering"
+ run_test_case \
+ "base_no_symbols" \
+ "Run test about base dtb without __symbols__"
+ run_test_case \
+ "overlay_no_symbols" \
+ "Run test about overlay dtb without __symbols__"
+ run_test_case \
+ "empty_overlay" \
+ "Run test about overlaying with empty base and overlay dt"
)
if [ $? -ne 0 ]; then
diff --git a/tests/testdata/base_no_symbols-base.dts b/tests/testdata/base_no_symbols-base.dts
new file mode 100644
index 0000000..b9d77f8
--- /dev/null
+++ b/tests/testdata/base_no_symbols-base.dts
@@ -0,0 +1,7 @@
+/dts-v1/;
+
+/ {
+ x {};
+};
+
+
diff --git a/tests/testdata/base_no_symbols-overlay.dts b/tests/testdata/base_no_symbols-overlay.dts
new file mode 100644
index 0000000..509dae7
--- /dev/null
+++ b/tests/testdata/base_no_symbols-overlay.dts
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+/{
+ a: a {};
+};
+
+&a {
+ b {};
+};
diff --git a/tests/testdata/empty_overlay-base.dts b/tests/testdata/empty_overlay-base.dts
new file mode 100644
index 0000000..e160dad
--- /dev/null
+++ b/tests/testdata/empty_overlay-base.dts
@@ -0,0 +1,4 @@
+/dts-v1/;
+
+/ {
+};
diff --git a/tests/testdata/empty_overlay-overlay.dts b/tests/testdata/empty_overlay-overlay.dts
new file mode 100644
index 0000000..00c2422
--- /dev/null
+++ b/tests/testdata/empty_overlay-overlay.dts
@@ -0,0 +1,4 @@
+/dts-v1/;
+/plugin/;
+
+/{};
diff --git a/tests/testdata/overlay_no_symbols-base.dts b/tests/testdata/overlay_no_symbols-base.dts
new file mode 100644
index 0000000..025dae4
--- /dev/null
+++ b/tests/testdata/overlay_no_symbols-base.dts
@@ -0,0 +1,7 @@
+/dts-v1/;
+
+/ {
+ x: x {};
+};
+
+
diff --git a/tests/testdata/overlay_no_symbols-overlay.dts b/tests/testdata/overlay_no_symbols-overlay.dts
new file mode 100644
index 0000000..2030c45
--- /dev/null
+++ b/tests/testdata/overlay_no_symbols-overlay.dts
@@ -0,0 +1,4 @@
+/dts-v1/;
+/plugin/;
+
+/ {};