Separate Makefile targets for tests

Damien Miller djm at mindrot.org
Mon Sep 5 10:44:18 AEST 2016


On Sat, 3 Sep 2016, Doug Freed wrote:

> Hi,
> 
> I'm playing around with a bug in the HPN patch where it deadlocks in
> their MT-CTR implementation during the integrity tests, but it's
> annoying to have to wait for the entire test suite to finish, which
> takes almost 15 minutes on my machine.  It would be nice if each of
> the tests had its own target in the Makefile, so I could just issue
> something like 'make test-integrity' or whatever to run just that
> test, rather than having to wait for the whole suite each time, or
> edit the Makefile to only run that test.

You can do this already. 

Skip the unit tests:

make SKIP_UNIT=1 tests

Run a particular test:

make SKIP_UNIT=1 LTESTS="integrity" tests

You can run multiple tests too:

make SKIP_UNIT=1 LTESTS="connect integrity" tests

-d



More information about the openssh-unix-dev mailing list