Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp437272yba; Fri, 12 Apr 2019 06:38:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwv2bR6SHi/dN2QnRP2XSXEj25TXS6Q5H+g87naR5Q84et9HQnc7eDHe/gVJzpNNghi9ZhS X-Received: by 2002:a17:902:4101:: with SMTP id e1mr55321224pld.25.1555076323208; Fri, 12 Apr 2019 06:38:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555076323; cv=none; d=google.com; s=arc-20160816; b=PnilW1LbX1C2ShGHgljYvuLcSVMKV5MBieRDkl+4Vngr/uMqB3yC3XEcLEhq4IJWsx sNU4BLeFQ7ddTowxPRf+xFwiddp2ZGDi2b1is22bPN+aP9Zpem+CttyZSSJBxp8iy1Ao 84esyOdL7yVbdawqJ3r7Pu0SYu85lwp4O1WAqL6jHytibLG/bNROofNQ7r7RsQA91E9m NRM2eV8eR3pxX4UJI24KGChi63TO+HX2XED3fv3t91tI6RGmdQISlGgKwbtcNYPuLFcu 4SFl3j0UvLMieOBGRiCOneDaZuy+wBsLvbYZh9FlFWFcAJRLH22FSGe/Epf/I8Cinwgp Qkpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=Db2WiuXT2qFhE+oCKKsOxprj7G/QCISAu0hEOG4FY3E=; b=SMqRg0Xz+Aa0r8C6LtcBs25gaRusoNIa9to4nOhnxo4waAD4H6iv7MQPKLq8mFFvyV XVRinkLmOCsCF1EaWzZ9A+4URTjn4KhXgl6gA4shtP4JePuwEwLsg6dC4t3v2LTq54vJ ozuby2XUwZ++dijAJJUTavBrxtqO4vO71O7N0gXhYIShgNVpytqj2nMPvIS+6Sw+x4pv kP0SokzA/z2vWuinXD7lHDNQvvBZVZivJoWo0UNI7GAbRfNplztlAnNsg5gXublAyKLz TKyZ96lPVK18LXHxjBvdXDjGIdV3W2Z7ct2NkR2iZ65bOaJM/t3ZhRxowsyn3VbPw6S5 gtZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 u20si37353535pgi.431.2019.04.12.06.38.27; Fri, 12 Apr 2019 06:38:43 -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; 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 S1726952AbfDLNhk (ORCPT + 99 others); Fri, 12 Apr 2019 09:37:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:46336 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726772AbfDLNhk (ORCPT ); Fri, 12 Apr 2019 09:37:40 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 9CE86AD51; Fri, 12 Apr 2019 13:37:38 +0000 (UTC) Date: Fri, 12 Apr 2019 15:37:37 +0200 (CEST) From: Miroslav Benes To: shuah 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 Subject: Re: [PATCH] selftests: livepatch use TEST_PROGS for test shell scripts In-Reply-To: <8967c9aa-7eb1-7e6d-a371-f29a2be24c84@kernel.org> Message-ID: References: <20190412011823.26884-1-shuah@kernel.org> <8967c9aa-7eb1-7e6d-a371-f29a2be24c84@kernel.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -->8-- From c158f5595286dba46f096cc7cc4bcef5ad8b6c16 Mon Sep 17 00:00:00 2001 From: Miroslav Benes Date: Fri, 12 Apr 2019 15:31:42 +0200 Subject: [PATCH] selftests/livepatch: Add functions.sh to TEST_PROGS_EXTENDED Add functions.sh to TEST_PROGS_EXTENDED so that it is installed along with the rest of the selftests and they can be run. Originally-by: Shuah Khan Signed-off-by: Miroslav Benes --- tools/testing/selftests/livepatch/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/livepatch/Makefile b/tools/testing/selftests/livepatch/Makefile index 114f43e2081a..fd405402c3ff 100644 --- a/tools/testing/selftests/livepatch/Makefile +++ b/tools/testing/selftests/livepatch/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 +TEST_PROGS_EXTENDED := functions.sh TEST_PROGS := \ test-livepatch.sh \ test-callbacks.sh \ -- 2.21.0