Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5462825ybl; Tue, 4 Feb 2020 14:36:48 -0800 (PST) X-Google-Smtp-Source: APXvYqya/W3/CPi3owIyaBMQKrW2OyuqZbEsRAAK9OaJA3x6daLQXHmWjwLykYMmpG0QYWbeRMLX X-Received: by 2002:aca:458:: with SMTP id 85mr923384oie.56.1580855808146; Tue, 04 Feb 2020 14:36:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580855808; cv=none; d=google.com; s=arc-20160816; b=CbxR6eT+8o6vLatN+nPSFTXrHYD/v4Gn0VoDk03ouQo3g31dI5rEqNapxI6D3agec7 F8Ut6Cnj7k031Lm2MWMn5FxfuJBJh7dftvcSV5Xjpjlj04TuI6S+j1eYK3DpTqBTe35f Q0XklIpczvD8HZr+BfDDScTazILRL/+zOmSTBmLa9RNNKVKwr/doPzMmFUWDR3MVTzHW ZG8MYaDb3nZwN9HboIYTaI1DrfTl0oinJNeuS2WubpVecXmZgj3JPn96jDya5g/OMLyC 9dSaUrRZsKDWHQbMS7syq34wT8/u6le175Wd0xj2lLfz2tXbxRN95WXngaeBK8BhSfAH 2ihQ== 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=wW0tjd+cBxeR6/lhPUUjx0fEpBoP1LYYTT0FsIiI1ho=; b=vFyjF6o/au4jdr6P7oNqj/O/yIsx8Krjh9Bq7iZyQiysU6GEn/KW4qejCZ1H+lIAvl RzAK4DsUJRZzq2oCjZRapEodSqXmRU6m1BFsCMFNUpj+IkjlKwXGuAxqmZpjlh3ZoMaL d/dXFeCbwGPcNpYWNv0v682sxPQT4r5hhWjjaGQ880rhFkXUXAPIhq+DL3LgNR5qkB6A k/gtv8FoFJKIBHJojV+tUcLzs8ESG7C454375kuhrwDjVgCYLm+gOQzzILXLYD7E4FbW 1tmg4d3BxLhfnA9N5f+DDdQfHOhNOmVWy37Ri6THtJ8GnZ5wtrA9g/gTayXp1K9i1ivj 8vEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=icGZp+gW; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si12698664oto.74.2020.02.04.14.36.34; Tue, 04 Feb 2020 14:36:48 -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=@google.com header.s=20161025 header.b=icGZp+gW; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727619AbgBDWfl (ORCPT + 99 others); Tue, 4 Feb 2020 17:35:41 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:35921 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727566AbgBDWfk (ORCPT ); Tue, 4 Feb 2020 17:35:40 -0500 Received: by mail-pj1-f66.google.com with SMTP id gv17so62497pjb.1 for ; Tue, 04 Feb 2020 14:35:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wW0tjd+cBxeR6/lhPUUjx0fEpBoP1LYYTT0FsIiI1ho=; b=icGZp+gWX8+ra8EaRzj0omZeGdmp0NxlbomRJ1M8RaU/WQNP+zqgYuJZSPFcaiWcnZ 2pCWkyEpTMGGCi9alcZbNMp01PJ6HAZzwmE6trVB6wWJfukGW4fmAYtsgfiXedtOqqRT bmFSWApPulYRdVfiU3CIZn8jePJi3U2HzSVo++6ZSgzVHry0vhZ3v1h/qeuxOx83W3He S2QBe7oA9erOEncvfIOndMP6l3GHqBJB+9L+ElZ0vc5VnS5GueU9EJ3BnmcLAsA1zQb2 zG+yXK+320g1OiPoDFO6spKz5/W1GSM7NskP7wp/j9iQ7LQ71cVXLbv42DtWh8/5ZB7g 33Tg== 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=wW0tjd+cBxeR6/lhPUUjx0fEpBoP1LYYTT0FsIiI1ho=; b=JJjxURX5lpI4BmuywhAgJt9nMMFrKUmylWbeL4k4uYqg3m6kaL8gIfIdaTKcslfOFC R8Msdh0B+M5M6VCQQ9Aiauw+5AfWa2IXBGUppZlm33Z46oWYwzqFwzX1bm1tgT/v6fmn /vG+bt6CvVjOFcCYhJs7Q2qAXbgDCj8xboZtGwU/vmX1amHAlAee17x1TzQv0cIcfuz4 uRv3PrJVmMwXP8o/YrJ1XIwsz57C+rnrea719qHVjTIDj3VG/IKLHmDvdeEsE6K01UVa K+eLwBDBi8wZHtv+hw3BrNbcx3RJwO8gVQD57LaDGw3lxj90NnIQzVLNSYlT+PZBMpeH iCEg== X-Gm-Message-State: APjAAAVEVBgHRVtt9zSfXBmdo1cnOwJ5GO60cvj5k0BSbEmhHh4TWggi VTPx/2wJqtqTRKJHK/EFWo7uCFUrjnEnb5CRUeqM1g== X-Received: by 2002:a17:902:fe8d:: with SMTP id x13mr32717392plm.232.1580855739838; Tue, 04 Feb 2020 14:35:39 -0800 (PST) MIME-Version: 1.0 References: <20200130230812.142642-1-brendanhiggins@google.com> <20200130230812.142642-4-brendanhiggins@google.com> <11977708-bb18-e322-db7a-9f21d7cdec54@gmail.com> In-Reply-To: <11977708-bb18-e322-db7a-9f21d7cdec54@gmail.com> From: Brendan Higgins Date: Tue, 4 Feb 2020 14:35:28 -0800 Message-ID: Subject: Re: [PATCH v2 3/7] kunit: test: create a single centralized executor for all tests To: Frank Rowand Cc: Jeff Dike , Richard Weinberger , Anton Ivanov , Arnd Bergmann , Kees Cook , Shuah Khan , Alan Maguire , Iurii Zaikin , David Gow , Andrew Morton , rppt@linux.ibm.com, Greg KH , Stephen Boyd , Logan Gunthorpe , Luis Chamberlain , Knut Omang , linux-um , linux-arch@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List , "open list:DOCUMENTATION" 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 Tue, Feb 4, 2020 at 2:27 PM Frank Rowand wrote: > > On 1/30/20 5:08 PM, Brendan Higgins wrote: > > From: Alan Maguire > > > > Add a centralized executor to dispatch tests rather than relying on > > late_initcall to schedule each test suite separately. Centralized > > execution is for built-in tests only; modules will execute tests > > when loaded. > > > > Signed-off-by: Alan Maguire > > Co-developed-by: Iurii Zaikin > > Signed-off-by: Iurii Zaikin > > Co-developed-by: Brendan Higgins > > Signed-off-by: Brendan Higgins > > Reviewed-by: Stephen Boyd > > --- > > include/kunit/test.h | 73 +++++++++++++++++++++++++++----------------- > > lib/kunit/Makefile | 3 +- > > lib/kunit/executor.c | 36 ++++++++++++++++++++++ > > 3 files changed, 83 insertions(+), 29 deletions(-) > > create mode 100644 lib/kunit/executor.c > > > > diff --git a/include/kunit/test.h b/include/kunit/test.h > > index 2dfb550c6723a..8a02f93a6b505 100644 > > --- a/include/kunit/test.h > > +++ b/include/kunit/test.h > > The following fragment does not match the test.h in Linux 5.5 or 5.4-rc1 (as one > possible earlier version). And we are not to Linux 5.5-rc1 yet. (Simple way > to check for the mis-match - 5.5 has kunit_test_suite() instead of > kunit_test_suites().) > > I know that there is an alternate tree where some of the development occurs. > Can you please add a link in MAINTAINERS? And please note (at least in > patch 0) what tree the series is developed against? Yep, I was planning on sending an update to the MAINTAINERS with that and some other updates soon. In future revisions, I will put a link to the tree I developed against. In the meantime, we send pull-requests from here: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git/log/?h=kunit And that is what I used as my development base for this series.