From: Stephen Boyd <stephen.boyd@linaro.org>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>,
devicetree-compiler@vger.kernel.org,
Frank Rowand <frowand.list@gmail.com>,
Rob Herring <robh+dt@kernel.org>, Mark Brown <broonie@kernel.org>,
Grant Likely <grant.likely@secretlab.ca>,
Mark Rutland <mark.rutland@arm.com>,
mporter@konsulko.com, Koen Kooi <koen@dominion.thruhere.net>,
Guenter Roeck <linux@roeck-us.net>,
marex@denx.de, Wolfram Sang <wsa@the-dreams.de>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-i2c@vger.kernel.org
Subject: [RFC/PATCH 3/4] tests: Add a test for overlays syntactic sugar
Date: Mon, 30 Jan 2017 16:02:58 -0800 [thread overview]
Message-ID: <20170131000259.28576-4-stephen.boyd@linaro.org> (raw)
In-Reply-To: <20170131000259.28576-1-stephen.boyd@linaro.org>
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
next prev parent reply other threads:[~2017-01-31 0:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-31 0:02 [RFC/PATCH 0/4] New style overlay and /expansion/ support Stephen Boyd
2017-01-31 0:02 ` [RFC/PATCH 1/4] Start moving overlay handling from parser into dtc core Stephen Boyd
2017-01-31 0:02 ` [RFC/PATCH 2/4] dtc: Add syntactic sugar version of overlays Stephen Boyd
2017-01-31 0:02 ` Stephen Boyd [this message]
2017-01-31 0:02 ` [RFC/PATCH 4/4] dtc: Add /expansion/ support Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170131000259.28576-4-stephen.boyd@linaro.org \
--to=stephen.boyd@linaro.org \
--cc=broonie@kernel.org \
--cc=david@gibson.dropbear.id.au \
--cc=devicetree-compiler@vger.kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=grant.likely@secretlab.ca \
--cc=koen@dominion.thruhere.net \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=marex@denx.de \
--cc=mark.rutland@arm.com \
--cc=mporter@konsulko.com \
--cc=pantelis.antoniou@konsulko.com \
--cc=robh+dt@kernel.org \
--cc=wsa@the-dreams.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®