From patchwork Thu Jul 6 09:11:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 116577 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2422400vqx; Thu, 6 Jul 2023 02:20:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlFxA6H8NyH1WbArFnRo5xPPQ1qcDNbof7+hTDvoo+qGw9ixD7IQZdILd1iF8tj1s8wRi4Gh X-Received: by 2002:a17:90a:8406:b0:261:1141:b70d with SMTP id j6-20020a17090a840600b002611141b70dmr795735pjn.45.1688635253111; Thu, 06 Jul 2023 02:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688635253; cv=none; d=google.com; s=arc-20160816; b=x7xaBS4yqHUN79A8RJimRUZGnJ3LKeoetw9730c2vg3bKrFXnB8Cmh2SKQ11rzcR/i flr6ZGmcKZoacGTywa9xMaWXXBsNn6C9Xxr4hzpkZH9eyqlyXikwpQumsgNW8mJPV2JO czVwZ62jHgtqqSc8+JZ2DmqAPoVmK+quC+W9nfYLL9MWF/JX0QdzXYeCHhWM3nByGHVo 0EbDuyYy4JRKt8F7/nWhkP7HoRh/pFhxNgOmK1tSQJK6gFJQt1bw9jgkxBLPPr606dTV QLnk3Ve9cO1xbLCptr/EgveYUh25TqvxwCIPNFb/9Q7Z5dtjUSQCcMdGCvk0qaKbJUwl Ck4Q== 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=7zOxsL2zDCsrcei7qD9PemrmLV/4Pogqqyq24xizynE=; fh=kgRNfNE6xRCHBUX3iUlrLhv5pQPglsdZFzOkxo2Fhpc=; b=b82h/F3pgRH6mHTd2yVNOTswi7VHWHNwu5Qhwi9U4k/2ATI6QvtQuEKn8AWxEIk3Qa fa52MI1EHX/NcZgGErtSiUY7t1/MSWtE0VvKekX53/jznpZHusgonp+e3Fhs8lHRdOge 5Wc3NBUXS9cqAfIQaliMiqnV6ceFbJ5LL4/b594a/xb15zXCLgTndemXPZmRB+n6JEdT whmfazQGrdarErsePDxiJPwIA6u5ABtLgZ5as2x82Q7mOq6zr7jGfNst3DkaFn0YYv+h 3Up+f0nGnxJvH0tEph0jfB1JQ4rp5cY62nkv8UiSD+JM5b6d5CS0/JqP4GOoli3aqcKg Enyg== 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 bj12-20020a17090b088c00b0025bdaaf0d17si1190652pjb.33.2023.07.06.02.20.38; Thu, 06 Jul 2023 02:20:53 -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 S231902AbjGFJLj (ORCPT + 99 others); Thu, 6 Jul 2023 05:11:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbjGFJLg (ORCPT ); Thu, 6 Jul 2023 05:11:36 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65484DB; Thu, 6 Jul 2023 02:11:34 -0700 (PDT) X-QQ-mid: bizesmtp80t1688634683tlze7x0a Received: from linux-lab-host.localdomain ( [116.30.131.119]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 06 Jul 2023 17:11:22 +0800 (CST) X-QQ-SSF: 01200000000000D0W000000A0000000 X-QQ-FEAT: 1U/NVTUyJNRxt0P5nSwuMLL2FGvAjGF+dkHW2Y/MJag7QbharIuxgGfpjt2s2 tlCqyBfgiEUyRn4LJfDaZ2WIOF/af919RI9ktDUb7l5FJVo0Ba8w8GVh/l0tQPj1z6QcN8a 1N6nAaSHLzyR5FDxWP56pQimBWiHZCM40Pdv53FIYwzo4yoL2XIzET4qDKsDpHJkLC2xznd VyJF8LRWJedFUt3y/4XngpJkppYB5OGdHjOyFlOPM0xoP0L69LoBxkdXDX8BGhNHayPRN1v QsORCI1YSIqNj8XwlWWlBJvH/mWzEOwwFGR0nEf7/k0cfZCryyZhNXzqpFfCbz2ggWvb+jM aawzVAHqisghajm85ohCE0jA8/AKUKaymEyIHXIb2Dupvf3fA9LzJnsFKv0Jw== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 1037799378191978913 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 v1 4/5] selftests/nolibc: report: extrude the test status line Date: Thu, 6 Jul 2023 17:11:17 +0800 Message-Id: <89f3668f48d01fdac847bdfa085867cb641bad27.1688633188.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:qybglogicsvrgz:qybglogicsvrgz5a-1 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?1770662398923145339?= X-GMAIL-MSGID: =?utf-8?q?1770662398923145339?= two newlines are added around the test summary line to extrude the test status. 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 2c53bf41967b..10e9e5c1bdd0 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -85,9 +85,9 @@ CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ LDFLAGS := -s REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++;print} /\[SKIPPED\][\r]*$$/{s++} \ - END{ printf("%03d test(s): %03d passed, %03d skipped, %03d failed => status: ", p+s+f, p, s, f); \ + END{ printf("\n%03d test(s): %03d passed, %03d skipped, %03d failed => status: ", p+s+f, p, s, f); \ if (f) printf("failure\n"); else if (s) printf("warning\n"); else printf("success\n");; \ - printf("See all results in %s\n", ARGV[1]); }' + printf("\nSee all results in %s\n", ARGV[1]); }' help: @echo "Supported targets under selftests/nolibc:"