[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOuPNLh17DH2nZL86WSWKUKQJr-Z1EY+ZqRFsXRTqK-XMtyx2g@mail.gmail.com>
Date: Wed, 7 Feb 2018 11:31:04 +0530
From: Pintu Kumar <pintu.ping@...il.com>
To: Daniel Díaz <daniel.diaz@...aro.org>
Cc: Shuah Khan <shuahkh@....samsung.com>,
linux-kselftest@...r.kernel.org, Shuah Khan <shuah@...nel.org>,
Darren Hart <dvhart@...radead.org>,
Kate Stewart <kstewart@...uxfoundation.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] selftests/android: Fix line continuation in Makefile
On Wed, Feb 7, 2018 at 5:22 AM, Daniel Díaz <daniel.diaz@...aro.org> wrote:
> The Makefile lacks a couple of line continuation backslashes
> in an `if' clause, which can make the subsequent rsync
> command go awry over the whole filesystem (`rsync -a / /`).
>
> /bin/sh: -c: line 5: syntax error: unexpected end of file
> make[1]: [all] Error 1 (ignored)
> TEST=$DIR"_test.sh"; \
> if [ -e $DIR/$TEST ]; then
> /bin/sh: -c: line 2: syntax error: unexpected end of file
> make[1]: [all] Error 1 (ignored)
> rsync -a $DIR/$TEST $BUILD_TARGET/;
> [...a myriad of:]
> [ rsync: readlink_stat("...") failed: Permission denied (13)]
> [ skipping non-regular file "..."]
> [ rsync: opendir "..." failed: Permission denied (13)]
> [and many other errors...]
> fi
> make[1]: fi: Command not found
> make[1]: [all] Error 127 (ignored)
> done
> make[1]: done: Command not found
> make[1]: [all] Error 127 (ignored)
>
> Signed-off-by: Daniel Díaz <daniel.diaz@...aro.org>
> ---
> tools/testing/selftests/android/Makefile | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/tools/testing/selftests/android/Makefile b/tools/testing/selftests/android/Makefile
> index 1a74922..f6304d2 100644
> --- a/tools/testing/selftests/android/Makefile
> +++ b/tools/testing/selftests/android/Makefile
> @@ -11,11 +11,11 @@ all:
> BUILD_TARGET=$(OUTPUT)/$$DIR; \
> mkdir $$BUILD_TARGET -p; \
> make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
> - #SUBDIR test prog name should be in the form: SUBDIR_test.sh
> + #SUBDIR test prog name should be in the form: SUBDIR_test.sh \
> TEST=$$DIR"_test.sh"; \
> - if [ -e $$DIR/$$TEST ]; then
> - rsync -a $$DIR/$$TEST $$BUILD_TARGET/;
> - fi
> + if [ -e $$DIR/$$TEST ]; then \
> + rsync -a $$DIR/$$TEST $$BUILD_TARGET/; \
> + fi \
> done
Thanks for your patch.
However, I have copied this Makefile from
tools/testing/selftests/futex/Makefile before modifying it.
If there is a problem with backslash then the same problem must be
there in futex Makefile as well.
Can you compare these 2 Makefile and see if there is any problem.
Also is it because of make version ?
Can you check your make version ?
Thank You!
Pintu
>
> override define RUN_TESTS
> --
> 2.7.4
>
Powered by blists - more mailing lists