Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7413952rwp; Tue, 18 Jul 2023 15:11:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlEm0KTm/PfaqPnYrU7pnHnnFeD5obpEmoQf2jThIrS+sQXTdJB4V2UNgYJpO9hABMyDPZbN X-Received: by 2002:a05:6e02:12e1:b0:346:66f6:4da2 with SMTP id l1-20020a056e0212e100b0034666f64da2mr4901292iln.10.1689718275204; Tue, 18 Jul 2023 15:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689718275; cv=none; d=google.com; s=arc-20160816; b=W+pIH63+4KE6o8GTD5lLNE6ST83LFSpqeeb1VbsVWGEaJGVFiyUqUzBtmPwJ+cVgdB Kj44RSlNuJxf+tBZRaozj80cIlHb5TqrtaRg3VH1n0amsLMaWzKXbdKKd5wsRMU0cXMB QIJF9iFK7i9jX8o/ddQIYZtbdbo+I1uOb/kySdtuJG/30R6oo1na4gZ2bsOz3KKQGYy5 PFcvULVLcSd1hWgtnIbrI9lqnq3EPK4ZbEoDOBpHLzF1OzwmxSbGIqI0zr71tpDYisXj 0OfMJ4nxYvGcUJ9YbVvLYFkCezBSQwOUG8x7meiHGeFdsIEjhBYUMg/GWwmUFfPKaflD zz+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=4rZWj7vCNfEqV98IpZSZVzv3dU0VorCeF1Ad6UZOXl8=; fh=0DdKI3uRySxQzlTRy49d6VQh77umZfyWRaD7hOgQCS0=; b=0bimVjHnGsFEBkhLeiOvUMsu0KWLxvWM/iuwUl9plUYuWr4k16AUWJPGr1k6T7vHxJ je+nNbm8TYjh7cBoehYMBHHHl4tok477Y9bDLYcSnKSO2WpvOCZ739asaNzn2DRdObw9 /g3ynAxW1TjWDkStyqnG7RclnwllGLwNvu/6Ga2439exYANVC0VJb+GNdwLPHrH+O1kP emeHOx+LkzuLzOfp6lYKC6JFFPqnf4uo+yy0dXImWV47ScMBQxFBHo+e+xfVvzRGBQfc M5AduB2A06/6R1KbiByvMs2OdfezwurAj85dQ8rGpCIpgYtvW2QlOtsHn7JEDgGxfqMG Os+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="NPeS/3iY"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oc18-20020a17090b1c1200b00255fb1f4a17si164205pjb.42.2023.07.18.15.11.03; Tue, 18 Jul 2023 15:11:15 -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=@weissschuh.net header.s=mail header.b="NPeS/3iY"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231386AbjGRWGF (ORCPT + 99 others); Tue, 18 Jul 2023 18:06:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbjGRWGE (ORCPT ); Tue, 18 Jul 2023 18:06:04 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EB871998; Tue, 18 Jul 2023 15:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1689717870; bh=YqZjg8FJSrMkBkCofVYWpCEZm+a1T8K7Shk7yEsIFhk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NPeS/3iYy+jey15HonR2ocm81ly6VV/WH7+0MM9aTdPSvy8ZAw8kLsM8dB1tVi+Es AgaTQbFkkhLx4pGOh5iAbGKOjIYD0k+/mWw7frw30Oiuuwt3ZPbXyivjlq+dRKIu62 Pr9nDVliPXk0gkyousMuoJ5nqH8hAAKRXN18XXL0= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Wed, 19 Jul 2023 00:00:43 +0200 Subject: [PATCH RFC 5/7] kselftest: support KTAP format MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230719-nolibc-ktap-tmp-v1-5-930bd0c52ff1@weissschuh.net> References: <20230719-nolibc-ktap-tmp-v1-0-930bd0c52ff1@weissschuh.net> In-Reply-To: <20230719-nolibc-ktap-tmp-v1-0-930bd0c52ff1@weissschuh.net> To: Willy Tarreau Cc: Zhangjin Wu , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1689717869; l=831; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=YqZjg8FJSrMkBkCofVYWpCEZm+a1T8K7Shk7yEsIFhk=; b=hB2BE0mFLdkCFJKShYDy6EPP2LB0tt6wHpWoT2KvdNGGKgEDYRpl305L7NC3YXuiwwbLs68cB crzHnhCEyrSD1sh+t1ly7VPJJMRPm6i9IGP72eVLTCb3GzCgWQgxLni X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,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 KTAP supports nested suites which we want to use for nolibc tests. The TAP parser at tools/testing/kunit/kunit.py requires the header "KTAP version 1" to parse nested suites. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/kselftest.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h index 829be379545a..811d720d50dd 100644 --- a/tools/testing/selftests/kselftest.h +++ b/tools/testing/selftests/kselftest.h @@ -117,6 +117,11 @@ static inline void ksft_print_header(void) printf("TAP version 13\n"); } +static inline void ksft_print_header_ktap(void) +{ + printf("KTAP version 1\n"); +} + static inline void ksft_set_plan(unsigned int plan) { ksft_plan = plan; -- 2.41.0