[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ECADFF3FD767C149AD96A924E7EA6EAF3AD1BF35@USCULXMSG01.am.sony.com>
Date: Wed, 13 Sep 2017 18:15:09 +0000
From: "Bird, Timothy" <Tim.Bird@...y.com>
To: Shuah Khan <shuahkh@....samsung.com>,
"yamada.masahiro@...ionext.com" <yamada.masahiro@...ionext.com>,
"mmarek@...e.com" <mmarek@...e.com>,
"shuah@...nel.org" <shuah@...nel.org>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"mingo@...hat.com" <mingo@...hat.com>,
"peterz@...radead.org" <peterz@...radead.org>,
"bamvor.zhangjian@...aro.org" <bamvor.zhangjian@...aro.org>,
"emilio.lopez@...labora.co.uk" <emilio.lopez@...labora.co.uk>,
"corbet@....net" <corbet@....net>
CC: "tytso@....edu" <tytso@....edu>,
"ebiederm@...ssion.com" <ebiederm@...ssion.com>,
"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"linux-kbuild@...r.kernel.org" <linux-kbuild@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-kselftest@...r.kernel.org" <linux-kselftest@...r.kernel.org>
Subject: RE: [PATCH 10/11] selftests: futex: copy sub-dir test scripts for
make O=dir run
> -----Original Message-----
> From: Shuah on Tuesday, September 12, 2017 4:53 PM
>
> For make O=dir run_tests to work, test scripts from sub-directories
> need to be copied over to the object directory. Running tests from the
> object directory is necessary to avoid making the source tree dirty.
>
> Signed-off-by: Shuah Khan <shuahkh@....samsung.com>
> ---
> tools/testing/selftests/futex/Makefile | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/futex/Makefile
> b/tools/testing/selftests/futex/Makefile
> index 7c647f619d63..9358cb210fd5 100644
> --- a/tools/testing/selftests/futex/Makefile
> +++ b/tools/testing/selftests/futex/Makefile
> @@ -11,10 +11,13 @@ all:
> BUILD_TARGET=$(OUTPUT)/$$DIR; \
> mkdir $$BUILD_TARGET -p; \
> make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
> + if [ -e $$DIR/$(TEST_PROGS) ]; then
> + rsync -a $$DIR/$(TEST_PROGS) $$BUILD_TARGET/;
Same issue with rsync here. This could be a 'cp -a', if I'm not mistaken.
> + fi
> done
>
> override define RUN_TESTS
> - $(OUTPUT)/run.sh
> + cd $(OUTPUT); ./run.sh
> endef
>
> override define INSTALL_RULE
> --
> 2.11.0
>
Powered by blists - more mailing lists