From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754686AbdAaAFE (ORCPT ); Mon, 30 Jan 2017 19:05:04 -0500 Received: from mail-pf0-f182.google.com ([209.85.192.182]:33040 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754633AbdAaAEC (ORCPT ); Mon, 30 Jan 2017 19:04:02 -0500 From: Stephen Boyd To: David Gibson Cc: Pantelis Antoniou , devicetree-compiler@vger.kernel.org, Frank Rowand , Rob Herring , Mark Brown , Grant Likely , Mark Rutland , mporter@konsulko.com, Koen Kooi , Guenter Roeck , marex@denx.de, Wolfram Sang , 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 Message-Id: <20170131000259.28576-4-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.10.0.297.gf6727b0 In-Reply-To: <20170131000259.28576-1-stephen.boyd@linaro.org> References: <20170131000259.28576-1-stephen.boyd@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pantelis Antoniou Add a single test making sure the &foo { }; syntax works. Signed-off-by: Pantelis Antoniou [stephen.boyd@linaro.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