Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1570196 > unrolled thread

[RFC/PATCH 3/4] tests: Add a test for overlays syntactic sugar

Started byStephen Boyd <stephen.boyd@linaro.org>
First post2017-01-31 01:10 +0100
Last post2017-01-31 01:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [RFC/PATCH 3/4] tests: Add a test for overlays syntactic sugar Stephen Boyd <stephen.boyd@linaro.org> - 2017-01-31 01:10 +0100

#1570196 — [RFC/PATCH 3/4] tests: Add a test for overlays syntactic sugar

FromStephen Boyd <stephen.boyd@linaro.org>
Date2017-01-31 01:10 +0100
Subject[RFC/PATCH 3/4] tests: Add a test for overlays syntactic sugar
Message-ID<t5ubg-28G-19@gated-at.bofh.it>
From: Pantelis Antoniou <pantelis.antoniou@konsulko.com>

Add a single test making sure the &foo { }; syntax works.

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
[stephen.boyd@linaro.org: Update test to add required root node]
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
---
 tests/overlay_overlay_simple.dts | 3 +++
 tests/run_tests.sh               | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/tests/overlay_overlay_simple.dts b/tests/overlay_overlay_simple.dts
index 8657e1e7a15a..ab19cc723210 100644
--- a/tests/overlay_overlay_simple.dts
+++ b/tests/overlay_overlay_simple.dts
@@ -7,6 +7,9 @@
 /dts-v1/;
 /plugin/;
 
+/ {
+};
+
 &test {
 	test-int-property = <43>;
 };
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index ed489dbdd269..e2fb084b4434 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -231,6 +231,12 @@ dtc_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__"
+
+    # Test simplified plugin syntax
+    run_dtc_test -@ -I dts -O dtb -o overlay_overlay_simple.dtb overlay_overlay_simple.dts
+
+    # Verify non-generation of local fixups
+    run_test check_path overlay_overlay_simple.dtb not-exists "/__local_fixups__"
 }
 
 tree1_tests () {
-- 
2.10.0.297.gf6727b0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web