[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stopping unit test on failed partial ordering dependency

From: Kip Warner
Subject: Stopping unit test on failed partial ordering dependency
Date: Mon, 22 Apr 2019 21:12:30 -0700
User-agent: Evolution 3.32.1-2

Hey list,

I have a bunch of unit tests declared in check_PROGRAMS and
check_SCRIPTS. Some tests can only be run after others, while some
others can only be run before others.

I've managed to solve this problem pursuant to ยง 15.2.1 via partial
ordering constraints. This is done by declaring explicit make
prerequisites between the generated log files. This works fine, even
when using the parallel test harness. But only as long as all the tests

One problem I am having is if test B is dependent on test A to complete
successfully before it can run, but A fails. B will run anyways only
because B.log depended on A.log. A.log was generated regardless of
whether test A was a pass or fail.

Consider the situation where a database is setup, a daemon is spawned,
various client requests are serviced in any order, the daemon is
shutdown, and lastly the database is torn down. If the unit test to
spawn the daemon fails for any reason, all the client requests are
bound to fail anyways so there's no point on trying to debug them when
the problem is obvious that the daemon isn't running.

How can I solve this problem?

Kip Warner | Senior Software Engineer
OpenPGP signed/encrypted mail preferred

Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]