Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10905223rwp; Fri, 21 Jul 2023 06:43:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlF49DGOXb4QWxPLBMMuHoWYgiMLQVjTH6IBJLY2Rbj4+1DiHZ3Bjx7NMF9irDpnUlTVyZIx X-Received: by 2002:a05:6358:9389:b0:134:c984:ab74 with SMTP id h9-20020a056358938900b00134c984ab74mr14459rwb.9.1689947012887; Fri, 21 Jul 2023 06:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689947012; cv=none; d=google.com; s=arc-20160816; b=g5kq41YpXtnbHx2rbDlH/l9e7d+N7aaisv2XgIZHb2jfu8skjwiHaG0QP5KHBlBbFi gv0zf7D5JwKZw72EhIvQvB+3C1o4RHoWt7W4ZGzAjletXA3d3rFss9I7RObHef6yYt/z Bed17aXQx18xXTm+HAtHasLebDJy17o8IcRcmKN9TeRUYbuLoZLONlX9HluCdg3FfV+w JvXcajOzVcKHzsGzLie8Ahlji7pVeTVqAM8HkW7Wwnr88LVx291ikLIxE6IfxrHbkwB0 lh70nDSaPgtWxAP+5QFzM/zj2hEkNhdX1k2jt2AVXBSQf0S+cmr9tzvZsEkibuA9c+ue x6gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TBviVo2YCYk6wBz9qhlBlYnUf+jNmq24U4CHYLoI6ho=; fh=W9OZRIKMzCZB87nwYAo97jL/XFEzLbHqCQ4j+2z8Yy8=; b=Q7bwg2g3G7IK+VRZtse9f0gph4oLcfpLYueBDaaw0peBLWAr84ei9Fr8KjwDWykwlX nIBN7Sn7TRSy/N6BDDYHxFMmpcfHOTH2S1fXl8UDWk11T6TcsaggGVpDBdvVIWFeJluF JXqbqVu/4df60fsyyax1dZg2Y4tAQl8bi9h9nY/jMHIn9LDQ6YupaftXW265pwlHajCG cMtoWLMrISdcnZK0fIVdwU1XyQYvHKk3v+B4+0TT98R4ZMqhg7pgcsVshmdzUv4km4QA r7Bj9ZFRH33e2OAireHtVgvCOApYtxtPbg8ZMKLCLR6cbWttilGCJJQXi/Zk6dqP6hvC 9sJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=K5PqIS3A; 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 e6-20020a63d946000000b0055c79555b90si2999739pgj.333.2023.07.21.06.43.20; Fri, 21 Jul 2023 06:43:32 -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=K5PqIS3A; 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 S229942AbjGUNGy (ORCPT + 99 others); Fri, 21 Jul 2023 09:06:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjGUNGx (ORCPT ); Fri, 21 Jul 2023 09:06:53 -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 0B34B186; Fri, 21 Jul 2023 06:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1689944808; bh=uAbqpW0mCjT8oGIUYcnVjGBCNUBwNX7ZG9PVeODXoeI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K5PqIS3AnzWItiRTglgDXu27z0WCFqA8OC2lj5hWOjCcUh2iprmE9+ekRakJM5IkX 30/65kKx68K5jug0YWv4fisQUtgfiMxyDaFPyU+01+bu1cijnuGMDvE5ks4Wjq1E2m SwbHV9//HmSkq4Yd0R9XGV74khrLI0txJrCtnjdI= Date: Fri, 21 Jul 2023 15:06:47 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Zhangjin Wu Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, w@1wt.eu Subject: Re: [PATCH RFC 7/7] selftests/nolibc: proof of concept for TAP output Message-ID: <1a895dac-f37f-4569-944b-c311a94e3c93@t-8ch.de> References: <20230719-nolibc-ktap-tmp-v1-7-930bd0c52ff1@weissschuh.net> <20230720152940.7623-1-falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230720152940.7623-1-falcon@tinylab.org> 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 On 2023-07-20 23:29:40+0800, Zhangjin Wu wrote: > The result looks very similar and the change seems not that big, thanks. > > I have a generic question: do we need to compile nolibc-test.c > independently or at least let users easily compile nolibc-test.c in the > other places no just in kernel source code, for example, the other libcs > may want to download and compile it directly. > > The functions used in this change seems not many, is it able to provide > our clones for them or only provide the clones when we compile them > out-of-kernel. > > for example: > > #ifdef NOLIBC_TEST_IN_KERNEL > /* -DNOLIBC_TEST_IN_KERNEL from Makefile, for future compatibility */ > #include "../kselftest.h" > #else > // our clones of the used functions, for standalone usage > #endif I'd rather just disable the functionality instead. Willy also asked to stick to the current formatting by default and enable KTAP with a switch. So everything will be behind generic wrappers anyways, so we can drop the KTAP functionality from those wrappers easiy. Thomas