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: 117244 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3464095vqx; Fri, 7 Jul 2023 11:34:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlER3FucScrhqej4NfKzYC6g2Czro0pBSw6lzQUrDtOsUVLO1qJXIUXIU3rJ8X3xWcp9wKI7 X-Received: by 2002:aa7:d382:0:b0:51e:3d13:4a12 with SMTP id x2-20020aa7d382000000b0051e3d134a12mr1782810edq.34.1688754871867; Fri, 07 Jul 2023 11:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688754871; cv=none; d=google.com; s=arc-20160816; b=VGEtJWHbfLc51qJA+hTLqpheyqhTqnxgpUZ1Nx4mKMVtCfKxvk9CaD31axLnS7KAkB YcpJHibczw5Ubjz1KMYygw5e8N8ZOvpnCpz5LxEKQCNEZCavZQuoZPa5pW3KRVucUHCB Y6HqGX+kInziukri91UYTnrsnkKjjoLJqdR8DpWo/U2sHD0E8phlL8SrcH7XnOhxR1F1 /AKHuncE4UBFQK+whEr1YNutmOgHGxC0DDlqDu25C2FT1t94/GB5CUqD7zcYpzBIkyp0 MJT65B0icDRZdxHjXQolWbCm7sh72XIVgK1mEyhMYZVuixbCI8oKt9mQpChQMqNE5hH9 Gr9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=UQaQHIS+y8BRy8V9bws8POJPivH8FMgBi9W8QtJP9iQ=; fh=kgRNfNE6xRCHBUX3iUlrLhv5pQPglsdZFzOkxo2Fhpc=; b=obm5VJoAcgYLbi/jyhlB5Rqua6EodRsaQzzoUzGmS0lyTSEcb/8PorKmOqvup5WCLA /mgaDB0z/lFlOZ41gDLxPqckEWSguKjvmHH035C41yCdpjzv6dLmLx+tJovZ5H3TvMcl X47CIot1ZBsdSpXXbirJzh36QyHR/wzCVQbrbrMkfOY+7pRpbe5ceMocQ2q5cyrNoKXO OACVKINAlQlmFTSAZrRMKv2dH5fiav8ToPPXIyMcIGYL+nje6ncBYZk/RfKCWuFkjTap C9bcKtwE6Pcr3hrt7/rzv1rUKOuHhjPGHQSlrqplw2H345TcmgiGi6ukoEIkTDqBu7qq iC5A== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j22-20020a50ed16000000b0051de30928d6si2418733eds.658.2023.07.07.11.34.04; Fri, 07 Jul 2023 11:34:31 -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; 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 S232406AbjGGSWz (ORCPT + 99 others); Fri, 7 Jul 2023 14:22:55 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770787828912261116?= X-GMAIL-MSGID: =?utf-8?q?1770787828912261116?= 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" || :