Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4206081imu; Fri, 30 Nov 2018 12:53:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/WF91VuRElpQ5LI428lUVZoWE2EINSC7pQa2dcM+o0k/bA4y3arLl4/WKoeYV9i3LKRp6/v X-Received: by 2002:a62:2f06:: with SMTP id v6mr7188001pfv.216.1543611237686; Fri, 30 Nov 2018 12:53:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543611237; cv=none; d=google.com; s=arc-20160816; b=lWRVmXn8fFJRrzumba4E+/R9uGzsMoBvAKo2GYX/B3ewtmRFOX+lkxWbbhdU6q380G cpHZsJCjTGxSry82fTANQEGky7KJuq1nuIS7zuEitBLSrecesKcUoXxNQntONIKsrq48 AhSJmVbHp/se0mT+q7tT6PudwfmzeP4Sgj1ewRJDvo3cDXoa8h8/IM2eybVixppciZE4 81Pz+qMwyrP0Bse1jsnbkwfQsU5xJrmzeEFhhp6rTePafQJ+aJ3JpxlvMXySXKFVw2rU iwdIoAHuxJgzeA2E0c401396KKR1x8+E/WxOUbynsfw/M7p5G7fZ9WdBTn2BwZrTAajS k8HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LQT07zpH8VlhiwokL9dcy7hMdcyeQevUNzb6WWQalQE=; b=aK9xKNkNqmyDjMHkIxx+tueTo3QVzkCDcBYlH1JYArycEF6yFk7V0cBvfm3WewQDvD bxwv0mUbhq1XH0a1oM1BLvr5CXwaBm6OpXGWvk/KNsiTzGjE0fPtdxJKEWrBvaU7LU8D R6uPYTJOslteVzllmLsgYNQ6dHtmsH1yWZQ/WQNPGM810fV6n4hGG/Uv7w6cq2Sb62zv oRKjZLmIlGPRJ8dPLuvEp7miEUpWgP3CY7npTDH361McHDh9JfrTcff4rlpyDBhEzyjK kt13ii+9VPOgUUTvAHd9eW8awA8LPxfdgPNJSGPmi3a5HzpgL0r98Dn83vkErTdPXO0u sRZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Mj+8EZE+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e89si6599883plb.401.2018.11.30.12.53.42; Fri, 30 Nov 2018 12:53:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Mj+8EZE+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726340AbeLAIDh (ORCPT + 99 others); Sat, 1 Dec 2018 03:03:37 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:33312 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbeLAIDh (ORCPT ); Sat, 1 Dec 2018 03:03:37 -0500 Received: by mail-io1-f65.google.com with SMTP id t24so5663626ioi.0 for ; Fri, 30 Nov 2018 12:53:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LQT07zpH8VlhiwokL9dcy7hMdcyeQevUNzb6WWQalQE=; b=Mj+8EZE+z9/3QghjxxOt3fLkaVqGrB/sdkoB/zQbF4W95setXpSlETIcGE6rtiKLwN LX/TyPnuQ6KlJhO9SuPki2naKmoYJMhX+LR9UBN811z3sWyEpkQwixiqoqI7BIOycVIJ gK2gMI1nV541KDwqLi1B9jadcnDpdvn3WovP8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LQT07zpH8VlhiwokL9dcy7hMdcyeQevUNzb6WWQalQE=; b=dH+GaIL9zHL0t0m0C1GQbEpbICOEipnJa3IjB2iVmcPcuKXkyDQP1TBtUWcNjgcGNb k7bCkL5toKcqU1O4iSmA4sS8KHl8hHPO7PKEaMGD3AG/DDLZdsGLEa9cX/vPCkBegwnK E6Jg+zAWq15GELIjePpiiZ7OgIC6WbW1j0blUb7J1r+5OllwiM+3zmw6JXzc8StCa9ts lI9mbV2kyFAWJsdrN7ao20mRHB6i+peV8Er6wiJVNkHqNvUY+LZa/DKVqrwgDvGknq3U yd+AEL48461ombwHl2LOdtkLCrYHjFUNAF3FtN6OK9eu7iQHOZ5xmQVu5MzibQTf7Zoh C+qA== X-Gm-Message-State: AA+aEWaLmZseqsr5l67kotDRp25K9stAoNrtM0JWug4NUsv10i5qeyqQ YNE9VnP/HytcS6HjE2CPVbyNg2CokVMMNWaCSh3J0A== X-Received: by 2002:a5e:d514:: with SMTP id e20mr6761523iom.291.1543611184408; Fri, 30 Nov 2018 12:53:04 -0800 (PST) MIME-Version: 1.0 References: <20181130203232.5743-1-robh@kernel.org> In-Reply-To: <20181130203232.5743-1-robh@kernel.org> From: Daniel Vetter Date: Fri, 30 Nov 2018 21:52:52 +0100 Message-ID: Subject: Re: [RFC PATCH] of: Add a GitLab CI config file for unittests To: Rob Herring , dri-devel Cc: devicetree@vger.kernel.org, Linux Kernel Mailing List , Frank Rowand Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 30, 2018 at 9:32 PM Rob Herring wrote: > > 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 Adding dri-devel. > --- > drivers/of/.gitlab-ci.yml | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > create mode 100644 drivers/of/.gitlab-ci.yml > > 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 I think it's better to include the docker recipe too. One because shipping pre-built dockers is a license nightmare, second because better hackability. For a full on example see: https://gitlab.freedesktop.org/drm/igt-gpu-tools/blob/master/.gitlab-ci.yml For the kernel I guess the question is where we should put all the docker files. There's going to be some need for subsystem specific tooling (e.g. we want something that has igt installed eventually for anything drm), so maybe just keeping them in subsystem directories is best. Was at least my plan with drivers/gpu. Needs latest gitlab to make the build-on-demand stuff work, but gitlab.com has that. -Daniel > + > +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 > -- > 2.19.1 > -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch