Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2872571rdb; Wed, 15 Nov 2023 13:09:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/eRtXVwbp74ro58OUdALc21gg0KyG2jdOwU+wQvl3Q7ZsA0WqGV0aoyfFEp95hhaeScws X-Received: by 2002:a05:6a00:1394:b0:6c6:1648:5ac6 with SMTP id t20-20020a056a00139400b006c616485ac6mr14587189pfg.5.1700082541126; Wed, 15 Nov 2023 13:09:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700082541; cv=none; d=google.com; s=arc-20160816; b=DmfMy2SFlYXbEgmPt5wM9090/MIlO0sqWD47sIxBnT/O7cHdESXS9387hJbE9/7Xif +SYyAMwx4VCKOqVw1cmm+RlSknh9bOEc64LwIxXKNhMe9/7WB3oPDxFINABO5iTwj2wP jFzG9gGLcTazxXhOFsuJyZiKJXBKe1LtxHpjdQpEGpGwwAvue9vR7Xxl2GQDA+Mu4p0Z nPLPP+XnEmF0ZS42qiR7sBcizFq7Qcg+r8Y8V9PnDN7jO8xJscQ47Lb2sMrCkXoB9899 lB4IxfHgNmGft7m8Ozd2gYzkMWQPCoJxi3UsvQXTx+UZzUrlfO15kHsH0+cqPse7sFyZ IfRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=xDf2TZmtpHid0wO8nJIJHMIfI83HkKnQ+DgaY1KC2S8=; fh=Qbk0RS4bf6GjbhGkpgFoVgYg5V+1DfWcZ6CAErfO2MQ=; b=fs5JaUbfWtuPpgVDsANxUtD4fTTupvh+xkxAualRgrAqPF3SgUcImI6Q7GRarIoA1F 8Pg9+8TexEs5DxZHBewmBfJNX56OM4foG2mnzJUML8wi0lSlEmzsq1UqP76GHm1LSJLH 27cFglJACKi+D8LsnCvIYkgBmvnvfIhtCAq/u7jbi19wz7yzUvziIT9M6nMR5xkhHGB2 hdtcwRTyvNXnIZxCuRFK7pLRlIejKU1xsleHoVyuAz+/da249e9EYHg/37AVkbevwSz4 w31zW1TJ0lH3OLfuih2mXq2gF0xFytQVjThPZ30nmu7QkisVW7zfr0oyDOy9TGHlBGQM zi/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=koQhOm6G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id d19-20020a631d13000000b005abe19be7e9si10830196pgd.543.2023.11.15.13.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 13:09:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=koQhOm6G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3F0788036931; Wed, 15 Nov 2023 13:08:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344782AbjKOVId (ORCPT + 99 others); Wed, 15 Nov 2023 16:08:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235581AbjKOVI3 (ORCPT ); Wed, 15 Nov 2023 16:08:29 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2156D196; Wed, 15 Nov 2023 13:08:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1700082503; bh=CTsA5lI8lYA3WInzrUfmp2TktRtuX8KANJ9jWl+c2CI=; h=From:Subject:Date:To:Cc:From; b=koQhOm6G5G1RG9ZKWXvmByD+QGyClLiOMkJb9OOolK+2P9sJ74045B1QbpGr1WSgm 4Bp1UB6KmItqigfIb18Mi1SyHnFqcprm7rWoCz+UJawiiT6Y/funPD4fvi13KXA3B8 3k8poHJU1j6TAHBvLL/8ZtsatHm7xEFL7xyZTCq8= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Subject: [PATCH RFC 0/3] selftests/nolibc: introduce new test harness Date: Wed, 15 Nov 2023 22:08:18 +0100 Message-Id: <20231115-nolibc-harness-v1-0-4d61382d9bf3@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAEIzVWUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2NDQwNT3bz8nMykZN2MxKK81OJiXSOLZFNLAyPLFPNEUyWgpoKi1LTMCrC B0UpBbs5KsbW1AJUtSMNlAAAA To: Willy Tarreau , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700082502; l=1050; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=CTsA5lI8lYA3WInzrUfmp2TktRtuX8KANJ9jWl+c2CI=; b=dNZ9JoznMaHKgGB6ViC2QV3bBhhy8b+gqTcUwfMSwdNBrwfj8egGjyvVpxskDj+9/Ut4raMbf LNm5lXAs4tWDIu3wAg2qMSfSd02rXVacSQGsOrtchXQRuqwUgkm6hYc X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 15 Nov 2023 13:08:53 -0800 (PST) This series introduces a new test harness for nolibc. It is similar to kselftest-harness and google test. More information in patch 1. This is an RFC to gather feedback, especially if it can be integrated with the original kselftest-harness somehow. Note: When run under qemu-loongarch64 8.1.2 the test "mmap_munmap_good" fails. This is a bug in qemu-user and already fixed there on master. Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (3): selftests/nolibc: add custom test harness selftests/nolibc: migrate startup tests to new harness selftests/nolibc: migrate vfprintf tests to new harness tools/testing/selftests/nolibc/nolibc-harness.h | 269 ++++++++++++++++++++++++ tools/testing/selftests/nolibc/nolibc-test.c | 180 ++++++++-------- 2 files changed, 353 insertions(+), 96 deletions(-) --- base-commit: d38d5366cb1c51f687b4720277adee97074b22e9 change-id: 20231105-nolibc-harness-28c59029d7a5 Best regards, -- Thomas Weißschuh