test suite doesn't discriminate between unattended and attended tests

Bug #439769 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
notify-osd (Ubuntu)
Triaged
Low
Mirco Müller

Bug Description

Some of the tests will run completely happily unattended, others need user interaction. This makes it hard to run the tests automatically (see for instance bug 439757), and this makes it tricky to build automated QA

Revision history for this message
Robert Collins (lifeless) wrote :

I suggest controlling this either with separate make targets, or environment variables. I haven't looked deeply enough into the package to tell yet.

A desirable behaviour for packages is for
./configure
make check

to 'just work' (given that the relevant dependencies are present).

Revision history for this message
Mirco Müller (macslow) wrote :

What do you suggest? "make check-attended" and "make check-unattended"? What about "make distcheck"? Should that implicitly include attended and unattended tests? Or not?

Changed in notify-osd:
assignee: nobody → Mirco Müller (macslow)
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 439769] Re: test suite doesn't discriminate between unattended and attended tests

On Thu, 2009-10-01 at 13:32 +0000, Mirco Müller wrote:
> What do you suggest? "make check-attended" and "make check-unattended"?
> What about "make distcheck"? Should that implicitly include attended and
> unattended tests? Or not?

So, I think 'make check' should be something simple, safe and robust -
its what CI tools, debbuild etc will all [reasonably] expect to be able
to run - and they should run the unattended, xvfb based etc tests.

distcheck will naturally run that as well.

I think either
DO_ATTENDED_TESTS=1 make check
or
make check-attended

would be a good way to spell 'run the tests that need a human'.

-Rob

David Barth (dbarth)
Changed in notify-osd:
status: Incomplete → Triaged
milestone: none → ubuntu-9.12
Revision history for this message
Robert Collins (lifeless) wrote :

This is now blocking automated test builds; such builds are running without 'make check' at the moment as a result.

David Barth (dbarth)
Changed in notify-osd:
milestone: ubuntu-9.12 → none
affects: notify-osd → notify-osd (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.