Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2924086iob; Sun, 1 May 2022 01:26:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwACEXBYK2njU8ZgG1Y2EQY0BY9RXHjEvPCpe2HITL1clw4GmMdjpI3Ze3OCUtV0QNB0HvY X-Received: by 2002:a17:90b:789:b0:1bc:293c:1445 with SMTP id l9-20020a17090b078900b001bc293c1445mr12218006pjz.111.1651393603519; Sun, 01 May 2022 01:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651393603; cv=none; d=google.com; s=arc-20160816; b=ToTTY2aDxLp7xaeIS1q3c6+oKjiUFJ78LZYlsMZ3AiCcs+KSS3MpVb+kihRpWwFS2O vSqLSUoi29+CVutHUHOXyeqiElN1Wqr8B36Zt7t/hePee9VhRP+YIFr7cSxRkYvq2UrQ 8G2VaGqBTTjMC58E/ZTr9eV1mTbNYz+MC5Twr7ODLiw4mx2I9yvW57b67hLr/KA+/SMA qviY1HGEM/QOLgGqNdjEeaIxg2X8qn6Quk1Wkyj+tqN9NBBbk5IdcjMMlnq1WnptNE0H 394BFHerajmuDhwJxp1Okmd52RBL/UpeuGvw9takgENSjHhFBqP4U7lOKtWI3J9Esxmu Hd2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ChtMPYjIydjIkCxEWfVnTdwnIsFyeKywjaIjoMKSQMA=; b=W18q4NSWcqWgljhcOmRzlOl1XoMVNF9104Hl5DldYQXoaoalDitv8xGEfyiYREkUd6 G4RdyQoxxf6AlzjwemmB82qPzVulNUf/27qYPUz2X8X8w5jt9PbTNjkSVjtnuOK0pCR+ wI6SKcsSyviiTovDRLwpHA/duV70micpzowg0sKrATj2VCCCFYAcizb90kUnJEGTTPCc 4UjJkm7RJ/zBUTRRvZ00pBG0LN5RytVA8x6I9EtnP2ZKjTc/bRLALrZt383iJdXI5dMy ANJjmn9cEC48IBwu+q1cCsAycbTCmPFGvVn8k4WHDC8CMbozvqUAi4gSEaWP+rL70Eb5 kLkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EZJ2tMAH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a170902da8600b00153b2d16415si12917306plx.29.2022.05.01.01.26.28; Sun, 01 May 2022 01:26:43 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EZJ2tMAH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354587AbiD2GlO (ORCPT + 99 others); Fri, 29 Apr 2022 02:41:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354580AbiD2GlM (ORCPT ); Fri, 29 Apr 2022 02:41:12 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A9144B9F34 for ; Thu, 28 Apr 2022 23:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651214274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ChtMPYjIydjIkCxEWfVnTdwnIsFyeKywjaIjoMKSQMA=; b=EZJ2tMAHsPQHyw9fJ47vj46AsyY/ooo5U0KT8+hhHLtHVc/KwEH3RaiyLdG4TP0i7AU95+ sUFUixCdU+FWU3ZWXSzHX+Qz8TZrTKyvCUW4TiMnT9H7E/VmrB1N1sufvXjdYfKQc+Uuen 4YCYJTMnmqGUolMHv/jILktBlxBlU04= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-324-4MFba-kINFGyzLeVHgCkVw-1; Fri, 29 Apr 2022 02:37:51 -0400 X-MC-Unique: 4MFba-kINFGyzLeVHgCkVw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AB1E2800186; Fri, 29 Apr 2022 06:37:50 +0000 (UTC) Received: from thuth.com (unknown [10.39.192.118]) by smtp.corp.redhat.com (Postfix) with ESMTP id B508F14A5060; Fri, 29 Apr 2022 06:37:47 +0000 (UTC) From: Thomas Huth To: kvm@vger.kernel.org, Christian Borntraeger , Janosch Frank , Claudio Imbrenda Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, David Hildenbrand , Paolo Bonzini , Shuah Khan , Janis Schoetterl-Glausch , linux-s390@vger.kernel.org Subject: [PATCH v3 0/4] KVM: s390: selftests: Provide TAP output in tests Date: Fri, 29 Apr 2022 08:37:20 +0200 Message-Id: <20220429063724.480919-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 patch series is motivated by Shuah's suggestion here: https://lore.kernel.org/kvm/d576d8f7-980f-3bc6-87ad-5a6ae45609b8@linuxfoundation.org/ Many s390x KVM selftests do not output any information about which tests have been run, so it's hard to say whether a test binary contains a certain sub-test or not. To improve this situation let's add some TAP output via the kselftest.h interface to these tests, so that it easier to understand what has been executed or not. v3: - Added comments / fixed cosmetics according to Janosch's and Janis' reviews of the v2 series - Added Reviewed-by tags from the v2 series v2: - Reworked the extension checking in the first patch - Make sure to always print the TAP 13 header in the second patch - Reworked the SKIP printing in the third patch Thomas Huth (4): KVM: s390: selftests: Use TAP interface in the memop test KVM: s390: selftests: Use TAP interface in the sync_regs test KVM: s390: selftests: Use TAP interface in the tprot test KVM: s390: selftests: Use TAP interface in the reset test tools/testing/selftests/kvm/s390x/memop.c | 90 +++++++++++++++---- tools/testing/selftests/kvm/s390x/resets.c | 38 ++++++-- .../selftests/kvm/s390x/sync_regs_test.c | 87 +++++++++++++----- tools/testing/selftests/kvm/s390x/tprot.c | 29 ++++-- 4 files changed, 193 insertions(+), 51 deletions(-) -- 2.27.0