Added TCP test to build system.

This commit is contained in:
irungentoo 2014-04-10 20:46:24 -04:00
parent 05025482e3
commit 736f5f8034
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98
3 changed files with 12 additions and 9 deletions

View File

@ -1,7 +1,7 @@
if BUILD_TESTS
TESTS = messenger_autotest crypto_test network_test assoc_test onion_test tox_test
check_PROGRAMS = messenger_autotest crypto_test network_test assoc_test onion_test tox_test
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
AUTOTEST_CFLAGS = \
@ -52,7 +52,6 @@ assoc_test_CFLAGS = $(AUTOTEST_CFLAGS)
assoc_test_LDADD = $(AUTOTEST_LDADD)
onion_test_SOURCES = ../auto_tests/onion_test.c
onion_test_CFLAGS = $(AUTOTEST_CFLAGS)
@ -60,6 +59,12 @@ onion_test_CFLAGS = $(AUTOTEST_CFLAGS)
onion_test_LDADD = $(AUTOTEST_LDADD)
TCP_test_SOURCES = ../auto_tests/TCP_test.c
TCP_test_CFLAGS = $(AUTOTEST_CFLAGS)
TCP_test_LDADD = $(AUTOTEST_LDADD)
tox_test_SOURCES = ../auto_tests/tox_test.c

View File

@ -35,6 +35,10 @@ libtoxcore_la_SOURCES = ../toxcore/DHT.h \
../toxcore/onion_announce.c \
../toxcore/onion_client.h \
../toxcore/onion_client.c \
../toxcore/TCP_client.h \
../toxcore/TCP_client.c \
../toxcore/TCP_server.h \
../toxcore/TCP_server.c \
../toxcore/misc_tools.h
libtoxcore_la_CFLAGS = -I$(top_srcdir) \

View File

@ -130,12 +130,6 @@ static int send_pending_data(TCP_Client_Connection *con)
return -1;
}
static int send_disconnect_packet(TCP_Client_Connection *TCP_connection)
{
return 0;
}
/* Create new TCP connection to ip_port/public_key
*/
TCP_Client_Connection *new_TCP_connection(IP_Port ip_port, uint8_t *public_key, uint8_t *self_public_key,