toxcore/auto_tests/Makefile.inc

97 lines
2.1 KiB
PHP
Raw Normal View History

if BUILD_TESTS
2014-05-24 22:02:01 +08:00
TESTS = messenger_autotest crypto_test network_test assoc_test onion_test TCP_test tox_test
check_PROGRAMS = messenger_autotest crypto_test network_test assoc_test onion_test TCP_test tox_test
2014-04-05 23:09:44 +08:00
AUTOTEST_CFLAGS = \
$(LIBSODIUM_CFLAGS) \
$(NACL_CFLAGS) \
$(CHECK_CFLAGS)
AUTOTEST_LDADD = \
$(LIBSODIUM_LDFLAGS) \
$(NACL_LDFLAGS) \
libtoxcore.la \
$(LIBSODIUM_LIBS) \
2014-05-20 06:10:40 +08:00
$(NACL_OBJECTS) \
$(NACL_LIBS) \
$(CHECK_LIBS)
2014-04-05 23:09:44 +08:00
2014-05-24 22:02:01 +08:00
2014-04-05 23:09:44 +08:00
if BUILD_AV
2014-05-24 22:02:01 +08:00
TESTS += toxav_basic_test toxav_many_test
check_PROGRAMS += toxav_basic_test toxav_many_test
AUTOTEST_LDADD += libtoxav.la
2014-04-05 23:09:44 +08:00
endif
2014-05-11 00:00:49 +08:00
messenger_autotest_SOURCES = ../auto_tests/messenger_test.c
2014-05-11 00:00:49 +08:00
messenger_autotest_CFLAGS = $(AUTOTEST_CFLAGS)
2014-05-11 00:00:49 +08:00
messenger_autotest_LDADD = $(AUTOTEST_LDADD)
2014-05-11 00:00:49 +08:00
crypto_test_SOURCES = ../auto_tests/crypto_test.c
2014-05-11 00:00:49 +08:00
crypto_test_CFLAGS = $(AUTOTEST_CFLAGS)
2014-05-11 00:00:49 +08:00
crypto_test_LDADD = $(AUTOTEST_LDADD)
2014-05-11 00:00:49 +08:00
network_test_SOURCES = ../auto_tests/network_test.c
2014-05-11 00:00:49 +08:00
network_test_CFLAGS = $(AUTOTEST_CFLAGS)
2014-05-11 00:00:49 +08:00
network_test_LDADD = $(AUTOTEST_LDADD)
2014-05-11 00:00:49 +08:00
assoc_test_SOURCES = ../auto_tests/assoc_test.c
2014-05-11 00:00:49 +08:00
assoc_test_CFLAGS = $(AUTOTEST_CFLAGS)
2014-05-11 00:00:49 +08:00
assoc_test_LDADD = $(AUTOTEST_LDADD)
2014-05-11 00:00:49 +08:00
onion_test_SOURCES = ../auto_tests/onion_test.c
2014-05-11 00:00:49 +08:00
onion_test_CFLAGS = $(AUTOTEST_CFLAGS)
2014-05-11 00:00:49 +08:00
onion_test_LDADD = $(AUTOTEST_LDADD)
2014-05-11 00:00:49 +08:00
TCP_test_SOURCES = ../auto_tests/TCP_test.c
2014-04-11 08:46:24 +08:00
2014-05-11 00:00:49 +08:00
TCP_test_CFLAGS = $(AUTOTEST_CFLAGS)
2014-04-11 08:46:24 +08:00
2014-05-11 00:00:49 +08:00
TCP_test_LDADD = $(AUTOTEST_LDADD)
2014-04-11 08:46:24 +08:00
2014-05-11 00:00:49 +08:00
tox_test_SOURCES = ../auto_tests/tox_test.c
2013-12-18 07:55:28 +08:00
2014-05-11 00:00:49 +08:00
tox_test_CFLAGS = $(AUTOTEST_CFLAGS)
2013-12-18 07:55:28 +08:00
2014-05-11 00:00:49 +08:00
tox_test_LDADD = $(AUTOTEST_LDADD)
2013-12-18 07:55:28 +08:00
2014-05-24 22:02:01 +08:00
2014-04-05 23:09:44 +08:00
if BUILD_AV
2014-05-24 22:02:01 +08:00
toxav_basic_test_SOURCES = ../auto_tests/toxav_basic_test.c
2014-04-05 23:09:44 +08:00
2014-05-24 22:02:01 +08:00
toxav_basic_test_CFLAGS = $(AUTOTEST_CFLAGS)
2014-04-05 23:09:44 +08:00
2014-05-24 22:02:01 +08:00
toxav_basic_test_LDADD = $(AUTOTEST_LDADD)
2014-05-03 07:46:03 +08:00
2014-05-24 22:02:01 +08:00
toxav_many_test_SOURCES = ../auto_tests/toxav_many_test.c
2014-05-03 07:46:03 +08:00
2014-05-24 22:02:01 +08:00
toxav_many_test_CFLAGS = $(AUTOTEST_CFLAGS)
2014-05-03 07:46:03 +08:00
2014-05-24 22:02:01 +08:00
toxav_many_test_LDADD = $(AUTOTEST_LDADD)
2014-04-05 23:09:44 +08:00
endif
endif
2013-08-24 08:36:43 +08:00
EXTRA_DIST += $(top_srcdir)/auto_tests/friends_test.c