From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932967AbbCESxh (ORCPT ); Thu, 5 Mar 2015 13:53:37 -0500 Received: from arcturus.aphlor.org ([188.246.204.175]:53674 "EHLO arcturus.aphlor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753161AbbCESxe (ORCPT ); Thu, 5 Mar 2015 13:53:34 -0500 Date: Thu, 5 Mar 2015 13:53:26 -0500 From: Dave Jones To: Michael Ellerman Cc: linux-kernel@vger.kernel.org, shuahkh@osg.samsung.com, mmarek@suse.cz, linux-api@vger.kernel.org Subject: Re: [PATCH 2/9] selftests: Add install target Message-ID: <20150305185326.GA30620@codemonkey.org.uk> Mail-Followup-To: Dave Jones , Michael Ellerman , linux-kernel@vger.kernel.org, shuahkh@osg.samsung.com, mmarek@suse.cz, linux-api@vger.kernel.org References: <1425358302-16680-1-git-send-email-mpe@ellerman.id.au> <1425358302-16680-2-git-send-email-mpe@ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1425358302-16680-2-git-send-email-mpe@ellerman.id.au> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Report: Spam report generated by SpamAssassin on "arcturus.aphlor.org" Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Authenticated-User: davej@codemonkey.org.uk Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2015 at 03:51:35PM +1100, Michael Ellerman wrote: > This adds make install support to selftests. The basic usage is: > > $ cd tools/testing/selftests > $ make install > > That installs into tools/testing/selftests/install, which can then be > copied where ever necessary. > > The install destination is also configurable using eg: > > $ INSTALL_PATH=/mnt/selftests make install ... > + @# Ask all targets to emit their test scripts > + echo "#!/bin/bash\n\n" > $(ALL_SCRIPT) $ ./all.sh -bash: ./all.sh: /bin/bash\n\n: bad interpreter: No such file or directory Removing the \n\n fixes it. > + echo "cd \$$ROOT\n" >> $(ALL_SCRIPT); \ ditto Dave