[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "make test" not making what's tested
From: |
kodis |
Subject: |
Re: "make test" not making what's tested |
Date: |
Wed, 18 Mar 2009 12:03:13 -0400 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Wed, Mar 18, 2009 at 11:34:30AM -0400, Alan D. Salewski wrote:
> On Wed, Mar 18, 2009 at 10:58:20AM -0400, address@hidden spake thus:
> > I have a simple project that builds a C program in the top level
> > directory, and a series of shell scripts to test this program in a
> > 'tests' subdirectory. If I run "./configure; make; make check",
> > everything works as expected, but if I run "./configure; make check"
> > from a just cleaned top level directory, the program to be tested
> > doesn't get built prior to running the tests.
>
> Hi kodis,
>
> In your top-level Makefile.am, simply change the ordering of the
> directories in SUBDIRS to have the top-level directory build first.
>
> I suspect that it currently looks something like this:
>
> SUBDIRS = tests .
> or
>
> SUBDIRS = tests
>
> (the first is simply a more explicit version of the second). You would
> want to change it so that '.' comes before 'tests':
>
> SUBDIRS = . tests
Exactly right. Thanks. I suspected that this was a common enough
situation that the autotools would do the right thing with little
prodding required, I just couldn't figure out what that little
prodding should be.