Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1241830lfc; Wed, 1 Jun 2022 12:49:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrB2wrOTPm8QaIXjALiZ4Xns5i1K/1ewX+xiiyfarnJgNXxOxJ5HgECSKhO1MG0asv+BSA X-Received: by 2002:a17:902:bf45:b0:163:ad4b:dde9 with SMTP id u5-20020a170902bf4500b00163ad4bdde9mr1033523pls.25.1654112998947; Wed, 01 Jun 2022 12:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654112998; cv=none; d=google.com; s=arc-20160816; b=SUTEv8fYATZErG7+334+AB7lQ7HMqm1zafcWHGo41izVdAnFr2JOm1pJMvpr3TtBvT /Lp/8o4xxwdS4ZflyWN902yQ8XOU5oO7yvekHnSH7hiKRqZn8lR7nsSevi2xqGMdSGNX lN3d/4t5Qb7Gm2lxDy/RCjcmkByD0EhQP5BjDno50Rc0o+twzDt0jvzXnWf/q/mcWv/e 1ni2anTNkRWlaBAmZX02HrRkfcHFZnXpF8pIiq0qAaiVnu1gPDA6AqbA8CenbblCnydR epImtORrVW3SQCCYRGZWSoKY1gKlp1efNoBA6RTWLhMkyEHgzevQMymo/EwXiTK1Dmfw ssAA== 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=M1kB8ZZo8rCb8OUyXMF5UTU/yK+Hwc81SWjBycNX2aY=; b=i5kRGTQFg/kfLJbIGsu8/BsT4kjynjDC9h4t08JwQbl+EiIQk7F+hWk0UfHVsX8To/ ABZXNl46X25p1X3ush8sMroCZCaVxFUUnWnCc+bnLnlieXOTSp4Lcn805EgOhPTNqBpA gKV//m1v0jXPb2XhV7e9EQQKaW+oXJA4qDMTu7EHtXUxhd0lNtW4zXPpA8BgPYYn9+YI CZKVDNeWdP4vqkdaAVWcY5sCrnB07nt1Q9gxIPEi2OII5EjtZh1MdJ6nHnECtXVxu4at NsNtVC24aoJAatuh+4QLkuzNOlbApxCh+F7o8G8YlAmuX6MRFeOUVWiCtbSuiMkmrzbL cTQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XwmOhP0u; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d6-20020a17090ab30600b001e2755c0a26si3308582pjr.111.2022.06.01.12.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:49:58 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XwmOhP0u; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8F8DB1EEBB4; Wed, 1 Jun 2022 12:12:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245564AbiEaKQH (ORCPT + 99 others); Tue, 31 May 2022 06:16:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242098AbiEaKQE (ORCPT ); Tue, 31 May 2022 06:16:04 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A51DB263A for ; Tue, 31 May 2022 03:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653992162; 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=M1kB8ZZo8rCb8OUyXMF5UTU/yK+Hwc81SWjBycNX2aY=; b=XwmOhP0ujHNdpzemRqeWLlZsi9jGn+QmnVGytgXVK2djY1o+Qt0XhxVXUQfgRXoMe2v804 dPK1M9Qw2bAv0xz2+jhXTumwTanMXAdYDAmvup5hNwri4PnsSKxfqjQEPBzjOGCl+B5unF zAEw1PvIF2tUjOgLCoAZGvK6VNlKsKQ= 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-615-Ej3U1626PNedjkFLRq1Vcg-1; Tue, 31 May 2022 06:15:59 -0400 X-MC-Unique: Ej3U1626PNedjkFLRq1Vcg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BC9C0811E81; Tue, 31 May 2022 10:15:58 +0000 (UTC) Received: from thuth.com (unknown [10.39.194.45]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7B226492C3B; Tue, 31 May 2022 10:15:56 +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 v4 0/4] KVM: s390: selftests: Provide TAP output in tests Date: Tue, 31 May 2022 12:15:50 +0200 Message-Id: <20220531101554.36844-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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. v4: - Rebased to include test_termination() now in the memop test - Reworked the extension capability check in the memop test 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 | 95 +++++++++++++++---- 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, 197 insertions(+), 52 deletions(-) -- 2.31.1