Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Simon Marchi <simon.marchi@ericsson.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] testsuite: Add --status to runtest invocation
Date: Tue, 19 Jan 2016 11:24:00 -0000	[thread overview]
Message-ID: <569E1CF9.5010102@redhat.com> (raw)
In-Reply-To: <1453157560-7080-1-git-send-email-simon.marchi@ericsson.com>

On 01/18/2016 10:52 PM, Simon Marchi wrote:
> As discussed in this thread:
> 
>   https://sourceware.org/ml/gdb-patches/2016-01/msg00243.html
> 
> By default, if a test driver (a test .exp) ends with an uncaught
> error/exception, the runtest command will still have a return code of 0
> (success).  I think that if a test (or the environment) is broken and
> the test ends up with an exception, it should be considered as failed so
> that we can notice it and fix it.
> 
> Passing the --status flag to runtest will make it return an error if one
> of the test it runs ends up with an uncaught error.
> 
> gdb/testsuite/ChangeLog:
> 
> 	* Makefile.in (check-single): Pass --status to runtest.
> 	(check/%.exp): Likewise.

Hmm, the perf bits of the runtest invocation already pass --status:

@GMAKE_TRUE@	$(DO_RUNTEST) --status --outdir=gdb.perf/outputs/$* lib/build-piece.exp WORKER=$* GDB_PARALLEL=gdb.perf $(RUNTESTFLAGS) GDB_PERFTEST_MODE=compile GDB_PERFTEST_SUBMODE=build-pieces
...
@GMAKE_TRUE@	$(DO_RUNTEST) --status --directory=gdb.perf --outdir gdb.perf/workers GDB_PARALLEL=gdb.perf $(RUNTESTFLAGS) GDB_PERFTEST_MODE=compile GDB_PERFTEST_SUBMODE=gen-workers
...
@GMAKE_TRUE@	$(DO_RUNTEST) --status --directory=gdb.perf --outdir gdb.perf GDB_PARALLEL=gdb.perf $(RUNTESTFLAGS) GDB_PERFTEST_MODE=compile GDB_PERFTEST_SUBMODE=final

But there's one that doesn't:

check-perf: all $(abs_builddir)/site.exp
	@if test ! -d gdb.perf; then mkdir gdb.perf; fi
	$(DO_RUNTEST) --directory=gdb.perf --outdir gdb.perf GDB_PERFTEST_MODE=$(GDB_PERFTEST_MODE) $(RUNTESTFLAGS)

Seems like an oversight?

How about adding --status to DO_RUNTEST directly instead, so
that all invocations are always covered?

Thanks,
Pedro Alves


  reply	other threads:[~2016-01-19 11:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-18 22:52 Simon Marchi
2016-01-19 11:24 ` Pedro Alves [this message]
2016-01-19 16:01   ` Simon Marchi
2016-01-19 16:04     ` Pedro Alves
2016-01-19 16:06       ` Simon Marchi

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=569E1CF9.5010102@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@ericsson.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox