From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: [RFC/PATCH 3/4] tests: Add a test for overlays syntactic sugar Date: Mon, 30 Jan 2017 16:02:58 -0800 Message-ID: <20170131000259.28576-4-stephen.boyd@linaro.org> References: <20170131000259.28576-1-stephen.boyd@linaro.org> Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aLK7m50A6ATrZaE+wZ9+AMEOOsOROlKzoFirDcDDRl8=; b=cVt1k2MOn35ghYj5n1PKuOxQm7DB7YvmsSE/BoCf8UOA/S7uTBHmGVXwxTvXTmAM8e Yyvgw58vtCncIIujMtInT4IPIMfe79C6cVxoA+B4sXi1LhKPTLhe4c1vGNNWhbjr1MYu g0hVN+i6Uv1Egjagk7KYB6HYxENXCLkdWu78s= In-Reply-To: <20170131000259.28576-1-stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: David Gibson Cc: Pantelis Antoniou , devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Frank Rowand , Rob Herring , Mark Brown , Grant Likely , Mark Rutland , mporter-OWPKS81ov/FWk0Htik3J/w@public.gmane.org, Koen Kooi , Guenter Roeck , marex-ynQEQJNshbs@public.gmane.org, Wolfram Sang , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org From: Pantelis Antoniou Add a single test making sure the &foo { }; syntax works. Signed-off-by: Pantelis Antoniou [stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org: Update test to add required root node] Signed-off-by: Stephen Boyd --- 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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html