Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3608057rwl; Sun, 2 Apr 2023 11:05:08 -0700 (PDT) X-Google-Smtp-Source: AKy350Z2KHkYbxNWw+iYjM/bnEMOA3MlA8P9ShuxTgrKnS/i1WPHH2QxBS7S3UwRKBdvzk9JRPgb X-Received: by 2002:a17:903:2948:b0:19c:f232:21ca with SMTP id li8-20020a170903294800b0019cf23221camr32274970plb.3.1680458708132; Sun, 02 Apr 2023 11:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680458708; cv=none; d=google.com; s=arc-20160816; b=tIYtv8vm6uD9BeuDtDTsG/NReYNdHsRm0j4L7Hy/T98uWkyli4I0X/X7uf6DyR7qdO 0xHwnqrCfu2owseJ8l2Wh/uiJIhr3COSwjlyonUxRrF+9rGlclQVakSsjE15DA7N8VaV lLEaDUAby5ez3GJTWhw5o6x5KDdJ0WmTThjH7pea2BRj8wbRdJRUkfyL/ZEhLF/rh//M FXYGunXE9neuoExecAAw8otoj2N4z7R6ISNQ866E2MaO8Xc2bWMqxIHOcZdAjAINbB5Y F5Un6LkWEmhhSYcnl83ovXyh03KqB0n0ALjcpk4+RpLZM2ay6CgPoN8YzTxL/JbTjlzu cLCw== 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:dkim-signature :from; bh=DxP+fxLoa+x2+wTlJLYNFZzGsxW+Aa5PhlIlO83UXO0=; b=upNAz/oq+a41HtbpQ9LfIoPG9TPhxJhRS/jtchB6eWlODEZJnJBLq9niqJQ3aKIrnn PC30tE9MpDBqXwk6a1gGiLQuESqq2edmiv9NFgKTpM98JdfrN4251i4DGVQ1RdvX43tR +9t7SerKRPlrL+u2VQ9GD0NbgPE54pahJHwM28Tla05H1bJKOkBHsqNYY/NLbuoD8Nfj kYtrHo2N5EdLnL8sNhYtJAmr4tM3sXtZGulIgjeiw6O7n+KcQ070S6Knqkl+BWXdPtku WODB+ZbQ+B7Ozlrm0Mvj5UJL6xctffDeYwl4OAZf8uYfyDQ/XGPIbNi82+t3mkyCVlym AIcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=BXFkLPbA; 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 w5-20020a170902e88500b001a1af4f6089si6661962plg.155.2023.04.02.11.04.57; Sun, 02 Apr 2023 11:05:08 -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=BXFkLPbA; 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 S231350AbjDBSEt (ORCPT + 99 others); Sun, 2 Apr 2023 14:04:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230469AbjDBSEq (ORCPT ); Sun, 2 Apr 2023 14:04:46 -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 5756030F1; Sun, 2 Apr 2023 11:04:45 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1680458683; bh=VdplZ+maLIRLoILvVLhk3/Dt0NnSp9+Gg5MHvNvgDRw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=BXFkLPbAaMWSTu/omAa6Y/mhMmuqfhq5K4cACX9Vgp7EeUr6XyWyuUPZzvQoIuWKU DiUbA8F3Q0FpS0FTRvSZHlCO5UkbxEN0l/WQMML8dKGAyr6CIf91Tb7sz24cH5Wjyj JalR+QBPFTo3raO2HR+N1Da/Jlx6A161G4Kpdu84= Date: Sun, 02 Apr 2023 18:04:34 +0000 Subject: [PATCH v3 1/4] tools/nolibc: add libc-test binary MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230328-nolibc-printf-test-v3-1-ddc79f92efd5@weissschuh.net> References: <20230328-nolibc-printf-test-v3-0-ddc79f92efd5@weissschuh.net> In-Reply-To: <20230328-nolibc-printf-test-v3-0-ddc79f92efd5@weissschuh.net> 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.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1680458682; l=1521; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=VdplZ+maLIRLoILvVLhk3/Dt0NnSp9+Gg5MHvNvgDRw=; b=hRbD6xU9saIGMWt1sGt6Mi0mtKNW3F6bkYNL5ReSDde7wIy+bDoefllyjYGG7Yw5nJuMv9xU0 nzRT07XK5oMBll3kna9KXUOCgVga4xzAeVzcQ1jyt8g/t61Lcg/7Zs2 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 This can be used to easily compare the behavior of nolibc to the system libc. Signed-off-by: Thomas Weißschuh --- Feel free to drop this if it does not fit in. --- tools/testing/selftests/nolibc/.gitignore | 1 + tools/testing/selftests/nolibc/Makefile | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/tools/testing/selftests/nolibc/.gitignore b/tools/testing/selftests/nolibc/.gitignore index 4696df589d68..52f613cdad54 100644 --- a/tools/testing/selftests/nolibc/.gitignore +++ b/tools/testing/selftests/nolibc/.gitignore @@ -1,4 +1,5 @@ /initramfs/ +/libc-test /nolibc-test /run.out /sysroot/ diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index bbce57420465..903990d22ac8 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -128,6 +128,9 @@ nolibc-test: nolibc-test.c sysroot/$(ARCH)/include $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ -nostdlib -static -Isysroot/$(ARCH)/include $< -lgcc +libc-test: nolibc-test.c + $(QUIET_CC)$(CC) -o $@ $< + # qemu user-land test run-user: nolibc-test $(Q)qemu-$(QEMU_ARCH) ./nolibc-test > "$(CURDIR)/run.out" || : @@ -159,6 +162,8 @@ clean: $(Q)rm -rf sysroot $(call QUIET_CLEAN, nolibc-test) $(Q)rm -f nolibc-test + $(call QUIET_CLEAN, libc-test) + $(Q)rm -f libc-test $(call QUIET_CLEAN, initramfs) $(Q)rm -rf initramfs $(call QUIET_CLEAN, run.out) -- 2.40.0