Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp428382yba; Fri, 12 Apr 2019 06:29:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQws8oaFBNSX5WwNJ4xHhMocR2DbFv/czgtyzNWUzdaZxz+h9yaWEUd/sbfTau55E/Adot X-Received: by 2002:a17:902:6b0b:: with SMTP id o11mr8479347plk.266.1555075757176; Fri, 12 Apr 2019 06:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555075757; cv=none; d=google.com; s=arc-20160816; b=Cp2Zp+7M1QvoGDq2FIeLYVGJE0MxcNhlwL1GHw4L3ZylPsAjc8VHq1xA6ULaQVsUcD tl67GuKpOU0LnbGd2d3ten4f+bmvoYmE8MXxsM2VkWKhTrbXEsnN2DidHq1HJv9Zgc+Z Pn8cW2PoSV+ewjS+iSFu7wKLMT5juax0JWXVoeulHjYQMwsHvCUMZCLe76h6m/sdefJT aJ0zcDjH2frhaRArjJ5PP8xzxwLdpefBvz4+0U7szve43BQ7/XBaWrHw7mNPVt8Xpw94 5F/7vbkaeLUfhTU0hEFVNTWih35cgZQ0AbPbnoy/RTEA0neJCtOIpxdscKI19p2e90yj FGjw== 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=AeX2gZ7LEcxLS5qm7NnAjV/OmyrYN93gC4Ks9iP4Tss=; b=AqQPa9MfVTSKD4XQ8UQFJEohbNqwVI9vaTHqWM0St93qafaqUotVjYzpS02wzvdLFM gau/1lLzPsfDp1y+q3QMBNXaG0ved3ydCd/nYidIv0FjmKCEQXPcyD3pM13Ab4M4mUeP pL+EzhKyeHUVZBRf52JtNIc5vw2Pbfm1KKHqDt+/xfasFc+BNs21hQrgZjAGTeph+hX0 No9x/T1lep/lG494SqZWBQRS198JJoQDIjkDe4QvAmNvoDE0eqg7rbZKF3dsFyILs4tY JSRAD4QNpkYIRtqRkcTPNZRQpv2wGoBIwe/qAJD2kt2H5BXmq8fteIYwk2hnxr5CGeAm rggA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LrFvPgGD; 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 73si29769614pfs.186.2019.04.12.06.29.00; Fri, 12 Apr 2019 06:29:17 -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=LrFvPgGD; 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 S1726877AbfDLN1F (ORCPT + 99 others); Fri, 12 Apr 2019 09:27:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:56320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726244AbfDLN1E (ORCPT ); Fri, 12 Apr 2019 09:27:04 -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 52BA9206BA; Fri, 12 Apr 2019 13:27:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555075623; bh=pZpdFE2n9SIrv6fRHGRkRbWq48qrQJG6z6V/4z4Mvyg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=LrFvPgGDGc/EM49/+AwwlvwjOUBIJL/Bo6DA4Vni8alq00K19sd5kDyWO1yYYA++e FkrcZnU9wPe4oxYKiDpsiRRXglDz2ENiz++2UWeygJKPUfIwggaTvCcJFvALbEaZJ4 6CXJRcqJvXvtIJDpn6FEzbVdHntS0L/Qn9jLlb64= Subject: Re: [PATCH] selftests: livepatch use TEST_PROGS for test shell scripts To: Miroslav Benes Cc: jpoimboe@redhat.com, jikos@kernel.org, pmladek@suse.com, joe.lawrence@redhat.com, live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, shuah References: <20190412011823.26884-1-shuah@kernel.org> From: shuah Message-ID: <8967c9aa-7eb1-7e6d-a371-f29a2be24c84@kernel.org> Date: Fri, 12 Apr 2019 07:26:47 -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: Content-Type: text/plain; charset=utf-8; format=flowed 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 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. thanks, -- Shuah