From patchwork Tue Jan 31 00:02:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 92920 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1691843qgi; Mon, 30 Jan 2017 16:04:33 -0800 (PST) X-Received: by 10.99.229.17 with SMTP id r17mr26826927pgh.81.1485821073402; Mon, 30 Jan 2017 16:04:33 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n19si9687456pgk.293.2017.01.30.16.04.33; Mon, 30 Jan 2017 16:04:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754671AbdAaAEF (ORCPT + 7 others); Mon, 30 Jan 2017 19:04:05 -0500 Received: from mail-pf0-f175.google.com ([209.85.192.175]:35997 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754625AbdAaAEC (ORCPT ); Mon, 30 Jan 2017 19:04:02 -0500 Received: by mail-pf0-f175.google.com with SMTP id 189so95609532pfu.3 for ; Mon, 30 Jan 2017 16:03:05 -0800 (PST) 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= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aLK7m50A6ATrZaE+wZ9+AMEOOsOROlKzoFirDcDDRl8=; b=l090SBkf4pz4oq7PuaX3Cp5gdFWhW8nKZivFTXWjGD3BWpsohUb/z80F5XdEYTmKy5 rQHCpVuvVQmXVzoq0oKvLCwf2miLLwCMiTiLHMP58fIlE2szLy8v2UZY9PS/DOYLVboc 8MuZgkkGedbPjaGME2uNYEqsgglLy21GSxK2DTUJyvTELCl89FJftoB5VvOyFkQdbp/j QkLZWuA1eAA7jSZGq5S3iWMvrgSwyyQDReOJ0WwFBiVrbsgROCaHt9SBR6wTjZ9Bqc+W fNwwVrBLQGaCKgmkraWoq7jCQxCSzhlbeqQoFavj47PovurCTWkNGNGnMkXQEVpNJgxl /2NQ== X-Gm-Message-State: AIkVDXJjGFvJUlN0/6u2w1OAOH01Ch6K7JZjV5vY8WaeXWYzw6mk6XJbwEjLiruZ7xkJyShh X-Received: by 10.98.192.72 with SMTP id x69mr26298091pff.129.1485820985503; Mon, 30 Jan 2017 16:03:05 -0800 (PST) Received: from localhost.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id e189sm35301942pfg.64.2017.01.30.16.03.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Jan 2017 16:03:04 -0800 (PST) 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(+) -- 2.10.0.297.gf6727b0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 () {