Received: by 2002:a17:90a:8582:0:0:0:0 with SMTP id m2csp2333550pjn; Tue, 2 Apr 2019 14:34:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4bCjgDXlGJy0g1BHomlzrkjqejyl4L8RB44zCFrbUGKIxTQM92/iMmLnHeJtlMJ657ACG X-Received: by 2002:aa7:81d0:: with SMTP id c16mr51815895pfn.132.1554240870525; Tue, 02 Apr 2019 14:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554240870; cv=none; d=google.com; s=arc-20160816; b=swagzJMRnkrCf1nTRMEgpGw5ypxx0VDyUUI77z8ObVePuBfL8ymhJHi+k5ldKMV0I2 8UO7xPIENAWfyXZbOzGUUw3cQabjYCuDNiGsuJge/DvQSSaLEeBwBN999+EHV8WzVb1e InPm54QPESJ7ohiNzUErlAsI6ftkWOWfvmob92ab8d4KAADyJkUmBoQLV7ds0rXcptQa R5gyBwiaji43ZqQE9C7w/x2EDfAkcHmj70i2a0sqi+jmT/3p4yTfqH4adHnKO+5kEfcq 4USj4XwLEDrd+aCYa/qcBYRiRAcgiOA/DwLhri1GXgQFNl4O3Nm36z+CBFEN9dDwNDB0 t5Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=pxXvuXnfM56qlzMiNlWVyG/CkRRcaj6fqDPZd0RAYPM=; b=Y51kDK5Qi+IzCLhnuY7XJ0xlcjtTi3+I1K5bsNbHkK1Pv1VafowRmrlhYbM3v4TDdY I0UaUA/tIh5uFgeLLsWeB5jp98EsKYI4FAL1X3s97NyeWxb+/yRKJgR/7TB/9+GlKLNb LHLPPn5/gohB1HbF+9/wRl6isvtHqW4SKcn+EwyLNCFAjv5KmTXtSVJg10OcCjO2OYVV ug+GLpOMa+zm/3nWra3SxvBdKyT9vqfBWw/ZY02ZqoB4TWK0a2GKBcDdsu4vPrgWqPIO APz81F1plEr9WnRJzcIhwgAGLt8xZheCzPnXFlxpuBXawz0jeBCucbTIheplG9K4/99c 2ZIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=1YmP6KQe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si11818559plm.25.2019.04.02.14.34.14; Tue, 02 Apr 2019 14:34:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=1YmP6KQe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726615AbfDBVdW (ORCPT + 99 others); Tue, 2 Apr 2019 17:33:22 -0400 Received: from merlin.infradead.org ([205.233.59.134]:33054 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbfDBVdW (ORCPT ); Tue, 2 Apr 2019 17:33:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pxXvuXnfM56qlzMiNlWVyG/CkRRcaj6fqDPZd0RAYPM=; b=1YmP6KQeQHWx3SMdOj0LydaEUq 98pncAxzrBL6cChcEnJS0zBUelDTSqmeJIIveA/TmqW58oqUPKFwvOiFY6Luh1HSRpqdhN0A0GfTJ CC3DGehioMc43QhPaP0+XWTELZaQQpT431tVFstw6p21lYPdmEXTgPiXttegGcl3AwKz8PD9pfAtw rvJrYNZw4L8SC00H2zj3mpTsc5tNEAhaXtceFgxBc5hCc3wKgzg0vtNGYaD/icrGJg88Ycw+eLqmM 19alfjQCMg8rSnzMsX/P//vbNaiJhMvLqQRKYKUwpQav4YWtVtAUqRVDVBlC5NJZl4mzcGzsVg9xx KdIWd4sg==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBR1w-0005Rd-UD; Tue, 02 Apr 2019 21:33:17 +0000 Subject: Re: [PATCH v3 2/7] kselftest: Add test runner creation script To: Kees Cook , "Tobin C. Harding" Cc: Shuah Khan , Jann Horn , Andy Shevchenko , Rasmus Villemoes , Stephen Rothwell , Andy Lutomirski , Daniel Micay , Arnd Bergmann , Miguel Ojeda , "Gustavo A. R. Silva" , Greg Kroah-Hartman , Alexander Shishkin , Kernel Hardening , "open list:KERNEL SELFTEST FRAMEWORK" , LKML References: <20190306214226.14598-1-tobin@kernel.org> <20190306214226.14598-3-tobin@kernel.org> From: Randy Dunlap Message-ID: <32a2dca5-d3cd-e7d3-e73b-406d897ae174@infradead.org> Date: Tue, 2 Apr 2019 14:33:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, nits/typos below: On 4/2/19 2:27 PM, Kees Cook wrote: > On Wed, Mar 6, 2019 at 1:43 PM Tobin C. Harding wrote: >> >> >> Add test runner creation script. >> >> Signed-off-by: Tobin C. Harding >> --- >> tools/testing/selftests/kselftest_module.sh | 75 +++++++++++++++++++++ >> 1 file changed, 75 insertions(+) >> create mode 100755 tools/testing/selftests/kselftest_module.sh >> >> diff --git a/tools/testing/selftests/kselftest_module.sh b/tools/testing/selftests/kselftest_module.sh >> new file mode 100755 >> index 000000000000..b5d446738614 >> --- /dev/null >> +++ b/tools/testing/selftests/kselftest_module.sh >> @@ -0,0 +1,75 @@ >> +#!/bin/sh >> +# SPDX-License-Identifier: GPL-2.0+ >> + >> +# >> +# Runs an individual test module. kselftest expects a separate >> +# executable for each test. So test should each have an individial individual >> +# script that can call this script. >> +# >> + >> +# Individual test scrits should define these: scripts >> +module="" # filename (without the .ko). >> +desc="" # Output prefix. cheers. -- ~Randy