Tweaks for unit test support

This commit is contained in:
Damien Stuart
2015-05-03 09:46:37 -04:00
parent 41571a6453
commit 2ea2aea0ba
3 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -8,6 +8,9 @@ BASE_SOURCE_FILES = fwknop.h config_init.c config_init.h \
fwknop_SOURCES = fwknop.c $(BASE_SOURCE_FILES)
if WANT_C_UNIT_TESTS
fwknopd_utestsdir = $(top_builddir)/tests/c-unit-tests
noinst_PROGRAMS = fwknop_utests
fwknop_utests_SOURCES = fwknop_utests.c $(BASE_SOURCE_FILES)
fwknop_utests_CPPFLAGS = -I $(top_builddir)/lib -I $(top_builddir)/common $(GPGME_CFLAGS)
@@ -34,5 +37,5 @@ fwknop.8: $(top_srcdir)/client/fwknop.8.in
< $(top_srcdir)/client/fwknop.8.in > "$@"
clean-local:
rm -f fwknop.8
rm -f fwknop.8 fwknop_utests
+3
View File
@@ -26,3 +26,6 @@ libfko_la_LDFLAGS = -version-info 2:3:0 $(GPGME_LIBS) -export-symbols-regex
AM_CPPFLAGS = $(GPGME_CFLAGS) -I $(top_srcdir)/common
include_HEADERS = fko.h
clean-local:
rm -f fko_utests
+1 -1
View File
@@ -64,4 +64,4 @@ fwknopd.8: $(top_srcdir)/server/fwknopd.8.in
< $(top_srcdir)/server/fwknopd.8.in > "$@"
clean-local:
rm -f fwknopd.8
rm -f fwknopd.8 fwknopd_utests