I'm trying to ask a question in the automake tag, but the Stack Overflow filter rejects it complaining about code that is not correctly formatted. there is not enough information to determine what input text is being complained about, and I believe that all of my 'code' has been properly formatted - initially with four spaces and then with pre/post tagging. Is there any way that I can identify where the error is?
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.
The errors are:
src/Makefile.am:27: warning: variable 'check_SOURCES' is defined but no program or src/Makefile.am:27: library has 'check' as canonical name (possible typo)
Create a library
lib_LIBRARIES = libslip.a libslip_a_SOURCES = $(sources) $(privateHeaders)</code></pre>
Header files for testing SLIP
TestUtilities.htestHead=TestGlobal.h TestHeader.hp TestIO.h TestMisc.h TestOperators.h TestReader.h TestReplace.h TestSequencer.h
Source files for testing SLIP
TestSequencer.cpp TestUtilities.cpptestCPP=Test.cpp TestGlobal.cpp TestHeader.cpp TestIO.cpp TestMisc.cpp TestOperators.cpp TestReader.cpp TestReplace.cpp
Test Program
check_PROGRAMS = Test check_SOURCES = $(testHead) $(testCPP) TESTS = $(check_PROGRAMS)</code></pre>