Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1464372rwb; Fri, 28 Jul 2023 09:44:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlGB1iQXQEKS2Wy/Q34BoLwzE/DahBVgQRGvquLN4yQKOst7UK5GJOVhZSuBSkv+X69lNoGP X-Received: by 2002:a05:6870:330a:b0:1bb:74cc:de41 with SMTP id x10-20020a056870330a00b001bb74ccde41mr3750565oae.10.1690562651513; Fri, 28 Jul 2023 09:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690562651; cv=none; d=google.com; s=arc-20160816; b=uy8+mnBNL8BQZIQ9FYZ/uWpzRwbjwfwPQ9esQ2NWf6pbJvgd6Dmh7NG1brSaFV/WM8 Qb1Vb/EmHwunS29rSc8cKtTXxU8FBnRN924DomAH9rq0vy+5Xk1CE04Ai8nu4v5GRw9h q+yln7cGolPQ54+V1Q/pIT+yluATkkCuCz4j3T53WmOSDgDlbi2vZbyYjqgAAiY83cSr gbDu2lYQFsdmpBSsRZm9EE7B9e9FCByXK9LGt9vzeU69JTCHPiLavbMFpLz9YcGbH4wH b6ug2xKDPydp306iIF2lxUNRH8XUCTQn4a7Kcn6X3SYyB/DXbiF9Ks1OPI7wW1JTWyXb dlEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=M8Xfji5MCLLaE7frCPzygpU6pMNDLAHCtC8fbv7k/vI=; fh=j6L+uVtzJZqXE2DwNxEp+xVr3d5QX+4t1Wa1bWrjFSE=; b=DvfhKUpbLHkAMOhPZlN3byvAkfznSV/n99JcwfX2t4oE3ujHoOXWdpiOGrXDq66oop xlETe2a8VGR/5lSYk8kRQ3nr7dWtQk0n/C6ZEsddE0XBRrN0V3rDi0GPyG7Yhmqfhf3I x3wuE1hGhOblnWio9trR99gfx5ASC5r5FWrVeOGWcjP6d+hSA3ehXFGLnayUzhKiFFW8 oGQXEYRNQgl9NQ5rh55IQCnwwlPzKt1k2uPm28W2cDf3s6lsXh0DjPURBnEwSl1ecvy8 BzZG6E67QeU5aDVQxEZ+6+xzIU4draqopq0yBInB9EZoNpJ+sbcwHWVFeB2CE3szm0ca mwiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NGZ+3Klz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a6543c7000000b00563eda6a8fesi3109777pgp.774.2023.07.28.09.43.59; Fri, 28 Jul 2023 09:44:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NGZ+3Klz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237435AbjG1Ppd (ORCPT + 99 others); Fri, 28 Jul 2023 11:45:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233818AbjG1Ppb (ORCPT ); Fri, 28 Jul 2023 11:45:31 -0400 Received: from mgamail.intel.com (unknown [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 125D4E0; Fri, 28 Jul 2023 08:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690559129; x=1722095129; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=WiBMoGQQC4NhBoCp+ki275V6Cbp6pdJOqJCv6Im1MbM=; b=NGZ+3KlzIh3mjxy4GMcD+Dk/AlChoILmA1SRcd5RqEmbEg6d2r1FbuPG rwDwEa43Os+onCfQoODW5Y0F1ya8x0upK0hEuzlqNZPFw2lsqvXxKEh62 elB4lQwdm2yicXTojwYzhuBQ3bJx2nchQ28XT2Wvxo9DZk82BB6x2qtE+ 473WbF89FYsTLSLfkNExbqlQzRMDcTUHYcuhc9sqI3kTaIDj9wd1swSsV yAtXhd+p0oBlfFfQbiLUVLJXe0jWDCHEaiercdb6ncihjvdpCZRjlZmkn +iR4goWVxLzElBaofF8s/H766ezBQsBRefPrrZ8Jd8ECi3O2c0vS15Ay6 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="371323327" X-IronPort-AV: E=Sophos;i="6.01,237,1684825200"; d="scan'208";a="371323327" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2023 08:45:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="817557438" X-IronPort-AV: E=Sophos;i="6.01,237,1684825200"; d="scan'208";a="817557438" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO jkrzyszt-mobl2.lan) ([10.213.24.93]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2023 08:45:26 -0700 From: Janusz Krzysztofik To: Brendan Higgins , David Gow Cc: linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Mauro Carvalho Chehab , igt-dev@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] kunit: Expose some built-in features to modules Date: Fri, 28 Jul 2023 17:44:20 +0200 Message-ID: <20230728154419.1810177-5-janusz.krzysztofik@linux.intel.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Submit the top-level headers also from the kunit test module notifier initialization callback, so external tools that are parsing dmesg for kunit test output are able to tell how many test suites should be expected and whether to continue parsing after complete output from the first test suite is collected. Extend kunit module notifier initialization callback with a processing path for only listing the tests provided by a module if the kunit action parameter is set to "list", so external tools can obtain a list of test cases to be executed in advance and can make a better job on assigning kernel messages interleaved with kunit output to specific tests. Use test filtering functions in kunit module notifier callback functions, so external tools are able to execute individual test cases from kunit test modules in order to still better isolate their potential impact on kernel messages that appear interleaved with output from other tests. Janusz Krzysztofik (3): kunit: Report the count of test suites in a module kunit: Make 'list' action available to kunit test modules kunit: Allow kunit test modules to use test filtering include/kunit/test.h | 14 +++++++++++ lib/kunit/executor.c | 51 ++++++++++++++++++++++----------------- lib/kunit/test.c | 57 +++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 99 insertions(+), 23 deletions(-) -- 2.41.0