diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/DHT_test.c | 4 | ||||
-rw-r--r-- | testing/Lossless_UDP_testclient.c | 4 | ||||
-rw-r--r-- | testing/Lossless_UDP_testserver.c | 4 | ||||
-rw-r--r-- | testing/Makefile.inc | 28 | ||||
-rw-r--r-- | testing/Messenger_test.c | 4 | ||||
-rw-r--r-- | testing/crypto_speed_test.c | 4 | ||||
-rw-r--r-- | testing/misc_tools.c | 4 |
7 files changed, 47 insertions, 5 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c index 58879134..fce9c257 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c | |||
@@ -27,6 +27,10 @@ | |||
27 | * | 27 | * |
28 | */ | 28 | */ |
29 | 29 | ||
30 | #ifdef HAVE_CONFIG_H | ||
31 | #include "config.h" | ||
32 | #endif | ||
33 | |||
30 | //#include "../core/network.h" | 34 | //#include "../core/network.h" |
31 | #include "../toxcore/DHT.h" | 35 | #include "../toxcore/DHT.h" |
32 | #include "../toxcore/friend_requests.h" | 36 | #include "../toxcore/friend_requests.h" |
diff --git a/testing/Lossless_UDP_testclient.c b/testing/Lossless_UDP_testclient.c index 5777f9e7..d5fb1544 100644 --- a/testing/Lossless_UDP_testclient.c +++ b/testing/Lossless_UDP_testclient.c | |||
@@ -28,6 +28,10 @@ | |||
28 | * | 28 | * |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #ifdef HAVE_CONFIG_H | ||
32 | #include "config.h" | ||
33 | #endif | ||
34 | |||
31 | #include "../toxcore/network.h" | 35 | #include "../toxcore/network.h" |
32 | #include "../toxcore/Lossless_UDP.h" | 36 | #include "../toxcore/Lossless_UDP.h" |
33 | 37 | ||
diff --git a/testing/Lossless_UDP_testserver.c b/testing/Lossless_UDP_testserver.c index c450c91a..eb506b3d 100644 --- a/testing/Lossless_UDP_testserver.c +++ b/testing/Lossless_UDP_testserver.c | |||
@@ -28,6 +28,10 @@ | |||
28 | * | 28 | * |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #ifdef HAVE_CONFIG_H | ||
32 | #include "config.h" | ||
33 | #endif | ||
34 | |||
31 | #include "../toxcore/network.h" | 35 | #include "../toxcore/network.h" |
32 | #include "../toxcore/Lossless_UDP.h" | 36 | #include "../toxcore/Lossless_UDP.h" |
33 | 37 | ||
diff --git a/testing/Makefile.inc b/testing/Makefile.inc index b63e715a..ee68e289 100644 --- a/testing/Makefile.inc +++ b/testing/Makefile.inc | |||
@@ -6,11 +6,14 @@ nTox_SOURCES = ../testing/nTox.h \ | |||
6 | ../testing/nTox.c | 6 | ../testing/nTox.c |
7 | 7 | ||
8 | nTox_CFLAGS = $(LIBSODIUM_CFLAGS) \ | 8 | nTox_CFLAGS = $(LIBSODIUM_CFLAGS) \ |
9 | $(NACL_CFLAGS) \ | ||
9 | $(NCURSES_CFLAGS) | 10 | $(NCURSES_CFLAGS) |
10 | 11 | ||
11 | nTox_LDADD = $(LIBSODIUM_LDFLAGS) \ | 12 | nTox_LDADD = $(LIBSODIUM_LDFLAGS) \ |
13 | $(NAC_LDFLAGS) \ | ||
12 | libtoxcore.la \ | 14 | libtoxcore.la \ |
13 | $(LIBSODIUM_LIBS) \ | 15 | $(LIBSODIUM_LIBS) \ |
16 | $(NACL_LIBS) \ | ||
14 | $(NCURSES_LIBS) \ | 17 | $(NCURSES_LIBS) \ |
15 | $(WINSOCK2_LIBS) | 18 | $(WINSOCK2_LIBS) |
16 | endif | 19 | endif |
@@ -24,11 +27,14 @@ noinst_PROGRAMS += DHT_test \ | |||
24 | 27 | ||
25 | DHT_test_SOURCES = ../testing/DHT_test.c | 28 | DHT_test_SOURCES = ../testing/DHT_test.c |
26 | 29 | ||
27 | DHT_test_CFLAGS = $(LIBSODIUM_CFLAGS) | 30 | DHT_test_CFLAGS = $(LIBSODIUM_CFLAGS) \ |
31 | $(NACL_CFLAGS) | ||
28 | 32 | ||
29 | DHT_test_LDADD = $(LIBSODIUM_LDFLAGS) \ | 33 | DHT_test_LDADD = $(LIBSODIUM_LDFLAGS) \ |
34 | $(NACL_LDFLAGS) \ | ||
30 | libtoxcore.la \ | 35 | libtoxcore.la \ |
31 | $(LIBSODIUM_LIBS) \ | 36 | $(LIBSODIUM_LIBS) \ |
37 | $(NACL_LIBS) \ | ||
32 | $(WINSOCK2_LIBS) | 38 | $(WINSOCK2_LIBS) |
33 | 39 | ||
34 | 40 | ||
@@ -36,12 +42,15 @@ Lossless_UDP_testclient_SOURCES = \ | |||
36 | ../testing/Lossless_UDP_testclient.c | 42 | ../testing/Lossless_UDP_testclient.c |
37 | 43 | ||
38 | Lossless_UDP_testclient_CFLAGS = \ | 44 | Lossless_UDP_testclient_CFLAGS = \ |
39 | $(LIBSODIUM_CFLAGS) | 45 | $(LIBSODIUM_CFLAGS) \ |
46 | $(NACL_CFLAGS) | ||
40 | 47 | ||
41 | Lossless_UDP_testclient_LDADD = \ | 48 | Lossless_UDP_testclient_LDADD = \ |
42 | $(LIBSODIUM_LDFLAGS) \ | 49 | $(LIBSODIUM_LDFLAGS) \ |
50 | $(NACL_LDFLAGS) \ | ||
43 | libtoxcore.la \ | 51 | libtoxcore.la \ |
44 | $(LIBSODIUM_LIBS) \ | 52 | $(LIBSODIUM_LIBS) \ |
53 | $(NACL_LIBS) \ | ||
45 | $(WINSOCK2_LIBS) | 54 | $(WINSOCK2_LIBS) |
46 | 55 | ||
47 | 56 | ||
@@ -49,23 +58,29 @@ Lossless_UDP_testserver_SOURCES = \ | |||
49 | ../testing/Lossless_UDP_testserver.c | 58 | ../testing/Lossless_UDP_testserver.c |
50 | 59 | ||
51 | Lossless_UDP_testserver_CFLAGS = \ | 60 | Lossless_UDP_testserver_CFLAGS = \ |
52 | $(LIBSODIUM_CFLAGS) | 61 | $(LIBSODIUM_CFLAGS) \ |
62 | $(NACL_CFLAGS) | ||
53 | 63 | ||
54 | Lossless_UDP_testserver_LDADD = \ | 64 | Lossless_UDP_testserver_LDADD = \ |
55 | $(LIBSODIUM_LDFLAGS) \ | 65 | $(LIBSODIUM_LDFLAGS) \ |
66 | $(NACL_LDFLAGS) \ | ||
56 | libtoxcore.la \ | 67 | libtoxcore.la \ |
57 | $(LIBSODIUM_LIBS) \ | 68 | $(LIBSODIUM_LIBS) \ |
69 | $(NACL_LIBS) \ | ||
58 | $(WINSOCK2_LIBS) | 70 | $(WINSOCK2_LIBS) |
59 | 71 | ||
60 | 72 | ||
61 | Messenger_test_SOURCES = \ | 73 | Messenger_test_SOURCES = \ |
62 | ../testing/Messenger_test.c | 74 | ../testing/Messenger_test.c |
63 | 75 | ||
64 | Messenger_test_CFLAGS = $(LIBSODIUM_CFLAGS) | 76 | Messenger_test_CFLAGS = $(LIBSODIUM_CFLAGS) \ |
77 | $(NACL_CFLAGS) | ||
65 | 78 | ||
66 | Messenger_test_LDADD = $(LIBSODIUM_LDFLAGS) \ | 79 | Messenger_test_LDADD = $(LIBSODIUM_LDFLAGS) \ |
80 | $(NACL_LDFLAGS) \ | ||
67 | libtoxcore.la \ | 81 | libtoxcore.la \ |
68 | $(LIBSODIUM_LIBS) \ | 82 | $(LIBSODIUM_LIBS) \ |
83 | $(NACL_LIBS) \ | ||
69 | $(WINSOCK2_LIBS) | 84 | $(WINSOCK2_LIBS) |
70 | 85 | ||
71 | 86 | ||
@@ -73,12 +88,15 @@ crypto_speed_test_SOURCES = \ | |||
73 | ../testing/crypto_speed_test.c | 88 | ../testing/crypto_speed_test.c |
74 | 89 | ||
75 | crypto_speed_test_CFLAGS = \ | 90 | crypto_speed_test_CFLAGS = \ |
76 | $(LIBSODIUM_CFLAGS) | 91 | $(LIBSODIUM_CFLAGS) \ |
92 | $(NACL_CFLAGS) | ||
77 | 93 | ||
78 | crypto_speed_test_LDADD = \ | 94 | crypto_speed_test_LDADD = \ |
79 | $(LIBSODIUM_LDFLAGS) \ | 95 | $(LIBSODIUM_LDFLAGS) \ |
96 | $(NACL_LDFLAGS) \ | ||
80 | libtoxcore.la \ | 97 | libtoxcore.la \ |
81 | $(LIBSODIUM_LIBS) \ | 98 | $(LIBSODIUM_LIBS) \ |
99 | $(NACL_LIBS) \ | ||
82 | $(WINSOCK2_LIBS) | 100 | $(WINSOCK2_LIBS) |
83 | 101 | ||
84 | EXTRA_DIST += $(top_srcdir)/testing/misc_tools.c | 102 | EXTRA_DIST += $(top_srcdir)/testing/misc_tools.c |
diff --git a/testing/Messenger_test.c b/testing/Messenger_test.c index ff34cd4c..e85a85a2 100644 --- a/testing/Messenger_test.c +++ b/testing/Messenger_test.c | |||
@@ -37,6 +37,10 @@ | |||
37 | * | 37 | * |
38 | */ | 38 | */ |
39 | 39 | ||
40 | #ifdef HAVE_CONFIG_H | ||
41 | #include "config.h" | ||
42 | #endif | ||
43 | |||
40 | #include "../toxcore/Messenger.h" | 44 | #include "../toxcore/Messenger.h" |
41 | #include "misc_tools.c" | 45 | #include "misc_tools.c" |
42 | 46 | ||
diff --git a/testing/crypto_speed_test.c b/testing/crypto_speed_test.c index b06c25e1..05f4aaf2 100644 --- a/testing/crypto_speed_test.c +++ b/testing/crypto_speed_test.c | |||
@@ -1,3 +1,7 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | #include "config.h" | ||
3 | #endif | ||
4 | |||
1 | // Hi-resolution timer | 5 | // Hi-resolution timer |
2 | #ifdef WIN32 | 6 | #ifdef WIN32 |
3 | #ifndef WINVER | 7 | #ifndef WINVER |
diff --git a/testing/misc_tools.c b/testing/misc_tools.c index 6e775867..c4dce1bb 100644 --- a/testing/misc_tools.c +++ b/testing/misc_tools.c | |||
@@ -21,6 +21,10 @@ | |||
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #ifdef HAVE_CONFIG_H | ||
25 | #include "config.h" | ||
26 | #endif | ||
27 | |||
24 | #include <string.h> | 28 | #include <string.h> |
25 | #include <stdlib.h> | 29 | #include <stdlib.h> |
26 | #include <stdio.h> | 30 | #include <stdio.h> |