Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp711746yba; Fri, 12 Apr 2019 12:07:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcY6SBCkgk4rTVz4bnBhR/qKaSkIvJ/6JjFGrddCnpyjwYYeUo2uQ8L2cUbk2TG8DdtWZs X-Received: by 2002:a65:554e:: with SMTP id t14mr44469575pgr.107.1555096034535; Fri, 12 Apr 2019 12:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555096034; cv=none; d=google.com; s=arc-20160816; b=j155cmYIoWLegdSY/esTIdRaG6xAzRvJBwH1PiAhxvRav2RTerWJKGDsN006g2h6YS y2B61w9+Bcmzw8cMYzdqnV/AX+x1U5Uo8l+zVFHmqaecfodVzRzZKZFe0D2F4fOFBLWm EnmrwsfG5AjpG9FOiV0bXLNr29AEgmBe7AcH5dlZZyFOF0SLZoDtb47xmJJBRT6cFsH+ VMFNJbfyRCAaTEURLmfk6EP29+LIbGrOeQu+wtJioUrFymKuXJRIA5aAGeu3RV8LEvar HhxtK4YOq3EGjj3D0HOvvBInZctDTfcc3Kx0aQFlTxG9Ufv+HMsM8vtmhQKV09BeMQTH GZDg== 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=xLMKNYm+XbBoHWPgVccZs/gWCktKcD6ridq9JCe5Gzg=; b=lzDjnorCf/RTfjxQPYXTmzATU0/kHm6igaEfZxTNbnRwEBeN9cfcmcfQybZyEO7niW hji3dtrcIkMjQNX7zKa8sa32h6d+H6KGKrCXGGPCXIPj0Y0w8MWcH/5Cs0WRH4RRCnl4 AAjonyN3j6c+goyV6fJ3myIM+hev26YG57/VOFa3zcTol3PH51RWj5q1m9uHl85i9K1t 8ldhe6NXZASqu4bioCKJJ1+odxuW09HHJaeyInru+zjAinH+qv9b07zjp7kDfh016HuD HtkMIByVjIVvw2W/ILdBTML0BOEAlw3Uj20Lw+4+fSpqU1SvMaduEXSlZkcRYZp6CFjY c5fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="S/e9nKOI"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cc18si40596097plb.363.2019.04.12.12.06.57; Fri, 12 Apr 2019 12:07:14 -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=pass header.i=@kernel.org header.s=default header.b="S/e9nKOI"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726944AbfDLTGY (ORCPT + 99 others); Fri, 12 Apr 2019 15:06:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:36496 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbfDLTGY (ORCPT ); Fri, 12 Apr 2019 15:06:24 -0400 Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A9BDC20818; Fri, 12 Apr 2019 19:06:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555095983; bh=TPyXzxpNCFg8DH4jzTgBnGYcFVIJNGmCk/REZ+s49IM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=S/e9nKOI8cxbFevPNFW5xNh+F6oqMwRSlZ+IPZsqshZz4Ie3N4yKEHZsMHH4HE7RA amyM9Gn7PtQ9mtPxACvnialX+v0rBQiZFOxU79jzD4LsR5YIHpmep3HgSQssWAWtg5 c2yPaHRpWkakk3GtD/fRtMT87XL0qKGQvbdyABKQ= Subject: Re: [PATCH] selftests: livepatch use TEST_PROGS for test shell scripts To: Joe Lawrence , Miroslav Benes Cc: jpoimboe@redhat.com, jikos@kernel.org, pmladek@suse.com, live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, shuah References: <20190412011823.26884-1-shuah@kernel.org> <8967c9aa-7eb1-7e6d-a371-f29a2be24c84@kernel.org> <6f97800f-e78f-7d16-32b2-96ee5260321c@redhat.com> From: shuah Message-ID: <1e07dae8-6699-6b72-1508-2b6b89d3d92d@kernel.org> Date: Fri, 12 Apr 2019 13:06:21 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <6f97800f-e78f-7d16-32b2-96ee5260321c@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/12/19 12:51 PM, Joe Lawrence wrote: > On 4/12/19 1:05 PM, shuah wrote: >> On 4/12/19 7:37 AM, Miroslav Benes wrote: >>> On Fri, 12 Apr 2019, shuah wrote: >>> >>>> On 4/12/19 1:03 AM, Miroslav Benes wrote: >>>>> On Thu, 11 Apr 2019, Shuah Khan wrote: >>>>> >>>>>> TEST_PROGS variable is for test shell scripts and common clean target >>>>>> in lib.mk doesn't touch them. TEST_GEN_PROGS are removed by it. >>>>>> >>>>>> Fix it to use TEST_PROGS for test shell scripts and >>>>>> TEST_PROGS_EXTENDED >>>>>> for common functions.sh. >>>>>> >>>>>> Signed-off-by: Shuah Khan >>>>>> --- >>>>>>     tools/testing/selftests/livepatch/Makefile | 3 ++- >>>>>>     1 file changed, 2 insertions(+), 1 deletion(-) >>>>>> >>>>>> diff --git a/tools/testing/selftests/livepatch/Makefile >>>>>> b/tools/testing/selftests/livepatch/Makefile >>>>>> index af4aee79bebb..fd405402c3ff 100644 >>>>>> --- a/tools/testing/selftests/livepatch/Makefile >>>>>> +++ b/tools/testing/selftests/livepatch/Makefile >>>>>> @@ -1,6 +1,7 @@ >>>>>>     # SPDX-License-Identifier: GPL-2.0 >>>>>> -TEST_GEN_PROGS := \ >>>>>> +TEST_PROGS_EXTENDED := functions.sh >>>>>> +TEST_PROGS := \ >>>>>>      test-livepatch.sh \ >>>>>>      test-callbacks.sh \ >>>>>>      test-shadow-vars.sh >>>>> >>>>> Hi Shuah, >>>>> >>>>> thanks for the patch. We have already something similar queued in >>>>> our git >>>>> tree. See >>>>> https://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching.git/commit/?h=for-5.1/upstream-fixes&id=abfe3c4560684864f66641438fee3075de098e89 >>>>> >>>>> >>>>> It is missing TEST_PROGS_EXTENDED though. Should we add it? >>>>> >>>> >>>> Please do. What that does is when selftests are installed, functions.h >>>> gets installed as well so the the test can run from installed location. >>>> >>>> Did I miss reviewing the original? I maintain the framework and try to >>>> catch these if patch gets sent to me. >>> >>> Unfortunately you did and it was our fault. You were not CCed, no one >>> noticed and we were a bit trigger happy. Sorry about that. It should not >>> have happened. >>> >>> Would this work for you? >> >> Looks good to me. >> > > Hi Shuah, > > Thanks for spotting this and apologies for missing your CC on my earlier > patch post.  For future reference, do you prefer a direct CC, > linux-kselftest, or both? No worries. Happy to report the problem. Couldn't have missed it with all the deleted lines showing up whenever I ran diff on my changes. :) Direct to or cc to me and cc linux-kselftest list is preferred Same as any other patch really, everybody getmaintainer.pl recommends. thanks, -- Shuah