Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3782107pxj; Tue, 11 May 2021 11:43:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2Flk1W8/Rv8Zu4UV6YOEznauM4witymIEdfsEcKr5S+zMwrZjF/9jwFltghumftTt+7pF X-Received: by 2002:a9d:170b:: with SMTP id i11mr22098438ota.161.1620758623240; Tue, 11 May 2021 11:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620758623; cv=none; d=google.com; s=arc-20160816; b=X/xY8AYWlJFz4TqOBjJUbx8RT3GHg9/z0Ucyji6xPUKgbIsgq8J30I6lXgwQbte7k5 GLQdJG09Szt3rB7dcjtdi4UmysOkoYd6y8+3OPIannp+7mcphocYg6tatlW0EtEjDS/+ dyZkgKNw0pUPi3s21Lym+t4KwLcg6xYpzgoD10GeCywZxuBhPcffcWaA6PuA91sx2Ecl cke6kG+QJPHC2XSrjbaQXq0PWo51V9roDV91UIsB4Mc7FnHKgVMYBY5hGEymIoX7W7aG 5tXMORMbBGJLnV9X6L7BRrIvmWbGzMzOpqj2ztmW+XcX0Uo6kcAkIlPQ6xGPZcDTSW6O JZbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=EEnpQXXFz09zRuy36hkG3nhtayUsP0PJJhv6iMSwBYU=; b=Gst7bpNXZTyczmgmLZtpabha6zpSAa7fUHqC83AZPJeavGJ7sNbLfIgHRr1aZWLkWh Bv+123Vo/2OKdzVeJnrSDYqXoxJkY091NRO326jl8dDgfsFun2ASUqKTOQ19FyKP9Dj1 ElSoe99kARBF0Pij1glDbZTEPOYFe7c+W9/m+IgfH18UFfPVqwJ71Og2Ycs0u3bLmyfp PwiKj/EeuKd+A4rNiEdyCehK29Ah08dt7l0E+a+dkTMS3hXklVL6JJ/3+SaZJZDjpIUo E85GHklF6w1DPUKySDVCqU5hhEIzqZZ6fiv2KbetDrp5X0YpkM6Y/s+zPrl/EiSpbvS5 HJYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c29si22353029oos.40.2021.05.11.11.43.28; Tue, 11 May 2021 11:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231944AbhEKSoA (ORCPT + 99 others); Tue, 11 May 2021 14:44:00 -0400 Received: from mga09.intel.com ([134.134.136.24]:32595 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231439AbhEKSn7 (ORCPT ); Tue, 11 May 2021 14:43:59 -0400 IronPort-SDR: zLRpky9fTDlIZUrkWZBo4I+/vViK8ZXZd9FZyVtAuH+4ElP+jUOeS7mUhanVX10Yckmfqkje2L e3vRUgClTbBg== X-IronPort-AV: E=McAfee;i="6200,9189,9981"; a="199584267" X-IronPort-AV: E=Sophos;i="5.82,291,1613462400"; d="scan'208";a="199584267" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2021 11:42:50 -0700 IronPort-SDR: SNslpm6H7oY9Yy0CklaU2a5gXmehDeLljBthZO+XRQTzzmy/zNpYvxKwdFJtOB1sKFX2XwphPS Sm3Fe1AU2vnw== X-IronPort-AV: E=Sophos;i="5.82,291,1613462400"; d="scan'208";a="436794266" Received: from rchatre-mobl3.amr.corp.intel.com (HELO [10.255.230.234]) ([10.255.230.234]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2021 11:42:50 -0700 Subject: Re: [PATCH v4 2/2] selftests/sgx: Migrate to kselftest harness To: Jarkko Sakkinen , Shuah Khan Cc: linux-sgx@vger.kernel.org, Dave Hansen , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210508035648.18176-1-jarkko@kernel.org> <20210508035648.18176-2-jarkko@kernel.org> From: Reinette Chatre Message-ID: <960f1cd8-d805-8ed8-6af0-eed1f49e3c65@intel.com> Date: Tue, 11 May 2021 11:42:49 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210508035648.18176-2-jarkko@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jarkko, On 5/7/2021 8:56 PM, Jarkko Sakkinen wrote: > Migrate to kselftest harness. Use a fixture test with enclave initialized > and de-initialized for each of the existing three tests, in other words: > > 1. One FIXTURE() for managing the enclave life-cycle. > 2. Three TEST_F()'s, one for each test case. These changes make it easier to add tests and I think it is a valuable addition. > > This gives a leaps better reporting than before. Here's an example > transcript: > > TAP version 13 > 1..3 > 0x0000000000000000 0x0000000000002000 0x03 > 0x0000000000002000 0x0000000000001000 0x05 > 0x0000000000003000 0x0000000000003000 0x03 > ok 1 enclave.unclobbered_vdso > 0x0000000000000000 0x0000000000002000 0x03 > 0x0000000000002000 0x0000000000001000 0x05 > 0x0000000000003000 0x0000000000003000 0x03 > ok 2 enclave.clobbered_vdso > 0x0000000000000000 0x0000000000002000 0x03 > 0x0000000000002000 0x0000000000001000 0x05 > 0x0000000000003000 0x0000000000003000 0x03 > ok 3 enclave.clobbered_vdso_and_user_function > The output claims to conform to TAP13 but it does not seem as though all of the output conforms to TAP13. I assume such output would confuse automated systems. Reinette