This commit bring tests to life! New issue Summary: test_dep_states test fails When first device is idle, the second one states "RF Transmission Error" instead of simply not found any available device. Full cutter log here: debug libnfc.chip.pn53x InJumpForDEP debug libnfc.chip.pn53x Timeout values: 300 debug libnfc.bus.uart TX: 00 00 ff 05 fb d4 56 00 00 00 d6 00 debug libnfc.bus.uart RX: 00 00 ff 00 ff 00 debug libnfc.chip.pn53x PN53x ACKed debug libnfc.bus.uart Timeout! debug libnfc.chip.pn53x InJumpForDEP debug libnfc.chip.pn53x Timeout values: 300 debug libnfc.bus.uart TX: 00 00 ff 05 fb d4 56 00 00 00 d6 00 debug libnfc.bus.uart RX: 00 00 ff 00 ff 00 debug libnfc.chip.pn53x PN53x ACKed debug libnfc.bus.uart RX: 00 00 ff 03 fd debug libnfc.bus.uart RX: d5 57 debug libnfc.bus.uart RX: 01 debug libnfc.bus.uart RX: d3 00 debug libnfc.chip.pn53x Chip error: "Timeout" (01), returned error: "RF Transmission Error" (-20)) F =============================================================================== Failure: test_dep_states Problem with nfc_idle <0 == res> expected: <0> actual: <-20> diff: ? -20 ./test_device_modes_as_dep.c:171: initiator_thread(): cut_assert_equal_int(0, res, cut_test_context_set_current_result_user_message( cut_test_context_current_peek(), cut_test_context_take_printf(cut_test_context_current_peek(), "Problem with nfc_idle"))) ===============================================================================
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
SUBDIRS = chips buses drivers .
|
|
|
|
# set the include path found by configure
|
|
AM_CPPFLAGS = $(all_includes) $(LIBNFC_CFLAGS)
|
|
|
|
noinst_HEADERS = \
|
|
conf.h \
|
|
drivers.h \
|
|
iso7816.h \
|
|
log.h \
|
|
mirror-subr.h \
|
|
nfc-internal.h \
|
|
target-subr.h
|
|
|
|
lib_LTLIBRARIES = libnfc.la
|
|
libnfc_la_SOURCES = \
|
|
conf.c \
|
|
iso14443-subr.c \
|
|
log.c \
|
|
mirror-subr.c \
|
|
nfc.c \
|
|
nfc-device.c \
|
|
nfc-emulation.c \
|
|
nfc-internal.c \
|
|
target-subr.c
|
|
|
|
libnfc_la_LDFLAGS = -no-undefined -version-info 4:0:0 -export-symbols-regex '^nfc_|^iso14443a_|^str_nfc_|pn53x_transceive|pn532_SAMConfiguration|pn53x_read_register|pn53x_write_register'
|
|
libnfc_la_CFLAGS = @DRIVERS_CFLAGS@
|
|
libnfc_la_LIBADD = \
|
|
$(top_builddir)/libnfc/chips/libnfcchips.la \
|
|
$(top_builddir)/libnfc/buses/libnfcbuses.la \
|
|
$(top_builddir)/libnfc/drivers/libnfcdrivers.la
|
|
|
|
if PCSC_ENABLED
|
|
libnfc_la_CFLAGS += @libpcsclite_CFLAGS@ -DHAVE_PCSC
|
|
libnfc_la_LIBADD += @libpcsclite_LIBS@
|
|
endif
|
|
|
|
if LIBUSB_ENABLED
|
|
libnfc_la_CFLAGS += @libusb_CFLAGS@ -DHAVE_LIBUSB
|
|
libnfc_la_LIBADD += @libusb_LIBS@
|
|
endif
|
|
|
|
if WITH_LOG
|
|
libnfc_la_SOURCES += log-printf.c
|
|
endif
|
|
|
|
EXTRA_DIST = \
|
|
CMakeLists.txt \
|
|
log-printf.c
|
|
|