From patchwork Fri Jul 7 18:22:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 700716 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 64A32EB64D9 for ; Fri, 7 Jul 2023 18:22:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230206AbjGGSWy (ORCPT ); Fri, 7 Jul 2023 14:22:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbjGGSWy (ORCPT ); Fri, 7 Jul 2023 14:22:54 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E8391FEF; Fri, 7 Jul 2023 11:22:52 -0700 (PDT) X-QQ-mid: bizesmtp72t1688754163tbz6971n Received: from linux-lab-host.localdomain ( [116.30.131.119]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 08 Jul 2023 02:22:42 +0800 (CST) X-QQ-SSF: 01200000000000D0W000000A0000000 X-QQ-FEAT: QNtCjCnA38/H8JL0FER4UCqbooVsJKjujOZR7fq9q4G4ESPFiFBGxztBtSgfP PZsdw5sU119JWuA2HNJG/m4x0mXNF/z/OS8dmW0Cg2+xJ8gVBgpMI6Zav7XN7up1qM2y2oA oZ1+HgVmMp3HRpuxUYTC0LVUkxCvY0bhOeeCZakge+0az92sUVw28BTtt0ncnttqGRFn849 pC/01mK0+HW4HqJTG2aWVWd9zs1QB4H6sZThngmPEvtEbJcYPUJcAuRMnOKiTqaLIqIXGau z41S45Tp5E3YncOK+NJzAH3C+8Tiv8RkSZad1GD68651407qqv47L/zz7YClpFUYGD5T3UI 3gebTUjnabwoCh364SLMcwiPnmmT9acCpgX6HtDkkTyitn5TR4= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 3309041285388814565 From: Zhangjin Wu To: w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: [PATCH v4 01/18] selftests/nolibc: add run-libc-test target Date: Sat, 8 Jul 2023 02:22:39 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org allow run and report glibc or musl based libc-test. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 000621f21adc..d408b688b291 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -132,6 +132,10 @@ nolibc-test: nolibc-test.c sysroot/$(ARCH)/include libc-test: nolibc-test.c $(QUIET_CC)$(CC) -o $@ $< +run-libc-test: libc-test + $(Q)./libc-test > "$(CURDIR)/run.out" || : + $(Q)$(REPORT) $(CURDIR)/run.out + # qemu user-land test run-user: nolibc-test $(Q)qemu-$(QEMU_ARCH) ./nolibc-test > "$(CURDIR)/run.out" || :