I\'m using GNU autotools for the build system on a particular project. I want to start writing automated tests for verifcation. I would like to just type \"make check\" to have
You can use Automake's TESTS
to run programs generated with check_PROGRAMS
but this will assume that you are using a log driver and a compiler for the output. It is probably easier to still use check_PROGRAMS
but to invoke the test suite using a local rule in the Makefile:
check_PROGRAMS=testsuite
testsuite_SOURCES=...
testsuite_CFLAGS=...
testsuite_LDADD=...
check-local:
./testsuite