2014-05-11 05:14:53 +02:00
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
|
2016-01-02 23:22:20 +01:00
|
|
|
benchmark_programs = \
|
|
|
|
bdecode_benchmark
|
|
|
|
|
2009-09-10 04:22:13 +02:00
|
|
|
test_programs = \
|
2015-05-30 06:31:23 +02:00
|
|
|
test_primitives \
|
2014-07-06 21:18:00 +02:00
|
|
|
test_recheck \
|
|
|
|
test_stat_cache \
|
2012-06-30 01:10:28 +02:00
|
|
|
test_file \
|
2013-11-24 02:32:51 +01:00
|
|
|
test_privacy \
|
2015-05-30 06:31:23 +02:00
|
|
|
test_priority \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_auto_unchoke \
|
2013-01-06 05:53:26 +01:00
|
|
|
test_checking \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_fast_extension \
|
|
|
|
test_http_connection \
|
|
|
|
test_lsd \
|
|
|
|
test_pe_crypto \
|
|
|
|
test_pex \
|
2013-11-24 02:32:51 +01:00
|
|
|
test_read_piece \
|
2016-03-04 05:53:24 +01:00
|
|
|
test_receive_buffer \
|
2014-11-08 17:58:18 +01:00
|
|
|
test_resume \
|
2013-11-24 02:32:51 +01:00
|
|
|
test_ssl \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_storage \
|
2014-10-12 10:39:14 +02:00
|
|
|
test_time_critical \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_torrent \
|
2013-11-24 02:32:51 +01:00
|
|
|
test_tracker \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_transfer \
|
2013-08-18 18:01:20 +02:00
|
|
|
enum_if \
|
2012-06-05 07:55:40 +02:00
|
|
|
test_utp \
|
2013-05-31 18:33:06 +02:00
|
|
|
test_session \
|
2014-03-06 11:06:41 +01:00
|
|
|
test_web_seed \
|
2016-04-11 02:46:51 +02:00
|
|
|
test_web_seed_ban \
|
|
|
|
test_web_seed_chunked \
|
|
|
|
test_web_seed_http \
|
|
|
|
test_web_seed_http_pw \
|
|
|
|
test_web_seed_redirect \
|
|
|
|
test_web_seed_socks4 \
|
|
|
|
test_web_seed_socks5 \
|
2015-10-03 17:20:10 +02:00
|
|
|
test_web_seed_socks5_no_peers \
|
2016-04-11 02:46:51 +02:00
|
|
|
test_web_seed_socks5_pw \
|
2014-06-15 20:02:59 +02:00
|
|
|
test_url_seed \
|
2015-06-29 04:47:11 +02:00
|
|
|
test_remap_files \
|
2015-08-24 17:40:29 +02:00
|
|
|
test_enum_net \
|
2015-08-31 05:34:49 +02:00
|
|
|
test_file_progress \
|
2016-04-11 02:46:51 +02:00
|
|
|
test_linked_list \
|
|
|
|
test_direct_dht
|
2008-03-04 09:04:09 +01:00
|
|
|
|
2008-09-02 13:14:10 +02:00
|
|
|
if ENABLE_TESTS
|
2016-01-02 23:22:20 +01:00
|
|
|
check_PROGRAMS = $(test_programs) $(benchmark_programs)
|
2008-09-02 13:14:10 +02:00
|
|
|
noinst_LTLIBRARIES = libtest.la
|
|
|
|
endif
|
2009-09-10 04:22:13 +02:00
|
|
|
|
2016-01-02 23:22:20 +01:00
|
|
|
TESTS = $(test_programs)
|
2008-06-28 12:38:12 +02:00
|
|
|
|
2013-02-09 21:29:40 +01:00
|
|
|
EXTRA_DIST = Jamfile \
|
2016-04-10 21:10:29 +02:00
|
|
|
test_torrents/backslash_path.torrent \
|
2013-02-09 21:29:40 +01:00
|
|
|
test_torrents/base.torrent \
|
2016-04-10 21:10:29 +02:00
|
|
|
test_torrents/creation_date.torrent \
|
|
|
|
test_torrents/duplicate_files.torrent \
|
|
|
|
test_torrents/duplicate_web_seeds.torrent \
|
|
|
|
test_torrents/empty_httpseed.torrent \
|
|
|
|
test_torrents/empty_path.torrent \
|
|
|
|
test_torrents/empty_path_multi.torrent \
|
2013-02-09 21:29:40 +01:00
|
|
|
test_torrents/hidden_parent_path.torrent \
|
|
|
|
test_torrents/httpseed.torrent \
|
2016-04-10 21:10:29 +02:00
|
|
|
test_torrents/invalid_file_size.torrent \
|
|
|
|
test_torrents/invalid_info.torrent \
|
|
|
|
test_torrents/invalid_name.torrent \
|
|
|
|
test_torrents/invalid_name2.torrent \
|
|
|
|
test_torrents/invalid_name3.torrent \
|
|
|
|
test_torrents/invalid_path_list.torrent \
|
2013-02-25 02:54:38 +01:00
|
|
|
test_torrents/invalid_piece_len.torrent \
|
2016-04-10 21:10:29 +02:00
|
|
|
test_torrents/invalid_pieces.torrent \
|
|
|
|
test_torrents/invalid_root_hash.torrent \
|
|
|
|
test_torrents/invalid_root_hash2.torrent \
|
|
|
|
test_torrents/long_name.torrent \
|
|
|
|
test_torrents/missing_path_list.torrent \
|
2013-02-25 02:54:38 +01:00
|
|
|
test_torrents/missing_piece_len.torrent \
|
2016-04-10 21:10:29 +02:00
|
|
|
test_torrents/negative_file_size.torrent \
|
2013-02-25 02:54:38 +01:00
|
|
|
test_torrents/negative_piece_len.torrent \
|
|
|
|
test_torrents/negative_size.torrent \
|
2016-04-10 21:10:29 +02:00
|
|
|
test_torrents/no_creation_date.torrent \
|
|
|
|
test_torrents/no_name.torrent \
|
2013-02-25 02:54:38 +01:00
|
|
|
test_torrents/pad_file.torrent \
|
2016-04-10 21:10:29 +02:00
|
|
|
test_torrents/parent_path.torrent \
|
|
|
|
test_torrents/root_hash.torrent \
|
|
|
|
test_torrents/sample.torrent \
|
|
|
|
test_torrents/single_multi_file.torrent \
|
|
|
|
test_torrents/slash_path.torrent \
|
|
|
|
test_torrents/slash_path2.torrent \
|
|
|
|
test_torrents/slash_path3.torrent \
|
|
|
|
test_torrents/string.torrent \
|
|
|
|
test_torrents/symlink1.torrent \
|
2013-02-25 02:54:38 +01:00
|
|
|
test_torrents/unaligned_pieces.torrent \
|
2016-04-10 21:10:29 +02:00
|
|
|
test_torrents/url_list.torrent \
|
|
|
|
test_torrents/url_list2.torrent \
|
|
|
|
test_torrents/url_list3.torrent \
|
2013-02-26 06:57:29 +01:00
|
|
|
test_torrents/url_seed.torrent \
|
|
|
|
test_torrents/url_seed_multi.torrent \
|
|
|
|
test_torrents/url_seed_multi_space.torrent \
|
2013-02-26 08:32:53 +01:00
|
|
|
test_torrents/url_seed_multi_space_nolist.torrent \
|
2016-04-10 21:10:29 +02:00
|
|
|
test_torrents/whitespace_url.torrent \
|
2015-03-21 01:12:40 +01:00
|
|
|
mutable_test_torrents/test1.torrent \
|
|
|
|
mutable_test_torrents/test1_pad_files.torrent \
|
|
|
|
mutable_test_torrents/test1_single.torrent\
|
|
|
|
mutable_test_torrents/test1_single_padded.torrent \
|
|
|
|
mutable_test_torrents/test2.torrent \
|
|
|
|
mutable_test_torrents/test2_pad_files.torrent \
|
|
|
|
mutable_test_torrents/test3.torrent \
|
|
|
|
mutable_test_torrents/test3_pad_files.torrent \
|
2014-05-03 07:17:50 +02:00
|
|
|
zeroes.gz \
|
2016-04-11 02:46:51 +02:00
|
|
|
utf8_test.txt \
|
|
|
|
web_server.py \
|
|
|
|
socks.py \
|
|
|
|
http.py
|
2013-02-09 21:29:40 +01:00
|
|
|
|
2016-01-02 23:22:20 +01:00
|
|
|
EXTRA_PROGRAMS = $(test_programs) $(benchmark_programs)
|
2005-08-17 02:24:41 +02:00
|
|
|
|
2014-02-23 02:32:55 +01:00
|
|
|
noinst_HEADERS = test.hpp setup_transfer.hpp dht_server.hpp \
|
2015-05-30 06:31:23 +02:00
|
|
|
peer_server.hpp udp_tracker.hpp web_seed_suite.hpp swarm_suite.hpp \
|
2016-04-11 02:46:51 +02:00
|
|
|
test_utils.hpp settings.hpp make_torrent.hpp bittorrent_peer.hpp \
|
|
|
|
print_alerts.hpp
|
2008-03-04 09:04:09 +01:00
|
|
|
|
2013-08-18 18:01:20 +02:00
|
|
|
libtest_la_SOURCES = main.cpp \
|
2015-05-30 06:31:23 +02:00
|
|
|
test.cpp \
|
2013-08-18 18:01:20 +02:00
|
|
|
setup_transfer.cpp \
|
|
|
|
dht_server.cpp \
|
2014-02-23 02:32:55 +01:00
|
|
|
udp_tracker.cpp \
|
2013-08-18 18:01:20 +02:00
|
|
|
peer_server.cpp \
|
2016-04-11 02:46:51 +02:00
|
|
|
bittorrent_peer.cpp \
|
2016-02-07 04:45:23 +01:00
|
|
|
make_torrent.cpp \
|
2014-10-12 10:39:14 +02:00
|
|
|
web_seed_suite.cpp \
|
2015-04-24 05:48:08 +02:00
|
|
|
swarm_suite.cpp \
|
2015-08-08 03:28:51 +02:00
|
|
|
test_utils.cpp \
|
2016-04-11 02:46:51 +02:00
|
|
|
settings.cpp \
|
|
|
|
print_alerts.cpp
|
2008-03-04 09:04:09 +01:00
|
|
|
|
2015-05-30 06:31:23 +02:00
|
|
|
test_primitives_SOURCES = \
|
|
|
|
test_primitives.cpp \
|
|
|
|
test_packet_buffer.cpp \
|
|
|
|
test_timestamp_history.cpp \
|
|
|
|
test_sha1_hash.cpp \
|
|
|
|
test_bloom_filter.cpp \
|
|
|
|
test_identify_client.cpp \
|
|
|
|
test_merkle.cpp \
|
|
|
|
test_alert_manager.cpp \
|
|
|
|
test_resolve_links.cpp \
|
|
|
|
test_crc32.cpp \
|
|
|
|
test_heterogeneous_queue.cpp \
|
|
|
|
test_ip_voter.cpp \
|
|
|
|
test_sliding_average.cpp \
|
|
|
|
test_socket_io.cpp \
|
|
|
|
test_random.cpp \
|
|
|
|
test_utf8.cpp \
|
|
|
|
test_gzip.cpp \
|
|
|
|
test_bitfield.cpp \
|
|
|
|
test_part_file.cpp \
|
|
|
|
test_peer_list.cpp \
|
|
|
|
test_torrent_info.cpp \
|
|
|
|
test_time.cpp \
|
|
|
|
test_file_storage.cpp \
|
|
|
|
test_peer_priority.cpp \
|
|
|
|
test_threads.cpp \
|
|
|
|
test_tailqueue.cpp \
|
|
|
|
test_bandwidth_limiter.cpp \
|
|
|
|
test_buffer.cpp \
|
|
|
|
test_piece_picker.cpp \
|
|
|
|
test_bencoding.cpp \
|
|
|
|
test_bdecode.cpp \
|
|
|
|
test_http_parser.cpp \
|
|
|
|
test_string.cpp \
|
|
|
|
test_magnet.cpp \
|
|
|
|
test_xml.cpp \
|
|
|
|
test_ip_filter.cpp \
|
|
|
|
test_hasher.cpp \
|
2015-09-08 22:12:54 +02:00
|
|
|
test_dht_storage.cpp \
|
2015-05-30 06:31:23 +02:00
|
|
|
test_dht.cpp \
|
|
|
|
test_block_cache.cpp \
|
|
|
|
test_peer_classes.cpp \
|
|
|
|
test_settings_pack.cpp \
|
|
|
|
test_fence.cpp \
|
|
|
|
test_dos_blocker.cpp \
|
|
|
|
test_upnp.cpp
|
|
|
|
|
2015-07-16 07:44:27 +02:00
|
|
|
bdecode_benchmark_SOURCES = bdecode_benchmark.cpp
|
2014-07-06 21:18:00 +02:00
|
|
|
test_recheck_SOURCES = test_recheck.cpp
|
|
|
|
test_stat_cache_SOURCES = test_stat_cache.cpp
|
2012-06-30 01:10:28 +02:00
|
|
|
test_file_SOURCES = test_file.cpp
|
2013-12-15 23:29:11 +01:00
|
|
|
test_privacy_SOURCES = test_privacy.cpp
|
2015-05-30 06:31:23 +02:00
|
|
|
test_priority_SOURCES = test_priority.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_auto_unchoke_SOURCES = test_auto_unchoke.cpp
|
2013-01-15 06:33:24 +01:00
|
|
|
test_checking_SOURCES = test_checking.cpp
|
2016-01-02 23:22:20 +01:00
|
|
|
test_enum_net_SOURCES = test_enum_net.cpp
|
2008-09-02 13:14:10 +02:00
|
|
|
test_fast_extension_SOURCES = test_fast_extension.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_http_connection_SOURCES = test_http_connection.cpp
|
|
|
|
test_lsd_SOURCES = test_lsd.cpp
|
2008-09-02 13:14:10 +02:00
|
|
|
test_pe_crypto_SOURCES = test_pe_crypto.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_pex_SOURCES = test_pex.cpp
|
2013-12-15 23:29:11 +01:00
|
|
|
test_read_piece_SOURCES = test_read_piece.cpp
|
2016-04-09 06:33:26 +02:00
|
|
|
test_receive_buffer_SOURCES = test_receive_buffer.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_storage_SOURCES = test_storage.cpp
|
2014-10-12 10:39:14 +02:00
|
|
|
test_time_critical_SOURCES = test_time_critical.cpp
|
2014-11-12 17:57:59 +01:00
|
|
|
test_resume_SOURCES = test_resume.cpp
|
2013-12-15 23:29:11 +01:00
|
|
|
test_ssl_SOURCES = test_ssl.cpp
|
2008-09-02 13:14:10 +02:00
|
|
|
test_torrent_SOURCES = test_torrent.cpp
|
2013-12-15 23:29:11 +01:00
|
|
|
test_tracker_SOURCES = test_tracker.cpp
|
2008-09-02 13:14:10 +02:00
|
|
|
test_transfer_SOURCES = test_transfer.cpp
|
2013-08-18 18:01:20 +02:00
|
|
|
enum_if_SOURCES = enum_if.cpp
|
2012-06-05 07:55:40 +02:00
|
|
|
test_utp_SOURCES = test_utp.cpp
|
2013-05-31 18:33:06 +02:00
|
|
|
test_session_SOURCES = test_session.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_web_seed_SOURCES = test_web_seed.cpp
|
2016-04-11 02:46:51 +02:00
|
|
|
test_web_seed_ban_SOURCES = test_web_seed_ban.cpp
|
|
|
|
test_web_seed_chunked_SOURCES = test_web_seed_chunked.cpp
|
|
|
|
test_web_seed_http_SOURCES = test_web_seed_http.cpp
|
|
|
|
test_web_seed_http_pw_SOURCES = test_web_seed_http_pw.cpp
|
|
|
|
test_web_seed_redirect_SOURCES = test_web_seed_redirect.cpp
|
|
|
|
test_web_seed_socks4_SOURCES = test_web_seed_socks4.cpp
|
|
|
|
test_web_seed_socks5_SOURCES = test_web_seed_socks5.cpp
|
2015-10-03 17:20:10 +02:00
|
|
|
test_web_seed_socks5_no_peers_SOURCES = test_web_seed_socks5_no_peers.cpp
|
2016-04-11 02:46:51 +02:00
|
|
|
test_web_seed_socks5_pw_SOURCES = test_web_seed_socks5_pw.cpp
|
2014-06-15 20:02:59 +02:00
|
|
|
test_url_seed_SOURCES = test_url_seed.cpp
|
2014-03-05 10:37:49 +01:00
|
|
|
test_remap_files_SOURCES = test_remap_files.cpp
|
2015-07-08 11:48:42 +02:00
|
|
|
test_file_progress_SOURCES = test_file_progress.cpp
|
2015-08-31 05:34:49 +02:00
|
|
|
test_linked_list_SOURCES = test_linked_list.cpp
|
2016-04-11 02:46:51 +02:00
|
|
|
test_direct_dht_SOURCES = test_direct_dht.cpp
|
2008-09-02 13:14:10 +02:00
|
|
|
|
2014-06-19 05:32:53 +02:00
|
|
|
LDADD = libtest.la $(top_builddir)/src/libtorrent-rasterbar.la
|
2005-08-17 02:24:41 +02:00
|
|
|
|
2009-09-10 04:22:13 +02:00
|
|
|
#AM_CXXFLAGS=-ftemplate-depth-50 -I$(top_srcdir)/include -I$(top_srcdir)/include/libtorrent @DEBUGFLAGS@ @PTHREAD_CFLAGS@
|
|
|
|
AM_CPPFLAGS=-ftemplate-depth-50 -I$(top_srcdir)/include @DEBUGFLAGS@
|
2008-10-04 09:46:56 +02:00
|
|
|
|
2015-05-30 06:31:23 +02:00
|
|
|
AM_LDFLAGS=@BOOST_SYSTEM_LIB@ @PTHREAD_LIBS@ @OPENSSL_LDFLAGS@ @OPENSSL_LIBS@ \
|
|
|
|
@BOOST_CHRONO_LIB@
|
2013-06-09 01:37:11 +02:00
|
|
|
|