[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.
Thanks
art
-----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
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
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/