Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7070072ybp; Wed, 16 Oct 2019 03:23:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbPpPIFdnrE+CLzoBFMJ7uecWqRpc/2nsefU5WSjdkaXolP+q3zTAhn2BemUssbZFcccZd X-Received: by 2002:aa7:cb55:: with SMTP id w21mr38058663edt.163.1571221409905; Wed, 16 Oct 2019 03:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571221409; cv=none; d=google.com; s=arc-20160816; b=ULTE26nVu2I2rOR2bFNPWMlVTqL3v1PTlBe6+NhKvnsCL2/NdmyAsEJ5930YYTdwDt e/pLmW3CO8wB8np15VvKrzIN2omFEWW/lWe5ZCDQrhC04iukufy0N7QWnLNe60cgl9Za awC3vHLstirIvDz8fqBGGXUeBjJFno3RAF77QRpIU2UqGZUxkgfSV2jJ3yzMX2qgZVMG gjKtc4wpyWdIKNa0aUqfMbQujoS9lNF65tYkm30fZrc4RtbHh3/mWGGrky/I/BKpj0hC zkEZObY7fHE5eodK7M84MfU5cZwlhh4fyxws6mhlJAuBzqHTx8ac9LDmnGBisPY1r96j VliA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=L6imMJc1cV8R/BwoH5yVN5zNrTCnJDTEPv9mMXL2TMg=; b=EkeMoPtRvnVts4tlAR7kRmDzpsX1oDbVnplFthkGAAQANjXBNKqo2DpnGXAxyWPn3b /d4jkZlIXAJ0Powus0kQQ32dd3ItiYOQyirke80y5htQtABP8BivuHzShmoZvX+5XV9g MaI+MXxTgFuME5uIH912RT0/z92PZJxXOMbLafKkXMocTdI2WEnvQjrgjvpJEcCWj8ZD 4OWg8VAySuD3h8A5i15k9JSndJctmM6MbzkWP2GGO7uHncMMt0OWVYkz17gmsqoCzYeM aAR9HK1K8/Zrz9L70kAAs76clf2qJwPN1z13G3x09Gatq24NivBy/mNMFuA8pf3fQ6h6 FwAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=XPgn6dcX; 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 nh5si15025212ejb.154.2019.10.16.03.23.06; Wed, 16 Oct 2019 03:23:29 -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=@ellerman.id.au header.s=201909 header.b=XPgn6dcX; 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 S2389221AbfJPCAa (ORCPT + 99 others); Tue, 15 Oct 2019 22:00:30 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:34283 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727488AbfJPCAa (ORCPT ); Tue, 15 Oct 2019 22:00:30 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 46tFqs03bsz9sP7; Wed, 16 Oct 2019 13:00:25 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1571191226; bh=0KA4g3xowsqOnI9ovIRoXat3q18fqIJdjDOOFzRTZIg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=XPgn6dcXOiENhvvPhScdow4uV6XbPWC/BZjzknSx1mU6zuIAhaMjhUAq9EcndoA8U FiJoTuLImuL4G+j2ot562gMKoLKb8zxE2O0ShNPLunyJVc/6LAkX+9F4tB1OLvcPYi Ty1JdudVrAYDJzRpQ6q3PYyO2XQKnU+yxJSwixPESIK6WCxUX90Fe5IvVEOVGitbuk /6AlB1ZsGHmwqARGfbkYZOYrqLL4DvIA7YCzqeaUJLd+7YVW/UMmXXKKF1hVrrzUgE sRMFALFgH9UfdEg1BNE9HeutVBQa9qAL1Xw9LgmhAIFgsQQL82AJqNrcASGRqPMrHv f+TT+KahHEtqQ== From: Michael Ellerman To: Shuah Khan , yamada.masahiro@socionext.com, michal.lkml@markovi.net, shuah@kernel.org Cc: Shuah Khan , linux-kbuild@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] selftests: Add kselftest-all and kselftest-install targets In-Reply-To: <20190926224014.28910-1-skhan@linuxfoundation.org> References: <20190926224014.28910-1-skhan@linuxfoundation.org> Date: Wed, 16 Oct 2019 13:00:21 +1100 Message-ID: <87sgnttpoq.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shuah, I know this has been merged already, so this is just FYI and in case it helps anyone else who's tracking down build failures. Sorry I didn't reply before you merged it, I was on leave. Shuah Khan writes: > Add kselftest-all target to build tests from the top level > Makefile. This is to simplify kselftest use-cases for CI and > distributions where build and test systems are different. > > Current kselftest target builds and runs tests on a development > system which is a developer use-case. > > Add kselftest-install target to install tests from the top level > Makefile. This is to simplify kselftest use-cases for CI and > distributions where build and test systems are different. > > This change addresses requests from developers and testers to add > support for installing kselftest from the main Makefile. > > In addition, make the install directory the same when install is > run using "make kselftest-install" or by running kselftest_install.sh. > Also fix the INSTALL_PATH variable conflict between main Makefile and > selftests Makefile. ... > diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile > index c3feccb99ff5..bad18145ed1a 100644 > --- a/tools/testing/selftests/Makefile > +++ b/tools/testing/selftests/Makefile > @@ -171,9 +171,12 @@ run_pstore_crash: > # 1. output_dir=kernel_src > # 2. a separate output directory is specified using O= KBUILD_OUTPUT > # 3. a separate output directory is specified using KBUILD_OUTPUT > +# Avoid conflict with INSTALL_PATH set by the main Makefile > # > -INSTALL_PATH ?= $(BUILD)/install > -INSTALL_PATH := $(abspath $(INSTALL_PATH)) > +KSFT_INSTALL_PATH ?= $(BUILD)/kselftest_install This change broke all my CI, because the tests no longer install in the place it's expecting them :/ I can fix it by explicitly specifying the install path in my CI scripts. > +KSFT_INSTALL_PATH := $(abspath $(KSFT_INSTALL_PATH)) > +# Avoid changing the rest of the logic here and lib.mk. > +INSTALL_PATH := $(KSFT_INSTALL_PATH) But because the over-rideable variable changed from INSTALL_PATH to KSFT_INSTALL_PATH I will need to export both of them in order for my CI to work with old and new kernels. So to emulate the old behaviour for old & new kernels you need to do: # export KSFT_INSTALL_PATH=install # export INSTALL_PATH=install # make -C tools/testing/selftests install cheers