This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] make -j10 check TESTS=gdb.foo/*.exp
- From: Doug Evans <dje at google dot com>
- To: Yao Qi <yao at codesourcery dot com>, Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Tue, 18 Feb 2014 16:13:10 -0800
- Subject: Re: [PATCH v2] make -j10 check TESTS=gdb.foo/*.exp
- Authentication-results: sourceware.org; auth=none
- References: <yjt2eh376byh dot fsf at ruffy dot mtv dot corp dot google dot com> <52FC7FED dot 2040402 at codesourcery dot com> <21245 dot 11062 dot 955369 dot 412598 at ruffy dot mtv dot corp dot google dot com>
On Thu, Feb 13, 2014 at 12:29 PM, Doug Evans <dje@google.com> wrote:
> Yao Qi writes:
> > On 02/13/2014 09:25 AM, Doug Evans wrote:
> > > This patch implements this idea.
> > >
> > > E.g.,
> > > bash$ make -j10 check TESTS="gdb.server/*.exp gdb.threads/*.exp"
> >
> > This is good. I am using RUNTESTFLAGS='--directory=gdb.server', but
> > impossible to specify two directories in one run. We also need to
> > update README in testsuite directory to document it.
>
> This patch improves things a little bit.
> It makes TESTS=foo work for non-parallel mode as well,
> and handles the "no matching tests found" case a little cleaner.
> [At some point I think one can get carried away with polishing
> up this stuff, but I'm happy to take it this far.]
>
> 2014-02-13 Doug Evans <dje@google.com>
>
> * Makefile.in (TESTS): New variable.
> (expanded_tests, expanded_tests_or_none): New variables
> (check-single): Pass $(expanded_tests_or_none) to runtest.
> (check-parallel): Only run tests in $(TESTS) if non-empty.
> (check/no-matching-tests-found): New rule.
> * README: Document TESTS makefile variable.
I've committed this.