Build unit-tests as part of all-am if DEBUG is enabled, otherwise at check-am before running the test suite.
This commit is contained in:
parent
f27352180c
commit
7f0a65439f
2 changed files with 28 additions and 19 deletions
|
@ -12,7 +12,7 @@ if WITH_CUTTER
|
||||||
TESTS = run-test.sh
|
TESTS = run-test.sh
|
||||||
TESTS_ENVIRONMENT = NO_MAKE=yes CUTTER="$(CUTTER)"
|
TESTS_ENVIRONMENT = NO_MAKE=yes CUTTER="$(CUTTER)"
|
||||||
|
|
||||||
check_LTLIBRARIES = \
|
cutter_unit_test_libs = \
|
||||||
test_mad.la \
|
test_mad.la \
|
||||||
test_mifare_application.la \
|
test_mifare_application.la \
|
||||||
test_mifare_classic.la \
|
test_mifare_classic.la \
|
||||||
|
@ -27,6 +27,12 @@ check_LTLIBRARIES = \
|
||||||
test_mifare_ultralight.la \
|
test_mifare_ultralight.la \
|
||||||
test_tlv.la
|
test_tlv.la
|
||||||
|
|
||||||
|
if WITH_DEBUG
|
||||||
|
noinst_LTLIBRARIES = $(cutter_unit_test_libs)
|
||||||
|
else
|
||||||
|
check_LTLIBRARIES = $(cutter_unit_test_libs)
|
||||||
|
endif
|
||||||
|
|
||||||
AM_LDFLAGS = -module -rpath $(libdir) -avoid-version -no-undefined
|
AM_LDFLAGS = -module -rpath $(libdir) -avoid-version -no-undefined
|
||||||
|
|
||||||
test_mad_la_SOURCES = test_mad.c
|
test_mad_la_SOURCES = test_mad.c
|
||||||
|
@ -89,7 +95,4 @@ echo-cutter:
|
||||||
EXTRA_DIST = run-test.sh
|
EXTRA_DIST = run-test.sh
|
||||||
CLEANFILES = *.gcno
|
CLEANFILES = *.gcno
|
||||||
|
|
||||||
update:
|
|
||||||
$(MAKE) $(AM_MAKEFLAGS) $(check_LTLIBRARIES)
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -5,9 +5,15 @@ AM_CFLAGS = @LIBNFC_CFLAGS@
|
||||||
|
|
||||||
if WITH_CUTTER
|
if WITH_CUTTER
|
||||||
|
|
||||||
check_LTLIBRARIES = \
|
cutter_unit_test_libs = \
|
||||||
libtestcommon.la
|
libtestcommon.la
|
||||||
|
|
||||||
|
if WITH_DEBUG
|
||||||
|
noinst_LTLIBRARIES = $(cutter_unit_test_libs)
|
||||||
|
else
|
||||||
|
check_LTLIBRARIES = $(cutter_unit_test_libs)
|
||||||
|
endif
|
||||||
|
|
||||||
libtestcommon_la_SOURCES = mifare_desfire_auto_authenticate.c \
|
libtestcommon_la_SOURCES = mifare_desfire_auto_authenticate.c \
|
||||||
mifare_desfire_auto_authenticate.h
|
mifare_desfire_auto_authenticate.h
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue