1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389
|
if BUILD_TESTS
LOG_COMPILER = $(top_srcdir)/tools/test-wrapper.sh
AM_LOG_FLAGS = --timeout 60 --retries 3
noinst_LTLIBRARIES += libauto_test_support.la
libauto_test_support_la_SOURCES = ../auto_tests/auto_test_support.c ../auto_tests/auto_test_support.h
libauto_test_support_la_LIBADD = libmisc_tools.la libtoxcore.la
noinst_LTLIBRARIES += libscenario_framework.la
libscenario_framework_la_SOURCES = ../auto_tests/scenarios/framework/framework.c ../auto_tests/scenarios/framework/framework.h
libscenario_framework_la_LIBADD = libmisc_tools.la libtoxcore.la
TESTS = \
announce_test \
crypto_test \
encryptsave_test \
file_saving_test \
forwarding_test \
invalid_tcp_proxy_test \
invalid_udp_proxy_test \
network_test \
onion_test \
save_compatibility_test \
scenario_avatar_test \
scenario_bootstrap_test \
scenario_conference_double_invite_test \
scenario_conference_invite_merge_test \
scenario_conference_offline_test \
scenario_conference_peer_nick_test \
scenario_conference_query_test \
scenario_conference_simple_test \
scenario_conference_test \
scenario_conference_two_test \
scenario_dht_nodes_response_api_test \
scenario_events_test \
scenario_file_cancel_test \
scenario_file_seek_test \
scenario_file_transfer_test \
scenario_friend_connection_test \
scenario_friend_delete_test \
scenario_friend_query_test \
scenario_friend_read_receipt_test \
scenario_friend_request_spam_test \
scenario_friend_request_test \
scenario_group_by_id_test \
scenario_group_general_test \
scenario_group_invite_test \
scenario_group_message_test \
scenario_group_moderation_test \
scenario_group_save_test \
scenario_group_state_test \
scenario_group_sync_test \
scenario_group_tcp_test \
scenario_group_topic_test \
scenario_lossless_packet_test \
scenario_lossy_packet_test \
scenario_message_test \
scenario_netprof_test \
scenario_nospam_test \
scenario_overflow_recvq_test \
scenario_overflow_sendq_test \
scenario_reconnect_test \
scenario_save_friend_test \
scenario_save_load_test \
scenario_self_query_test \
scenario_send_message_test \
scenario_set_name_test \
scenario_set_status_message_test \
scenario_tox_many_test \
scenario_tox_many_tcp_test \
scenario_typing_test \
scenario_user_status_test \
tcp_relay_test \
TCP_test \
tox_dispatch_test \
tox_new_test \
tox_strncasecmp_test \
version_test
AUTOTEST_CFLAGS = \
$(LIBSODIUM_CFLAGS)
AUTOTEST_LDADD = \
$(LIBSODIUM_LDFLAGS) \
libmisc_tools.la \
libauto_test_support.la \
libtoxcore.la \
libtoxencryptsave.la \
$(LIBSODIUM_LIBS)
if BUILD_AV
TESTS += scenario_conference_av_test scenario_toxav_basic_test scenario_toxav_many_test
AUTOTEST_LDADD += libtoxav.la
endif
check_PROGRAMS = $(TESTS)
announce_test_SOURCES = ../auto_tests/announce_test.c
announce_test_CFLAGS = $(AUTOTEST_CFLAGS)
announce_test_LDADD = $(AUTOTEST_LDADD)
crypto_test_SOURCES = ../auto_tests/crypto_test.c
crypto_test_CFLAGS = $(AUTOTEST_CFLAGS)
crypto_test_LDADD = $(AUTOTEST_LDADD)
encryptsave_test_SOURCES = ../auto_tests/encryptsave_test.c
encryptsave_test_CFLAGS = $(AUTOTEST_CFLAGS)
encryptsave_test_LDADD = $(AUTOTEST_LDADD)
file_saving_test_SOURCES = ../auto_tests/file_saving_test.c
file_saving_test_CFLAGS = $(AUTOTEST_CFLAGS)
file_saving_test_LDADD = $(AUTOTEST_LDADD)
forwarding_test_SOURCES = ../auto_tests/forwarding_test.c
forwarding_test_CFLAGS = $(AUTOTEST_CFLAGS)
forwarding_test_LDADD = $(AUTOTEST_LDADD)
invalid_tcp_proxy_test_SOURCES = ../auto_tests/invalid_tcp_proxy_test.c
invalid_tcp_proxy_test_CFLAGS = $(AUTOTEST_CFLAGS)
invalid_tcp_proxy_test_LDADD = $(AUTOTEST_LDADD)
invalid_udp_proxy_test_SOURCES = ../auto_tests/invalid_udp_proxy_test.c
invalid_udp_proxy_test_CFLAGS = $(AUTOTEST_CFLAGS)
invalid_udp_proxy_test_LDADD = $(AUTOTEST_LDADD)
network_test_SOURCES = ../auto_tests/network_test.c
network_test_CFLAGS = $(AUTOTEST_CFLAGS)
network_test_LDADD = $(AUTOTEST_LDADD)
onion_test_SOURCES = ../auto_tests/onion_test.c
onion_test_CFLAGS = $(AUTOTEST_CFLAGS)
onion_test_LDADD = $(AUTOTEST_LDADD)
save_compatibility_test_SOURCES = ../auto_tests/save_compatibility_test.c
save_compatibility_test_CFLAGS = $(AUTOTEST_CFLAGS)
save_compatibility_test_LDADD = $(AUTOTEST_LDADD)
tcp_relay_test_SOURCES = ../auto_tests/tcp_relay_test.c
tcp_relay_test_CFLAGS = $(AUTOTEST_CFLAGS)
tcp_relay_test_LDADD = $(AUTOTEST_LDADD)
tox_new_test_SOURCES = ../auto_tests/tox_new_test.c
tox_new_test_CFLAGS = $(AUTOTEST_CFLAGS)
tox_new_test_LDADD = $(AUTOTEST_LDADD)
scenario_avatar_test_SOURCES = ../auto_tests/scenarios/scenario_avatar_test.c
scenario_avatar_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_avatar_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_conference_simple_test_SOURCES = ../auto_tests/scenarios/scenario_conference_simple_test.c
scenario_conference_simple_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_conference_simple_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_conference_offline_test_SOURCES = ../auto_tests/scenarios/scenario_conference_offline_test.c
scenario_conference_offline_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_conference_offline_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_conference_query_test_SOURCES = ../auto_tests/scenarios/scenario_conference_query_test.c
scenario_conference_query_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_conference_query_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_conference_double_invite_test_SOURCES = ../auto_tests/scenarios/scenario_conference_double_invite_test.c
scenario_conference_double_invite_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_conference_double_invite_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_conference_invite_merge_test_SOURCES = ../auto_tests/scenarios/scenario_conference_invite_merge_test.c
scenario_conference_invite_merge_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_conference_invite_merge_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_conference_peer_nick_test_SOURCES = ../auto_tests/scenarios/scenario_conference_peer_nick_test.c
scenario_conference_peer_nick_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_conference_peer_nick_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_conference_av_test_SOURCES = ../auto_tests/scenarios/scenario_conference_av_test.c
scenario_conference_av_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_conference_av_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_bootstrap_test_SOURCES = ../auto_tests/scenarios/scenario_bootstrap_test.c
scenario_bootstrap_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_bootstrap_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_conference_test_SOURCES = ../auto_tests/scenarios/scenario_conference_test.c
scenario_conference_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_conference_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_conference_two_test_SOURCES = ../auto_tests/scenarios/scenario_conference_two_test.c
scenario_conference_two_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_conference_two_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_dht_nodes_response_api_test_SOURCES = ../auto_tests/scenarios/scenario_dht_nodes_response_api_test.c
scenario_dht_nodes_response_api_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_dht_nodes_response_api_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_events_test_SOURCES = ../auto_tests/scenarios/scenario_events_test.c
scenario_events_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_events_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_file_cancel_test_SOURCES = ../auto_tests/scenarios/scenario_file_cancel_test.c
scenario_file_cancel_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_file_cancel_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_file_seek_test_SOURCES = ../auto_tests/scenarios/scenario_file_seek_test.c
scenario_file_seek_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_file_seek_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_file_transfer_test_SOURCES = ../auto_tests/scenarios/scenario_file_transfer_test.c
scenario_file_transfer_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_file_transfer_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_friend_connection_test_SOURCES = ../auto_tests/scenarios/scenario_friend_connection_test.c
scenario_friend_connection_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_friend_connection_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_friend_request_test_SOURCES = ../auto_tests/scenarios/scenario_friend_request_test.c
scenario_friend_request_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_friend_request_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_friend_delete_test_SOURCES = ../auto_tests/scenarios/scenario_friend_delete_test.c
scenario_friend_delete_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_friend_delete_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_friend_query_test_SOURCES = ../auto_tests/scenarios/scenario_friend_query_test.c
scenario_friend_query_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_friend_query_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_friend_read_receipt_test_SOURCES = ../auto_tests/scenarios/scenario_friend_read_receipt_test.c
scenario_friend_read_receipt_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_friend_read_receipt_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_friend_request_spam_test_SOURCES = ../auto_tests/scenarios/scenario_friend_request_spam_test.c
scenario_friend_request_spam_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_friend_request_spam_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_group_by_id_test_SOURCES = ../auto_tests/scenarios/scenario_group_by_id_test.c
scenario_group_by_id_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_group_by_id_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_group_general_test_SOURCES = ../auto_tests/scenarios/scenario_group_general_test.c
scenario_group_general_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_group_general_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_group_invite_test_SOURCES = ../auto_tests/scenarios/scenario_group_invite_test.c
scenario_group_invite_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_group_invite_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_group_message_test_SOURCES = ../auto_tests/scenarios/scenario_group_message_test.c
scenario_group_message_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_group_message_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_group_moderation_test_SOURCES = ../auto_tests/scenarios/scenario_group_moderation_test.c
scenario_group_moderation_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_group_moderation_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_group_save_test_SOURCES = ../auto_tests/scenarios/scenario_group_save_test.c
scenario_group_save_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_group_save_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_group_state_test_SOURCES = ../auto_tests/scenarios/scenario_group_state_test.c
scenario_group_state_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_group_state_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_group_sync_test_SOURCES = ../auto_tests/scenarios/scenario_group_sync_test.c
scenario_group_sync_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_group_sync_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_group_tcp_test_SOURCES = ../auto_tests/scenarios/scenario_group_tcp_test.c
scenario_group_tcp_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_group_tcp_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_group_topic_test_SOURCES = ../auto_tests/scenarios/scenario_group_topic_test.c
scenario_group_topic_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_group_topic_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
# A bit flaky, and autotools doesn't do retries.
# scenario_lan_discovery_test_SOURCES = ../auto_tests/scenarios/scenario_lan_discovery_test.c
# scenario_lan_discovery_test_CFLAGS = $(AUTOTEST_CFLAGS)
# scenario_lan_discovery_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_lossless_packet_test_SOURCES = ../auto_tests/scenarios/scenario_lossless_packet_test.c
scenario_lossless_packet_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_lossless_packet_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_lossy_packet_test_SOURCES = ../auto_tests/scenarios/scenario_lossy_packet_test.c
scenario_lossy_packet_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_lossy_packet_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_message_test_SOURCES = ../auto_tests/scenarios/scenario_message_test.c
scenario_message_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_message_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_netprof_test_SOURCES = ../auto_tests/scenarios/scenario_netprof_test.c
scenario_netprof_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_netprof_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_nospam_test_SOURCES = ../auto_tests/scenarios/scenario_nospam_test.c
scenario_nospam_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_nospam_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_reconnect_test_SOURCES = ../auto_tests/scenarios/scenario_reconnect_test.c
scenario_reconnect_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_reconnect_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_save_friend_test_SOURCES = ../auto_tests/scenarios/scenario_save_friend_test.c
scenario_save_friend_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_save_friend_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_self_query_test_SOURCES = ../auto_tests/scenarios/scenario_self_query_test.c
scenario_self_query_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_self_query_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_overflow_recvq_test_SOURCES = ../auto_tests/scenarios/scenario_overflow_recvq_test.c
scenario_overflow_recvq_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_overflow_recvq_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_overflow_sendq_test_SOURCES = ../auto_tests/scenarios/scenario_overflow_sendq_test.c
scenario_overflow_sendq_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_overflow_sendq_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_save_load_test_SOURCES = ../auto_tests/scenarios/scenario_save_load_test.c
scenario_save_load_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_save_load_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_send_message_test_SOURCES = ../auto_tests/scenarios/scenario_send_message_test.c
scenario_send_message_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_send_message_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_set_name_test_SOURCES = ../auto_tests/scenarios/scenario_set_name_test.c
scenario_set_name_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_set_name_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_set_status_message_test_SOURCES = ../auto_tests/scenarios/scenario_set_status_message_test.c
scenario_set_status_message_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_set_status_message_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_tox_many_test_SOURCES = ../auto_tests/scenarios/scenario_tox_many_test.c
scenario_tox_many_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_tox_many_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_tox_many_tcp_test_SOURCES = ../auto_tests/scenarios/scenario_tox_many_tcp_test.c
scenario_tox_many_tcp_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_tox_many_tcp_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_typing_test_SOURCES = ../auto_tests/scenarios/scenario_typing_test.c
scenario_typing_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_typing_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_user_status_test_SOURCES = ../auto_tests/scenarios/scenario_user_status_test.c
scenario_user_status_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_user_status_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
TCP_test_SOURCES = ../auto_tests/TCP_test.c
TCP_test_CFLAGS = $(AUTOTEST_CFLAGS)
TCP_test_LDADD = $(AUTOTEST_LDADD)
tox_dispatch_test_SOURCES = ../auto_tests/tox_dispatch_test.c
tox_dispatch_test_CFLAGS = $(AUTOTEST_CFLAGS)
tox_dispatch_test_LDADD = $(AUTOTEST_LDADD)
tox_strncasecmp_test_SOURCES = ../auto_tests/tox_strncasecmp_test.c
tox_strncasecmp_test_CFLAGS = $(AUTOTEST_CFLAGS)
tox_strncasecmp_test_LDADD = $(AUTOTEST_LDADD)
version_test_SOURCES = ../auto_tests/version_test.c
version_test_CFLAGS = $(AUTOTEST_CFLAGS)
version_test_LDADD = $(AUTOTEST_LDADD)
if BUILD_AV
scenario_toxav_basic_test_SOURCES = ../auto_tests/scenarios/scenario_toxav_basic_test.c
scenario_toxav_basic_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_toxav_basic_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
scenario_toxav_many_test_SOURCES = ../auto_tests/scenarios/scenario_toxav_many_test.c
scenario_toxav_many_test_CFLAGS = $(AUTOTEST_CFLAGS)
scenario_toxav_many_test_LDADD = $(AUTOTEST_LDADD) libscenario_framework.la
endif
endif
EXTRA_DIST += \
$(top_srcdir)/auto_tests/data/save.tox.big \
$(top_srcdir)/auto_tests/data/save.tox.little \
$(top_srcdir)/auto_tests/check_compat.h \
$(top_srcdir)/auto_tests/auto_test_support.h \
$(top_srcdir)/auto_tests/scenarios/framework/framework.h
|