From 540f839cb5868dac3eb409f509b85995826cf559 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 6 Jun 2020 19:44:36 +0200 Subject: Add unit-test framework. --- test/Makefile.am | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'test/Makefile.am') diff --git a/test/Makefile.am b/test/Makefile.am index 8cf4ce5..34b750d 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,13 +1,20 @@ # Rules for the test code (use `make check` to execute) -TESTS = proto +if ENABLE_TESTS + +TESTS = logintest + +EXTRA_DIST = \ + dgunit.h \ + scopedfile.h check_PROGRAMS = $(TESTS) -proto_CXXFLAGS = -DOUTPUT=\"proto\" $(CPPUNIT_CFLAGS) \ - -I$(top_srcdir)/src -I$(top_srcdir)/hugin -DDISABLE_HUGIN -proto_CFLAGS = -DDISABLE_HUGIN -proto_LDFLAGS = $(CPPUNIT_LIBS) -proto_SOURCES = \ - $(top_srcdir)/hugin/hugin.c \ - test.cc \ - proto.cc +logintest_CXXFLAGS = -DOUTPUT=\"logintest\" \ + $(DEBUG_FLAGS) \ + -I$(top_srcdir)/src +logintest_LDFLAGS = +logintest_SOURCES = \ + logintest.cc \ + dgtest.cc + +endif -- cgit v1.2.3