[Top][All Lists]

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

Re: Trouble creating a check program in automake

From: Bob Friesenhahn
Subject: Re: Trouble creating a check program in automake
Date: Sat, 7 Mar 2015 19:41:46 -0600 (CST)
User-agent: Alpine 2.01 (GSO 1266 2009-07-14)

On Sat, 7 Mar 2015, Arthur Schwarz wrote:

I'm trying to learn automake (Autotools by John Calcotte) and am stumped on
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 have
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]