Makefile.am.template 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Makefile.am is generated automatically for automake whenever test programs are
  2. # added to libpqxx.
  3. EXTRA_DIST = Makefile.am.template
  4. # Use the serial test runner, so tests don't get run in parallel. Otherwise,
  5. # output from test failures will be hidden away in log files where we can't
  6. # see them when running in a build slave.
  7. AUTOMAKE_OPTIONS=serial-tests
  8. AM_CPPFLAGS=-I$(top_builddir)/include -I$(top_srcdir)/include
  9. # Override automatically generated list of default includes. It contains only
  10. # unnecessary entries, and incorrectly mentions include/pqxx directly.
  11. DEFAULT_INCLUDES=
  12. noinst_HEADERS = test_helpers.hxx
  13. CLEANFILES=pqxxlo.txt
  14. MAINTAINERCLEANFILES=Makefile.in
  15. #TESTS_ENVIRONMENT=PGDATABASE=libpqxx
  16. # PGDATABASE, PGHOST, PGPORT, PGUSER
  17. runner_SOURCES = \
  18. ###MAKTEMPLATE:FOREACH test/test*.cxx
  19. ###BASENAME###.cxx \
  20. ###MAKTEMPLATE:ENDFOREACH
  21. ###MAKTEMPLATE:FOREACH test/unit/test_*.cxx
  22. unit/###BASENAME###.cxx \
  23. ###MAKTEMPLATE:ENDFOREACH
  24. runner.cxx
  25. runner_LDADD = $(top_builddir)/src/libpqxx.la ${POSTGRES_LIB}
  26. TESTS = runner
  27. check_PROGRAMS = ${TESTS}