From patchwork Mon Jun 19 06:56:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 109746 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2826755vqr; Mon, 19 Jun 2023 00:28:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6L64h+hXtVskIoA2csBxbmwnfDDZXxXHI5ZnwfSdSIB91phI8HaGd+h5g+gbjD2CzIYYpS X-Received: by 2002:a05:6a00:2351:b0:668:6445:8931 with SMTP id j17-20020a056a00235100b0066864458931mr8216993pfj.29.1687159690291; Mon, 19 Jun 2023 00:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687159690; cv=none; d=google.com; s=arc-20160816; b=qYWBS8Kv/um36oJHn8LlCSyKAlVGKHLt6cfpYBMUEJabs99M6FICRECljZsUroD6MJ I/lnEexw1db6eP4guRJo5dE6Gu09uC8Hflu0UTKLRvvLjokmNgXhBWGbp9oR8g1SpnEl VVj6TDTrWbNV8MRpo7jJMNpBkzX/zEwusnDdzfv6Aj55gYOpOY5xC28PHsxcTr9RrI6i J3WwK+18SNJGJxwlyfApCrvzoIljrfhPviRsQ6bty6Pb1/I/uslyo+W1lFVNWfW7B7Yt TCpg1ksfnwdYGp+/0FuhVd27FaVzaJrn+OhTyS/wNMjMvyydxQjkEYKFhsmS3K3GbVcG 8QBw== 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=1Z8rmSjwyp0pMs9GI6r8ab3PyoEAEaVsB4jh8BjYoMM=; b=HTkQPxWfZX2ZrhbQRO80cdlsxu+K1NYGh8zZsSqdQvnN83AvDWlc+gqoMmubVBTjzR 3tJ27FokI8RDGP5vXZuBnXwMusRL1RlBCxfixTZ4A7CsDuyLH5QLqn9Ify7OoNRae7Cr v1NPCXLDfDIM4mYJBW7tXgMZQ0PUHLD936YuiqGQZrikBIOZvWEIa8yRnvmixaxeOraM sXwklG49UiFz/4ADD/opol44QF9aqS5uwivVJGtbdmu6yXQ0KpKI2pqUUULj0IU4snEm RVgJOGrUWAvJ7JdotMjtup5JR99uevoZy2i64qe22FlI2onpSG+0vGJ/a2xHf2Irw+IG wBbg== 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 r131-20020a632b89000000b00542b5336becsi10037696pgr.663.2023.06.19.00.27.55; Mon, 19 Jun 2023 00:28:10 -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 S230116AbjFSG4i (ORCPT + 99 others); Mon, 19 Jun 2023 02:56:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230095AbjFSG4g (ORCPT ); Mon, 19 Jun 2023 02:56:36 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8AC013D; Sun, 18 Jun 2023 23:56:34 -0700 (PDT) X-QQ-mid: bizesmtp69t1687157784tkcpo91n Received: from linux-lab-host.localdomain ( [116.30.126.60]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 19 Jun 2023 14:56:23 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: 5q30pvLz2ifOL7+eKkGV+l+xNjgAcXo7/um90KtQZbwA/x9c6K+kVT3CD9yTU 3Ob2lb03K+MuRZrzURo0i1xFpf1vU1LTevUHfFqRpCwWRGD0eIuTYiXqF/P3Ks3VQdyMgtJ c2pjERcLylH93SwqS70SlZ6Ab+BArIU2bblM2vTaW8mRG2mnPDGk+8T75SMT2mPK02g4aJr y7B9MuJaMsWw6q1mgOJl9sV0I+DySYEFkkkazGClZb6piKGGkHKuJRb36h76tOSq1TKbInd CJqO7AkYKMkbaW5cPKe4y76m4ZhAQuTiQc6yTX23eKND+7aFAQMWABXvEf2KA7ZoF9dKewk DSn942ARQjxWtCABXREZdc1QQXI0f52WOYL6k4Ex2Y5IQC4RRc7+wtlpylCCHxwVwe3HLti X-QQ-GoodBg: 0 X-BIZMAIL-ID: 14674773114149374089 From: Zhangjin Wu To: w@1wt.eu Cc: arnd@arndb.de, falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: [PATCH v2 1/3] selftests/nolibc: add a standalone test report macro Date: Mon, 19 Jun 2023 14:56:22 +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:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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?1769115159572606117?= X-GMAIL-MSGID: =?utf-8?q?1769115159572606117?= The run-user, run and rerun targets use the same test report script, let's add a standalone test report macro for them. This shrinks code lines and simplify the future maintainability. Suggested-by: Willy Tarreau Link: https://lore.kernel.org/lkml/ZIB792FtG6ibOudp@1wt.eu/ Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 1b7b3c82f8ad..262a9f21d1b4 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -84,6 +84,10 @@ CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ $(CFLAGS_$(ARCH)) $(CFLAGS_STACKPROTECTOR) LDFLAGS := -s +REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++} /\[SKIPPED\][\r]*$$/{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; }' + help: @echo "Supported targets under selftests/nolibc:" @echo " all call the \"run\" target below" @@ -131,10 +135,7 @@ libc-test: nolibc-test.c # qemu user-land test run-user: nolibc-test $(Q)qemu-$(QEMU_ARCH) ./nolibc-test > "$(CURDIR)/run.out" || : - $(Q)awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++} /\[SKIPPED\][\r]*$$/{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 + $(Q)$(REPORT) $(CURDIR)/run.out initramfs: nolibc-test $(QUIET_MKDIR)mkdir -p initramfs @@ -150,18 +151,12 @@ kernel: initramfs # run the tests after building the kernel run: kernel $(Q)qemu-system-$(QEMU_ARCH) -display none -no-reboot -kernel "$(srctree)/$(IMAGE)" -serial stdio $(QEMU_ARGS) > "$(CURDIR)/run.out" - $(Q)awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++} /\[SKIPPED\][\r]*$$/{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 + $(Q)$(REPORT) $(CURDIR)/run.out # re-run the tests from an existing kernel rerun: $(Q)qemu-system-$(QEMU_ARCH) -display none -no-reboot -kernel "$(srctree)/$(IMAGE)" -serial stdio $(QEMU_ARGS) > "$(CURDIR)/run.out" - $(Q)awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++} /\[SKIPPED\][\r]*$$/{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 + $(Q)$(REPORT) $(CURDIR)/run.out clean: $(call QUIET_CLEAN, sysroot) From patchwork Mon Jun 19 06:57:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 109748 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2832143vqr; Mon, 19 Jun 2023 00:43:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pe+Qrj3dejm7fBrig8cWmIyKtGRUpPN01XcM8X+0hf/Wnys/8PsjGMPER+NlQ0bEaIzEh X-Received: by 2002:a05:6a21:32a7:b0:121:62fd:61ea with SMTP id yt39-20020a056a2132a700b0012162fd61eamr1322416pzb.24.1687160607084; Mon, 19 Jun 2023 00:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687160607; cv=none; d=google.com; s=arc-20160816; b=fd2/7ukbNTCp/QxB64DKLWPs7gAYVqiV0vem25U/FWds0SKOTYBb2bsRzJuW2fQUXW xukW+V3n29X9S3n0VQlAmiq9K9LLxE9RRwMUsG4J5CsithwnhDyo2t30kwAcQG6d68Df /Ba21qiWIMQwD2/ECJK1tPdJEZzTPwKcBHvoZmujVAdoFBbN+qJWqBEDQU8u8q4fhD7X mhY+X5LOI2K06t97rtuqVletPF1XplGMKLBaUMAqwZh4YBOgF4GM94NE61BPzsz0JciY ApPP69QbSKnPFhG55jBylESXypWB3EqZiOwT92G05IAKQl6+r9DvF2psBhVY4UdT9uAQ oD3w== 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=OKNLDBzoC+W93BqULWAxfZGjYIJ0sVw2KwSB9NfGRyo=; b=SKTuKfoR2nhifen5YeAO6p+slssLOC7tcXSByx1EfBc9nrqU48GKnvCfjagGRGMSfL PrNOdG0J0mZq+OsUnMIXhlY6P/Tqqcp6Cm2hJJaD6iYRxL/A2DPlGOaTO7RSNE2Uf0VF ziVqHoS5WF8Svz9xXbOm9V/G1r8iTbi1/I2lUqVxEzuRJpErTDrT1XFMOUVC/MSNslNC jenPfoIGopNmhcLyXUwlvK3xKP5ypXM9dkOv82b/UQWQnfqA9E4YC6L7YGHuDHN6aFfs jrzrHbgjlbz3pFZGGeU9tjBCk0qMISi6vQF+aE5gp7mtffax6MLRddgRwDJzPj3opGzu nstQ== 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 u8-20020a170903124800b001ab1ba2572csi21144934plh.240.2023.06.19.00.43.14; Mon, 19 Jun 2023 00:43:27 -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 S230095AbjFSG6B (ORCPT + 99 others); Mon, 19 Jun 2023 02:58:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjFSG57 (ORCPT ); Mon, 19 Jun 2023 02:57:59 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FA04199; Sun, 18 Jun 2023 23:57:57 -0700 (PDT) X-QQ-mid: bizesmtp67t1687157865t5q4c2gj Received: from linux-lab-host.localdomain ( [116.30.126.60]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 19 Jun 2023 14:57:40 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: WrDav1T4GStU8H3DZGX1RXmzi+Ch0f4jZiwIz58gPwD/4di9t+5GipiQLAdrC zFPU5hnJEUMGBND3UktoJWcJl2Roazt8JAP3X41k7+DDekVIZZzFrPLjYAzZIXLzHxLJ4Y0 Gego4TJeRVlaDUVBpBKNV1wG2l2JiVD6inr1lSEU0lbPvpdO+d3a4ODSactXWsF9UBIdNQ8 j1+OMKiMSiQ/vmdKZeuUIQEsswocpqG/TC654WGieHVD1HcpYXKthAeg1YeJulZjmTl1F26 drtD1VCACOclpOZ6VzSHKNglidM8bwW2xcNQWHWqL1UDGoBu96J7q5dA96S+377O3vCDSeg WPafxgOkpqc6yT2HDQpekSD/G9O+YnH5jpi0ZeLWzZdI1snDUDIHar9UnZFtw== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 15193459100436199528 From: Zhangjin Wu To: w@1wt.eu Cc: arnd@arndb.de, falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: [PATCH v2 2/3] selftests/nolibc: always print the path to test log file Date: Mon, 19 Jun 2023 14:57:34 +0800 Message-Id: <72617f46112e2124c2fc6509c206b51c5a1f6e0a.1687156560.git.falcon@tinylab.org> 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:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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?1769116120510330366?= X-GMAIL-MSGID: =?utf-8?q?1769116120510330366?= Even when there is no failure, developers may be still interested in the test log file, especially, string alignment, duplicated print, kernel message and so forth, so, always print the path to test log file. A new line is added for such a print to avoid annoying people who don't care about it when the test pass completely. Suggested-by: Willy Tarreau Link: https://lore.kernel.org/lkml/ZIB792FtG6ibOudp@1wt.eu/ 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 262a9f21d1b4..2a0c3f4fa204 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -85,8 +85,8 @@ CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ LDFLAGS := -s REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++} /\[SKIPPED\][\r]*$$/{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; }' + END{ printf("%d test(s) passed, %d skipped, %d failed.\n", p, s, f); \ + printf("See all results in %s\n", ARGV[1]); }' help: @echo "Supported targets under selftests/nolibc:" From patchwork Mon Jun 19 07:01:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 109747 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2827270vqr; Mon, 19 Jun 2023 00:29:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wKI93gj/+wWPeoWCH+UtUjpKAOY4+UaVvqD1y+nA1QS8HJeMsE8/MU8Op5s3dsMGbMSJP X-Received: by 2002:a05:620a:3952:b0:75d:6b6d:636e with SMTP id qs18-20020a05620a395200b0075d6b6d636emr10357861qkn.11.1687159778259; Mon, 19 Jun 2023 00:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687159778; cv=none; d=google.com; s=arc-20160816; b=puY7jMaXEWA1Zg/9e3ftwLt2/k/tX2U/aU5ot4mCMHDJC7AlhNHAKm9I88pLSEzAa1 xu8exb0d35GUkd35ie6CvRRnIa0pbh99Vu+BWXBpSfWxnUq3VhhytF0NmzgPTYZx2T3Q XKtmPrgjY118l5GuA+rtNjrVesKLBpmK7x6TycMNriRtasHRPZNVEVdg5nBDMfrwrKbp Uv8wRfD48inM0MiKLBESL9BwZFsjUZa69N13iVInkQCRIU86f3Y96NZUAvZHf9dCIkHq wlVw1AjCqqTpZz8SB7Hlk41iUMlEK9dKO2LsQLWIj5w2C2l7MdD06cY5dn635M9ESN+y aziQ== 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=R6hjB09PM+T43ib21dA9wYg0nxNSfB1oi8qqGHI+e6Q=; b=QTEk8CnXpfcWO6CMnnqon6kPxvtt02q+IdVQF3RMPBNbAhzi2zCh45MfgZTB7EPZWH pHVH04168iHjRZ3x14isvTtkm0Wzh9lbC9fJP++Tc/atsMFmzqkljGad+4aZ+RNfH/Y8 OFfdgHVYxoTYOiksRM03D5d1EK5K5gXOjsjKfYUNRb2Sh1M7c4EkGpS+xHtA9S76bKEw lXg58Y0hgVrEo8vmUYKiXxh10SZJZlXGTmjf82pHM6DOIrUy6EviBSACZ4SOy2XYrw8S EEL22NxPeJQZOt7psqu9AaMm+nLOZylFe3/2Ff5GkBpg7/lfPnE4ahiyjEGiUVOwkqZU HggQ== 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 r131-20020a632b89000000b00542b5336becsi10037696pgr.663.2023.06.19.00.29.25; Mon, 19 Jun 2023 00:29:38 -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 S230012AbjFSHCA (ORCPT + 99 others); Mon, 19 Jun 2023 03:02:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjFSHB6 (ORCPT ); Mon, 19 Jun 2023 03:01:58 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C935199; Mon, 19 Jun 2023 00:01:56 -0700 (PDT) X-QQ-mid: bizesmtp72t1687158107t5cb9jfm Received: from linux-lab-host.localdomain ( [116.30.126.60]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 19 Jun 2023 15:01:46 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: CR3LFp2JE4mpAf5y1pCIlLMASGgjd5QRvS1f5Cg7IOlRx33kDFXmn3SGmbr8F R0QnHMLBWrZfc3TUdNvkA1afJtX+UfDS7aJyC8WmWi2tAJAhcxy3n54BhSJ/8MUDbXR/LDQ FP0D/l2lQeg6Lw3JvVTdaZFG/291CdvS3v9x2brgznApOdTqVLFtPTt53mV2PoFnDzQZYBZ LHfbdqgtObhhnPGY4uFTmrLG/4GGfArk1fMRX3fqRsAfIhMlpyw31fvj4JQJ2GFxKWu/Iqo 6m3jWiIjnU5+GxeaaJWz1CnCBEAPowXv6+mqU2ONi905qP6wHKf+8ndeeY/j/yQzKqXJxTz 5A0qz9BCIOZEtXmKYuvjTJUzalh9bVP8WUO6cWAPmx4Fm/+LAo= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 7841859380190966851 From: Zhangjin Wu To: w@1wt.eu Cc: arnd@arndb.de, falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: [PATCH v2 3/3] selftests/nolibc: restore the failed tests print Date: Mon, 19 Jun 2023 15:01:43 +0800 Message-Id: <2308942c812f5d45035457d2bf6b388b4736c9f5.1687156560.git.falcon@tinylab.org> 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:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, 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?1769115251315692986?= X-GMAIL-MSGID: =?utf-8?q?1769115251315692986?= The commit fa0df56a804b ("selftests/nolibc: also count skipped and failed tests in output") added counting for the skipped and failed tests, but also removed the 'FAIL' results print, let's restore it for it really allow users to learn the failed details without opening the log file. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 2a0c3f4fa204..000621f21adc 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -84,7 +84,7 @@ CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ $(CFLAGS_$(ARCH)) $(CFLAGS_STACKPROTECTOR) LDFLAGS := -s -REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++} /\[SKIPPED\][\r]*$$/{s++} \ +REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++;print} /\[SKIPPED\][\r]*$$/{s++} \ END{ printf("%d test(s) passed, %d skipped, %d failed.\n", p, s, f); \ printf("See all results in %s\n", ARGV[1]); }'