[Top][All Lists]

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

RE: Trouble creating a check program in automake

From: Arthur Schwarz
Subject: RE: Trouble creating a check program in automake
Date: Sun, 8 Mar 2015 16:03:48 -0700

Looks like I've got the automake to make. 


-----Original Message-----
From: Bob Friesenhahn [mailto:address@hidden 
Sent: Saturday, March 07, 2015 5:42 PM
To: Arthur Schwarz
Cc: address@hidden
Subject: Re: Trouble creating a check program in automake

On Sat, 7 Mar 2015, Arthur Schwarz wrote:

> I'm trying to learn automake (Autotools by John Calcotte) and am stumped
> creating a check program to test my C++ library. A partial listing of the
> program is given below. The example in the text shows creation of a test
> program using a shell script testing the output of the test program. I
> a program, linked to the library, which when executed tests the library
> functionality. Do I have to create the test program using noinst and then
> execute using a shell script? Any scripting examples or references to
> examples would help.

There needs to be check_PROGRAMS set to the list of programs which 
need to be built to support the 'check' target.  It seems like you did 
that.  However, I don't see where you created the build specification 
for the program 'Test' (e.g. Test_SOURCES).

To be more clear, you can have many test programs so your 
'check_SOURCES' specification does not make sense.   Each test program 
has its own _SOURCES and the only program you have listed is 'Test'.

I would offer my own project as an example but it is large, 
non-recursive, uses Makefile includes from subdirectories, and uses 
Automake's TAP test framework so it may not be easy to understand.

Bob Friesenhahn
GraphicsMagick Maintainer,

reply via email to

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