From patchwork Fri Nov 30 20:32:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 152589 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4094717ljp; Fri, 30 Nov 2018 12:32:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ujssk/jciGyyi3dwe9EiHKHCS9u4Sjx/N3A8TjBbgkL9vZPUZGa7Xh69A57XriQINp+sxC X-Received: by 2002:a63:554b:: with SMTP id f11mr6174010pgm.37.1543609958399; Fri, 30 Nov 2018 12:32:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543609958; cv=none; d=google.com; s=arc-20160816; b=Zy2DSWjHguxlI2hqjPM2//bGs1EUVqtZIFyODeR+0cTPBdge0HbOw3jFSWH7XbL6BQ 0hSVeezwAYCeDD6SQZj/UQ8i4KJqsD6EuXe5Prgy8P6osnhBbhObGmGn0LMPVr4POi+t nw/lceCyRJJmf/9HREsiU7jmGjBAunW68JmlTJtdRFJouSmXhWiqIy4b5SZuWkar7UCW tRe66RXmDV83gBrmWy7wNf/kFS49qkvL7131htqhCHg5LNqbKhsbcIGL29bD0Q1xeB9u jD5J7RbqyAnC2WS3mLjTkUiCp1Z6eV4Wzo1Vh83iaLse6E4/4lAVHetnyp5QS800jDeM 8bdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=tFbB9VVaPQ1F0JZ8j58+ADCTN6NJYVEdcYZ/7UyBiUc=; b=HYL3etFij5rszDFyQlwJAy7afU1IF7CiZ1J0HQ7MEwObCMpa3kXeyUR9QG4ZgFWZuR Jhp1WtBwn4JH+kpc8XGDFM/SZPZDQvb6A1TJex770FM+XNodzklf1EQQ7rg8p4dQ4MkC LvoIW8IzG7xgcUEyivRQWRjfa8xCbXu3im9jtuA81UP3Yl2RZF3LOqqSE0PRkoBNjz6z j6ptkO91PMUwftKNHOHCPeSxWB+QBSP108HWEjs+VxfjbvRYfdLo1ZHtfUSa5UbfNUL8 VT1okdCsRjzXvJtqWhpbMtFMaXd23/XZz6Z6I4COTlsWW/ALt8zbg2WluUM+4ztaekzM O5fw== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si6622879pfb.81.2018.11.30.12.32.38; Fri, 30 Nov 2018 12:32:38 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726056AbeLAHnG (ORCPT + 6 others); Sat, 1 Dec 2018 02:43:06 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:40257 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbeLAHnG (ORCPT ); Sat, 1 Dec 2018 02:43:06 -0500 Received: by mail-ot1-f66.google.com with SMTP id s5so6296694oth.7; Fri, 30 Nov 2018 12:32:37 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=tFbB9VVaPQ1F0JZ8j58+ADCTN6NJYVEdcYZ/7UyBiUc=; b=nmb4mzapDo5FrJyYY0OrC35t28oxq/y3crwHPT9UVkBmMIa7eKMo2A54RSzv+douT5 sPqpw5qfF1ETP4XsQk4twaa7QpEE5S7YSqtOePDwgXlRBgQDh4zyJ+2R5MOJqW1BIjVR FvD6JxjcGVutWE8cIgwfbhLqW00/UVLwtAvAwSD0SbDbuWW5jh8uC07RsGb2lkG4PYaO 38h4yr8ZpZSjG8QQwKWuaIaBWjnRbPx+vivSkY8irwJi5H3yZlJ/yzlcwZd/BYEKbqIN +08MSFABVEndsNjUF9/MFp0+6gkICTKx0Cbc0l7bBroDogXv3ImaBaWVl9xZ7/GqrxJV L5iw== X-Gm-Message-State: AA+aEWZMSe0wHXXknK7lPSvVRnI4IS8MMfBaQ8j6R52g1muphl+5cGbN uNChxBacE8BfF6dghuVWCVrbt18= X-Received: by 2002:a9d:6a09:: with SMTP id g9mr4584046otn.179.1543609956610; Fri, 30 Nov 2018 12:32:36 -0800 (PST) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id 30sm2550641ots.52.2018.11.30.12.32.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Nov 2018 12:32:36 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frank Rowand , Daniel Vetter Subject: [RFC PATCH] of: Add a GitLab CI config file for unittests Date: Fri, 30 Nov 2018 14:32:32 -0600 Message-Id: <20181130203232.5743-1-robh@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds a GitLab CI config file running the DT unittest in a usermode Linux build. The corresponding CI job can be found here: https://gitlab.com/robherring/linux-dt-unittest/pipelines This CI job can be duplicated by others by creating a kernel repo on a GitLab instance and configuring GitLab CI to use drivers/of/.gitlab-ci.yml config file. Cc: Frank Rowand Cc: Daniel Vetter Signed-off-by: Rob Herring --- drivers/of/.gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 drivers/of/.gitlab-ci.yml -- 2.19.1 diff --git a/drivers/of/.gitlab-ci.yml b/drivers/of/.gitlab-ci.yml new file mode 100644 index 000000000000..44a4824f5c33 --- /dev/null +++ b/drivers/of/.gitlab-ci.yml @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: GPL-2.0+ + +image: registry.gitlab.com/robherring/docker-images/ubuntu-kernel-build + +variables: + ARCH: um + +job-unittest: + artifacts: + paths: + - "*.log" + + script: + - echo -e "CONFIG_OF=y\nCONFIG_OF_UNITTEST=y\nCONFIG_OF_OVERLAY=y" > kernel/configs/extra.config + - make defconfig extra.config + - make -s -j $(nproc) vmlinux | tee build.log + - TMP=/tmp ./vmlinux > boot.log || true + - grep -E '\#\#\# dt-test \#\#\# end of unittest - [0-9]* passed, 0 failed' boot.log