unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test suite: don't consider skipped individual tests as failing
@ 2015-09-24 11:13 David Bremner
  2015-09-24 19:54 ` Tomi Ollila
  0 siblings, 1 reply; 4+ messages in thread
From: David Bremner @ 2015-09-24 11:13 UTC (permalink / raw)
  To: notmuch

It isn't completely clear what we want to do here, but

1) We currently don't fail if we skip a whole test file (mainly because
we neglect to count those skipped tests properly). This change at least
makes the two kinds of skipping consistent.

2) Automated build environments may have good reasons for building with
a minimal set of prereqs, and we don't want to discourage running our
test suite by breaking builds.
---
 test/aggregate-results.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/aggregate-results.sh b/test/aggregate-results.sh
index b016edb..b30da44 100755
--- a/test/aggregate-results.sh
+++ b/test/aggregate-results.sh
@@ -82,7 +82,7 @@ if [ "$skipped" != "0" ]; then
     echo "$skipped $tests skipped."
 fi
 
-if [ $success -gt 0 -a $fixed -eq 0 -a $failed -eq 0 -a $skipped -eq 0 ]
+if [ $success -gt 0 -a $fixed -eq 0 -a $failed -eq 0 ]
 then
     exit 0
 else
-- 
2.5.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] test suite: don't consider skipped individual tests as failing
  2015-09-24 11:13 [PATCH] test suite: don't consider skipped individual tests as failing David Bremner
@ 2015-09-24 19:54 ` Tomi Ollila
  2015-09-25 12:25   ` David Bremner
  0 siblings, 1 reply; 4+ messages in thread
From: Tomi Ollila @ 2015-09-24 19:54 UTC (permalink / raw)
  To: David Bremner, notmuch

On Thu, Sep 24 2015, David Bremner <david@tethera.net> wrote:

> It isn't completely clear what we want to do here, but
>
> 1) We currently don't fail if we skip a whole test file (mainly because
> we neglect to count those skipped tests properly). This change at least
> makes the two kinds of skipping consistent.
>
> 2) Automated build environments may have good reasons for building with
> a minimal set of prereqs, and we don't want to discourage running our
> test suite by breaking builds.
> ---
>  test/aggregate-results.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/aggregate-results.sh b/test/aggregate-results.sh
> index b016edb..b30da44 100755
> --- a/test/aggregate-results.sh
> +++ b/test/aggregate-results.sh
> @@ -82,7 +82,7 @@ if [ "$skipped" != "0" ]; then
>      echo "$skipped $tests skipped."
>  fi
>  

Looks OK, but I think there should be (some good) comment here informing
any potential viewer that we're not checking $skipped...

> -if [ $success -gt 0 -a $fixed -eq 0 -a $failed -eq 0 -a $skipped -eq 0 ]
> +if [ $success -gt 0 -a $fixed -eq 0 -a $failed -eq 0 ]
>  then
>      exit 0
>  else
> -- 
> 2.5.1

Tomi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] test suite: don't consider skipped individual tests as failing
  2015-09-24 19:54 ` Tomi Ollila
@ 2015-09-25 12:25   ` David Bremner
  2015-09-25 19:17     ` Tomi Ollila
  0 siblings, 1 reply; 4+ messages in thread
From: David Bremner @ 2015-09-25 12:25 UTC (permalink / raw)
  To: Tomi Ollila, notmuch

Tomi Ollila <tomi.ollila@iki.fi> writes:

>
> Looks OK, but I think there should be (some good) comment here informing
> any potential viewer that we're not checking $skipped...
>

I put some vaguely threatening comment in test/README, and a brief
comment in the file. I've merged the commit, but feel free to send
suggestions / patches for further doc changes. I more or less made up a
hypothetical future policy on the spot...

d

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] test suite: don't consider skipped individual tests as failing
  2015-09-25 12:25   ` David Bremner
@ 2015-09-25 19:17     ` Tomi Ollila
  0 siblings, 0 replies; 4+ messages in thread
From: Tomi Ollila @ 2015-09-25 19:17 UTC (permalink / raw)
  To: David Bremner, notmuch

On Fri, Sep 25 2015, David Bremner <david@tethera.net> wrote:

> Tomi Ollila <tomi.ollila@iki.fi> writes:
>
>>
>> Looks OK, but I think there should be (some good) comment here informing
>> any potential viewer that we're not checking $skipped...
>>
>
> I put some vaguely threatening comment in test/README, and a brief
> comment in the file. I've merged the commit, but feel free to send
> suggestions / patches for further doc changes. I more or less made up a
> hypothetical future policy on the spot...

ack. earlier today I though of make target test-strict -- let's see
whethere I come up something with that...

>
> d

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-25 19:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-24 11:13 [PATCH] test suite: don't consider skipped individual tests as failing David Bremner
2015-09-24 19:54 ` Tomi Ollila
2015-09-25 12:25   ` David Bremner
2015-09-25 19:17     ` Tomi Ollila

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).