From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0D7C16B38E for ; Thu, 11 Jul 2024 16:14:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720714478; cv=none; b=hMOSElVyuMayrCG8W9WQXqeP0hlYD/FBdS/ULhIpUoazDm5WxRDn7vXXhs9kNlxLRLhL/GXJpw11r3t8HoLZR6xj+NmwKBTUEY1fq3MWFS7u/aKpf9KZ/rICXQBzoI58l5pLA4fNXJQwO3gJrtco+3igPJPpCfrxBkz66Wn6akY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720714478; c=relaxed/simple; bh=p0Fd5kqP/qELdWU/vCSn4X7+8f2/BPDr6C4O+78HNvI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=T7s5iiLBg00s2Ziq9njZb51Ay3VPxZzn8LwjRvn7MEa5aSkcxUuBo+yawqG2juTCRk1sRbom+Ll7ED7YWBwUeQBgWdI9rVvQF/t6Tl3GVTKh7cG1NKyxq4XgoAaaovnv3zbRTGeaOYo7RZz477KKXlAVbvto48q78j/8UcIAkqo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Qz5aLucv; arc=none smtp.client-ip=209.85.166.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Qz5aLucv" Received: by mail-il1-f176.google.com with SMTP id e9e14a558f8ab-38713ffc5f7so556005ab.2 for ; Thu, 11 Jul 2024 09:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1720714476; x=1721319276; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=fiasLvVkTXNMoP1/ktol3zYB4Lu4so/sXSPfIuMBjOQ=; b=Qz5aLucvlf/bSSgVdKS+FXDEHc2cJHKFBytwnBaEBmh21lQCO6AhWfblRILnoQArLF yhe2ENCRxCVNbO0oNb+0x3J5iXTLT0EocEdrGkl7okWzpGvVrcWc9wrcYiI5WbKa9fid pmgDJfPk2HipTl9bIwN6G9qfxfZ767W43Q4+Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720714476; x=1721319276; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fiasLvVkTXNMoP1/ktol3zYB4Lu4so/sXSPfIuMBjOQ=; b=KLUyxEi3P3r6taaZousRfguS48Jzliqh8VKq33Kz8L4g8zaiaob7N9TcXsptcJ/hxM b7imOeRldK2l529aSEeO2xZOZl5PKZySaGErcnU32FNkhj2mSvEGIxwBa8qxo280pj6q FPE/nE5cfvdO3gxmNJsWoPqmU3fW1rOnMYgx32On3zBc/insuwtr6HDhT3jRqXHSephf /WqKq4ujN5ik2ue1M1xXzQ528AsMzXrfHH/bhwWUUEt/pVYQxjW4q0YN7oKvmfmmw2xV qSNsJJbdSLU7q7xpI133EYPwDY4rN1fLe3mc7tpmdnehxszfhf5fa3p+aoZftpxDCt5g oS7Q== X-Forwarded-Encrypted: i=1; AJvYcCVsBB839Mrk4hrHAZ7RbE312oIGAnEC2sp3sDow6VCJRd5h8nKvuvovtfgBlLyhGIeJB7mqZ6nWitMTrcOasa6ZkmmCne3oHVks0p2+cZ9d X-Gm-Message-State: AOJu0YyItpaxFetEnvALwBLXNc1Yoe4dx0ZE19zeO2jammCjCmUVABsN v7zerQA+k5yg5u2014fnA4F5xP3WWXA7Tgw4WLitmJAY1ObJXxOMX+6dNqGViNE= X-Google-Smtp-Source: AGHT+IGmK81I/5GXFu3J42YAbYO3XZVPUmrRPMyz4POXr/27hNbZoYV8FRFcwColnWFsAKPbFW7I8w== X-Received: by 2002:a5e:de42:0:b0:7f9:3fd9:cbb with SMTP id ca18e2360f4ac-806e171b3a5mr298153439f.1.1720714475739; Thu, 11 Jul 2024 09:14:35 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4c0b1c12750sm1895166173.125.2024.07.11.09.14.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jul 2024 09:14:35 -0700 (PDT) Message-ID: Date: Thu, 11 Jul 2024 10:14:34 -0600 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/4] selftest: x86: conform tests to TAP format output To: Muhammad Usama Anjum , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , Shuah Khan References: <20240414131807.2253344-1-usama.anjum@collabora.com> <90dc0dfc-4c67-4ea1-b705-0585d6e2ec47@linuxfoundation.org> <386da8e3-1559-4ec2-9a66-f5f3f6405a2b@collabora.com> <23db41bb-1f3b-4b7b-95ac-960b8775a062@collabora.com> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 7/10/24 02:58, Muhammad Usama Anjum wrote: > Hi Shuah, > > Thank you for replying. > > On 7/10/24 4:39 AM, Shuah Khan wrote: >> On 7/2/24 04:17, Muhammad Usama Anjum wrote: >>> On 6/10/24 10:19 AM, Muhammad Usama Anjum wrote: >>>> Adding Borislav, Dave and x86 mailing list: >>>>     Please review the series. >>> Kind reminder >>> >> >> Usama, >> >> As I mentioned another TAP conversion patch from you  patch if the >> following command gives you TAP, there is  no need to convert. >> >> make -C tools/testing/tmp2 run_tests >> make kselftest TARGETS=tmp2 >> >> kselftest framework lib.mk and runtests wrappers take care for >> TAP. The reason to take care of this at framework level is to >> avoid changes to individual tests. The wrapper keys off of >> KSFT_* codes returned from tests. >> >> Please don't send TAP conversion patches like this one. The output >> from the commands will have duplicate messages. The reason tests >> return >> >> make -C tools/testing/tmp2 run_tests >> make kselftest TARGETS=tmp2 > The current series have several improvements which are beneficial in > several ways. I think these improvements should be included. While > conforming for TAP following improvements have been made: > > *[PATCH 1/4] check_initial_reg_state* > Removes manual counting of pass and fail tests > Increase readability and maintainability of tests > Print logs in standard format (without [RUN], [OK] tags) > > *[PATCH 2/4] corrupt_xstate_header* > Correct the skip, pass and fail return codes. Otherwise the test always > return 0 > Returns correct number of stats about passed/failed tests > Print logs in standard format > > *[PATCH 3/4] fsgsbase_restore* > Add test skip support instead of returning success at skip time for the > kselftest script to understand correct exit status > Print details about errno if error occurs > Increase readability and maintainability > Print logs in standard format > > *[PATCH 4/4 entry_from_vm86* > Remove manual pass/fail tests counting > Increase readability > Print details about errno if error occurs > Print logs in standard format > > > These improvements aren't evident from the description of patches as I > thought converting to TAP achieves all this by default. But I can improve > the patches description and send patch revision. Thoughts? > Please drop the TAP conversion and make the other changes in your v2. thanks, -- Shuah