From: Frederic Weisbecker <fweisbec@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Dave Young <dyoung@redhat.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
xiyou.wangcong@gmail.com, penberg@kernel.org,
fengguang.wu@intel.com, cl@linux.com
Subject: Re: [PATCH] selftests: Launch individual selftests from the main Makefile
Date: Thu, 9 Feb 2012 00:57:55 +0100 [thread overview]
Message-ID: <20120208235752.GE25473@somewhere.redhat.com> (raw)
In-Reply-To: <20120208152022.1016434f.akpm@linux-foundation.org>
On Wed, Feb 08, 2012 at 03:20:22PM -0800, Andrew Morton wrote:
> On Wed, 8 Feb 2012 04:40:59 +0100
> Frederic Weisbecker <fweisbec@gmail.com> wrote:
>
> > Drop the run_tests script and launch the selftests by calling
> > "make run_tests" from the selftests top directory instead. This
> > delegates to the Makefile on each selftest directory where it
> > is decided how to launch the local test.
> >
> > This drops the need to add each selftest directory on the
> > now removed "run_tests" top script.
>
> Looks good.
>
> I did
>
> cd tools/testing/selftests
> make run_tests
>
> and it didn't work. This?
>
>
>
> From: Andrew Morton <akpm@linux-foundation.org>
> Subject: selftests/Makefile: make `run_tests' depend on `all'
>
> So a "make run_tests" will build the tests before trying to run them.
>
> Cc: Frederic Weisbecker <fweisbec@gmail.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> tools/testing/selftests/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN tools/testing/selftests/Makefile~a tools/testing/selftests/Makefile
> --- a/tools/testing/selftests/Makefile~a
> +++ a/tools/testing/selftests/Makefile
> @@ -5,7 +5,7 @@ all:
> make -C $$TARGET; \
> done;
>
> -run_tests:
> +run_tests: all
> for TARGET in $(TARGETS); do \
> make -C $$TARGET run_tests; \
> done;
Yeah that's good. Thanks!
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Frederic Weisbecker <fweisbec@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Dave Young <dyoung@redhat.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
xiyou.wangcong@gmail.com, penberg@kernel.org,
fengguang.wu@intel.com, cl@linux.com
Subject: Re: [PATCH] selftests: Launch individual selftests from the main Makefile
Date: Thu, 9 Feb 2012 00:57:55 +0100 [thread overview]
Message-ID: <20120208235752.GE25473@somewhere.redhat.com> (raw)
In-Reply-To: <20120208152022.1016434f.akpm@linux-foundation.org>
On Wed, Feb 08, 2012 at 03:20:22PM -0800, Andrew Morton wrote:
> On Wed, 8 Feb 2012 04:40:59 +0100
> Frederic Weisbecker <fweisbec@gmail.com> wrote:
>
> > Drop the run_tests script and launch the selftests by calling
> > "make run_tests" from the selftests top directory instead. This
> > delegates to the Makefile on each selftest directory where it
> > is decided how to launch the local test.
> >
> > This drops the need to add each selftest directory on the
> > now removed "run_tests" top script.
>
> Looks good.
>
> I did
>
> cd tools/testing/selftests
> make run_tests
>
> and it didn't work. This?
>
>
>
> From: Andrew Morton <akpm@linux-foundation.org>
> Subject: selftests/Makefile: make `run_tests' depend on `all'
>
> So a "make run_tests" will build the tests before trying to run them.
>
> Cc: Frederic Weisbecker <fweisbec@gmail.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> tools/testing/selftests/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN tools/testing/selftests/Makefile~a tools/testing/selftests/Makefile
> --- a/tools/testing/selftests/Makefile~a
> +++ a/tools/testing/selftests/Makefile
> @@ -5,7 +5,7 @@ all:
> make -C $$TARGET; \
> done;
>
> -run_tests:
> +run_tests: all
> for TARGET in $(TARGETS); do \
> make -C $$TARGET run_tests; \
> done;
Yeah that's good. Thanks!
next prev parent reply other threads:[~2012-02-08 23:58 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-05 8:15 [PATCH 3/3] move hugepage test examples to tools/testing/selftests/vm Dave Young
2012-02-05 8:15 ` Dave Young
2012-02-06 23:53 ` Andrew Morton
2012-02-06 23:53 ` Andrew Morton
2012-02-07 1:31 ` Dave Young
2012-02-07 1:31 ` Dave Young
2012-02-08 3:40 ` [PATCH] selftests: Launch individual selftests from the main Makefile Frederic Weisbecker
2012-02-08 3:40 ` Frederic Weisbecker
2012-02-08 14:45 ` Christoph Lameter
2012-02-08 14:45 ` Christoph Lameter
2012-02-08 15:38 ` Frederic Weisbecker
2012-02-08 15:38 ` Frederic Weisbecker
2012-02-08 23:20 ` Andrew Morton
2012-02-08 23:20 ` Andrew Morton
2012-02-08 23:57 ` Frederic Weisbecker [this message]
2012-02-08 23:57 ` Frederic Weisbecker
2012-02-09 1:46 ` [PATCH 3/3 v2] move hugepage test examples to tools/testing/selftests/vm Dave Young
2012-02-09 1:46 ` Dave Young
2012-02-09 23:03 ` Andrew Morton
2012-02-09 23:03 ` Andrew Morton
2012-02-10 3:01 ` Dave Young
2012-02-10 3:01 ` Dave Young
2012-02-07 1:32 ` [PATCH 3/3] " Dave Young
2012-02-07 1:32 ` Dave Young
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120208235752.GE25473@somewhere.redhat.com \
--to=fweisbec@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=cl@linux.com \
--cc=dyoung@redhat.com \
--cc=fengguang.wu@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=penberg@kernel.org \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.