From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C996AEB64DD for ; Tue, 18 Jul 2023 17:14:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232654AbjGRROk (ORCPT ); Tue, 18 Jul 2023 13:14:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231582AbjGRROh (ORCPT ); Tue, 18 Jul 2023 13:14:37 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D6F3C1710; Tue, 18 Jul 2023 10:14:31 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 36IHENeq014396; Tue, 18 Jul 2023 19:14:23 +0200 Date: Tue, 18 Jul 2023 19:14:23 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Zhangjin Wu , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: nolibc: KTAP output and test reports Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, On Tue, Jul 18, 2023 at 09:31:06AM +0200, Thomas Weißschuh wrote: > Hi Willy, > > On 2023-06-08 00:15:27+0200, Thomas Weißschuh wrote: > > after your recent discussions about the test output and report I > > wondered if it would make sense to switch nolibc-test to KTAP output > > format [0]. > > > > With this it would be possible to have a wrapper script run each > > architecture test as its own test subcomponent. > > A (K)TAP parser/runner could then directly recognize and report failing > > testcases, making it easier to validate. > > > > Also maybe we can hook it up into the regular kselftests setup and have > > the bots run it as part of that. > > > > The kernel even includes a header-only library to implement the format [1]. > > It also should be fairly easy to emit the format without a library. > > Did you have a chance to look at this? > > If you are not categorically opposed I would create a proof of concept > for further discussion. I remember I had a quick look but had no opinion about it: it's not very clear to me how this will be consumed because I don't know the tools around and cannot invest time learning them. If you think it can bring some value without complicating the usage, maintenance and contribution of what we currently have, maybe let's give it a try. But I would like to be sure we are careful about preserving the current ease of use, as I'd hate to have to go through the makefile to figure how to get back the simple output format that we can trivially read or grep without any extra tools. That might for example mean that we'd need an option to change the output format (and I think it's possible because most of the outputs are done inside wrappers). But in any case, feel free to explore, experiment and share your findings. Hoping this helps, Willy