Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5111233rwd; Sun, 4 Jun 2023 21:08:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ZvW8gcmYr8a+a/Y+CrQJw3lr80iu7nj7s0JAa6rm+KcCZYruH94aSvqC459EsxIizub02 X-Received: by 2002:aca:1e14:0:b0:399:dd46:d561 with SMTP id m20-20020aca1e14000000b00399dd46d561mr6052252oic.48.1685938117447; Sun, 04 Jun 2023 21:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685938117; cv=none; d=google.com; s=arc-20160816; b=OZeSsXzuIP+BIrVH52/J1rA74zeufV5/8IlgjvmfpPn3MKXG1Bx4RsyCRxea9+YRGH IbFx/K1uBLhucuU1vaN3ZDieqGL6A3G8Dw3kMuR+evbGjigiaZ74be1TgloLcT7TprGk XxFtchwE/GoyfGJ4lqDbBDS51oAzGHe94GCYUxxMqe6TIL4FxHPODU05vdJF0ac4pA36 Eu8c0oWqT5RiHmBmufieUnYaIqT3gVLdDbx47mP5EADCsRRLYFs03kUyX39NmUHuS8Tc 7m3GmdJp0LYABGY7kX/aUFEGtZuXNxBRL0ZHlhUfUov0O7hHgFKttUH5EOuscZ+VPC2A ePrA== 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=AUv3QkeEyDqsXQ1DWuKlNs/twG/0yAdOrR3nN9IfEVI=; b=VbE8d27xbr1ENGZ6kpsMvzbXQtcSzYrwbUpXYxMfqk20C6VdkC93lOuwCP8EvTRJOT EBNFc5QY0ePzZzUdh52ww66mVYxbz7h3praSUouwZ3WkDK1Rbcqp5juJptAw8k3FJl03 vmssr0OpKvNLZfQrMZCYN3KPyp0vmKZFH5NSqZPB4ufhn4hpq1/JfRD/mnbsnaITMRXD L0gJv4FojrzH4KrYUnI3KxiPCoU77XoG67nfkKKU1L9byIt28IEnP/XGoC8i7hthcf05 Tu+mxwCvfbT2ZzQdaHaWQs6fBI6kExciUSSgcqHEM0kiXIJVuAWr4Pt3mWu5vgcum4Sb FoXQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m65-20020a633f44000000b0053f0cdab814si4942301pga.880.2023.06.04.21.08.24; Sun, 04 Jun 2023 21:08:37 -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 S232828AbjFED4t (ORCPT + 99 others); Sun, 4 Jun 2023 23:56:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232781AbjFED4s (ORCPT ); Sun, 4 Jun 2023 23:56:48 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED18DA6; Sun, 4 Jun 2023 20:56:46 -0700 (PDT) X-QQ-mid: bizesmtp82t1685937396t1aouh5f Received: from linux-lab-host.localdomain ( [61.141.77.49]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 05 Jun 2023 11:56:35 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: lm7sZZPcOdbJD8cVKMiASAi6Ml/t7tG1bkV1nfPLPi2vvHA+K/8f3KsCqtD4h LE7aT9mS730pQq+6dEcXz/fpRaJJRtqKoGlSuiNVsKvopYVg0cchyzAmQN9oq/txeCU22Sd CtnySZNGMOe0xBHD2xeYxw2OQr70b6yN+52l56pzPKka2ALTCEBKeBuW23qLP+UI0C17/ZT FDVh4zmtUmyLVGcrRaHhAefpzv6rSxiSNhLs0n/lIGGT3uPSjid8Wb+hDTXXLloZckxNl7C Xk8INamYkM+Qj5L/j5hdbxmrrK3ixkkfp0o5M+oHUvvv3n5hMAY+4nr40sgBq2pu3rQgU2K dP6IxQmVW1fAi4AhrjN1OKB0FAz02D2lObYwHl7xcncwCU+IL3Csj8V2sYGTTnAA3pKlDul X-QQ-GoodBg: 0 X-BIZMAIL-ID: 9763339930852643474 From: Zhangjin Wu To: w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, thomas@t-8ch.de Subject: [PATCH 2/4] selftests/nolibc: allow run test-report directly Date: Mon, 5 Jun 2023 11:50:04 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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 This allows to re-check the test report via 'make test-report' without the requirement to re-run the dependency targets. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 8149ace2938a..5b0af8d8f5f3 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -128,10 +128,10 @@ libc-test: nolibc-test.c $(QUIET_CC)$(CC) -o $@ $< test-report: - $(Q)awk '/\[OK\]$$/{p++} /\[FAIL\]$$/{f++} /\[SKIPPED\]$$/{s++} \ + $(Q)[ -f $(CURDIR)/run.out ] && awk '/\[OK\]$$/{p++} /\[FAIL\]$$/{f++} /\[SKIPPED\]$$/{s++} \ END{ printf("%d test(s) passed, %d skipped, %d failed.", p, s, f); \ if (s+f > 0) printf(" See all results in %s\n", ARGV[1]); else print; }' \ - $(CURDIR)/run.out + $(CURDIR)/run.out || : # qemu user-land test _run-user: nolibc-test -- 2.25.1