2013-08-14 02:55:32 +08:00
|
|
|
if BUILD_TESTS
|
|
|
|
|
2017-04-16 17:57:21 +08:00
|
|
|
TESTS = encryptsave_test messenger_autotest crypto_test network_test onion_test TCP_test tox_test dht_autotest tox_strncasecmp_test
|
|
|
|
check_PROGRAMS = encryptsave_test messenger_autotest crypto_test network_test onion_test TCP_test tox_test dht_autotest tox_strncasecmp_test
|
2014-04-05 23:09:44 +08:00
|
|
|
|
2013-11-07 03:32:02 +08:00
|
|
|
AUTOTEST_CFLAGS = \
|
|
|
|
$(LIBSODIUM_CFLAGS) \
|
2018-02-06 05:38:58 +08:00
|
|
|
$(NACL_CFLAGS)
|
2014-07-27 21:51:45 +08:00
|
|
|
|
2013-11-07 03:32:02 +08:00
|
|
|
AUTOTEST_LDADD = \
|
2013-08-14 02:55:32 +08:00
|
|
|
$(LIBSODIUM_LDFLAGS) \
|
2013-09-05 18:02:26 +08:00
|
|
|
$(NACL_LDFLAGS) \
|
2013-08-14 02:55:32 +08:00
|
|
|
libtoxcore.la \
|
2014-09-12 10:28:50 +08:00
|
|
|
libtoxencryptsave.la \
|
2013-08-14 02:55:32 +08:00
|
|
|
$(LIBSODIUM_LIBS) \
|
2014-05-20 06:10:40 +08:00
|
|
|
$(NACL_OBJECTS) \
|
2018-02-06 05:38:58 +08:00
|
|
|
$(NACL_LIBS)
|
2013-08-14 02:55:32 +08:00
|
|
|
|
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
|
2013-11-07 03:32:02 +08:00
|
|
|
|
2014-05-11 00:00:49 +08:00
|
|
|
messenger_autotest_CFLAGS = $(AUTOTEST_CFLAGS)
|
2013-11-07 03:32:02 +08:00
|
|
|
|
2014-05-11 00:00:49 +08:00
|
|
|
messenger_autotest_LDADD = $(AUTOTEST_LDADD)
|
2013-11-07 03:32:02 +08:00
|
|
|
|
2013-08-14 02:55:32 +08:00
|
|
|
|
2014-07-27 06:26:58 +08:00
|
|
|
crypto_test_SOURCES = ../auto_tests/crypto_test.c
|
2013-08-14 02:55:32 +08:00
|
|
|
|
2014-05-11 00:00:49 +08:00
|
|
|
crypto_test_CFLAGS = $(AUTOTEST_CFLAGS)
|
2013-08-14 02:55:32 +08:00
|
|
|
|
2014-05-11 00:00:49 +08:00
|
|
|
crypto_test_LDADD = $(AUTOTEST_LDADD)
|
2013-08-14 02:55:32 +08:00
|
|
|
|
2013-09-16 05:39:09 +08:00
|
|
|
|
2014-05-11 00:00:49 +08:00
|
|
|
network_test_SOURCES = ../auto_tests/network_test.c
|
2013-11-07 03:32:02 +08:00
|
|
|
|
2014-05-11 00:00:49 +08:00
|
|
|
network_test_CFLAGS = $(AUTOTEST_CFLAGS)
|
2013-11-07 03:32:02 +08:00
|
|
|
|
2014-05-11 00:00:49 +08:00
|
|
|
network_test_LDADD = $(AUTOTEST_LDADD)
|
2013-09-16 05:39:09 +08:00
|
|
|
|
|
|
|
|
2014-05-11 00:00:49 +08:00
|
|
|
onion_test_SOURCES = ../auto_tests/onion_test.c
|
2014-01-01 12:18:37 +08:00
|
|
|
|
2014-05-11 00:00:49 +08:00
|
|
|
onion_test_CFLAGS = $(AUTOTEST_CFLAGS)
|
2014-01-01 12:18:37 +08:00
|
|
|
|
2014-05-11 00:00:49 +08:00
|
|
|
onion_test_LDADD = $(AUTOTEST_LDADD)
|
2014-01-01 12:18:37 +08:00
|
|
|
|
|
|
|
|
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-01-01 12:18:37 +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
|
|
|
|
2013-11-15 02:05:36 +08:00
|
|
|
|
2014-08-08 20:40:21 +08:00
|
|
|
dht_autotest_SOURCES = ../auto_tests/dht_test.c
|
|
|
|
|
|
|
|
dht_autotest_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
|
|
|
|
dht_autotest_LDADD = $(AUTOTEST_LDADD)
|
|
|
|
|
2014-05-24 22:02:01 +08:00
|
|
|
|
2017-03-09 22:15:07 +08:00
|
|
|
# TODO(iphydf): These tests are broken. The code needs to be fixed, as the
|
|
|
|
# tests themselves are correct.
|
2017-01-23 21:45:46 +08:00
|
|
|
#selfname_change_conference_SOURCE = ../auto_tests/selfname_change_conference_test.c
|
|
|
|
#
|
|
|
|
#selfname_change_conference_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
#
|
|
|
|
#selfname_change_conference_LDADD = $(AUTOTEST_LDADD)
|
2017-03-09 22:15:07 +08:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#self_conference_title_change_SOURCE = ../auto_tests/self_conference_title_change_test.c
|
|
|
|
#
|
|
|
|
#self_conference_title_change_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
#
|
|
|
|
#self_conference_title_change_LDADD = $(AUTOTEST_LDADD)
|
|
|
|
|
2017-01-23 21:45:46 +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-07-27 21:51:45 +08:00
|
|
|
toxav_basic_test_LDADD = $(AUTOTEST_LDADD) $(AV_LIBS)
|
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
|
|
|
|
|
2013-08-14 02:55:32 +08:00
|
|
|
endif
|
|
|
|
|
2014-09-12 10:28:50 +08:00
|
|
|
|
|
|
|
encryptsave_test_SOURCES = ../auto_tests/encryptsave_test.c
|
|
|
|
|
|
|
|
encryptsave_test_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
|
|
|
|
encryptsave_test_LDADD = $(AUTOTEST_LDADD)
|
|
|
|
|
|
|
|
|
2017-02-27 01:56:55 +08:00
|
|
|
tox_strncasecmp_test_SOURCES = ../auto_tests/tox_strncasecmp_test.c
|
|
|
|
|
|
|
|
tox_strncasecmp_test_CFLAGS = $(AUTOTEST_CFLAGS)
|
|
|
|
|
|
|
|
tox_strncasecmp_test_LDADD = $(AUTOTEST_LDADD)
|
|
|
|
|
|
|
|
|
2017-06-05 04:58:28 +08:00
|
|
|
EXTRA_DIST += $(top_srcdir)/auto_tests/check_compat.h
|
2016-08-10 19:28:33 +08:00
|
|
|
EXTRA_DIST += $(top_srcdir)/auto_tests/helpers.h
|