2009-09-10 04:22:13 +02:00
|
|
|
test_programs = \
|
2012-06-30 01:10:28 +02:00
|
|
|
test_file \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_auto_unchoke \
|
|
|
|
test_bandwidth_limiter \
|
|
|
|
test_bdecode_performance \
|
|
|
|
test_bencoding \
|
|
|
|
test_buffer \
|
2013-01-06 05:53:26 +01:00
|
|
|
test_checking \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_fast_extension \
|
|
|
|
test_hasher \
|
|
|
|
test_http_connection \
|
|
|
|
test_ip_filter \
|
2009-09-27 05:38:41 +02:00
|
|
|
test_dht \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_lsd \
|
|
|
|
test_metadata_extension \
|
|
|
|
test_natpmp \
|
|
|
|
test_pe_crypto \
|
2012-12-31 07:54:54 +01:00
|
|
|
test_peer_priority \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_pex \
|
|
|
|
test_piece_picker \
|
|
|
|
test_primitives \
|
2012-06-05 07:55:40 +02:00
|
|
|
test_rss \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_storage \
|
|
|
|
test_swarm \
|
2012-06-05 07:55:40 +02:00
|
|
|
test_threads \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_torrent \
|
2013-01-31 04:39:14 +01:00
|
|
|
test_torrent_parse \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_trackers_extension \
|
|
|
|
test_transfer \
|
|
|
|
test_upnp \
|
2012-06-05 07:55:40 +02:00
|
|
|
test_utp \
|
2009-09-10 04:22:13 +02:00
|
|
|
test_web_seed
|
2008-03-04 09:04:09 +01:00
|
|
|
|
2008-09-02 13:14:10 +02:00
|
|
|
if ENABLE_TESTS
|
|
|
|
check_PROGRAMS = $(test_programs)
|
|
|
|
noinst_LTLIBRARIES = libtest.la
|
|
|
|
endif
|
2009-09-10 04:22:13 +02:00
|
|
|
|
2008-06-28 12:38:12 +02:00
|
|
|
TESTS = $(check_PROGRAMS)
|
|
|
|
|
2013-02-09 21:29:40 +01:00
|
|
|
EXTRA_DIST = Jamfile \
|
|
|
|
test_torrents/base.torrent \
|
|
|
|
test_torrents/empty_path.torrent \
|
|
|
|
test_torrents/parent_path.torrent \
|
|
|
|
test_torrents/hidden_parent_path.torrent \
|
|
|
|
test_torrents/single_multi_file.torrent \
|
|
|
|
test_torrents/slash_path.torrent \
|
|
|
|
test_torrents/backslash_path.torrent \
|
|
|
|
test_torrents/url_list.torrent \
|
|
|
|
test_torrents/url_list2.torrent \
|
|
|
|
test_torrents/url_list3.torrent \
|
|
|
|
test_torrents/httpseed.torrent \
|
|
|
|
test_torrents/empty_httpseed.torrent \
|
2013-02-24 11:02:26 +01:00
|
|
|
test_torrents/long_name.torrent \
|
|
|
|
test_torrents/whitespace_url.torrent \
|
2013-02-25 02:54:38 +01:00
|
|
|
test_torrents/duplicate_files.torrent \
|
|
|
|
test_torrents/invalid_piece_len.torrent \
|
|
|
|
test_torrents/missing_piece_len.torrent \
|
|
|
|
test_torrents/negative_piece_len.torrent \
|
|
|
|
test_torrents/no_name.torrent \
|
|
|
|
test_torrents/invalid_name.torrent \
|
|
|
|
test_torrents/invalid_name2.torrent \
|
|
|
|
test_torrents/invalid_info.torrent \
|
|
|
|
test_torrents/string.torrent \
|
|
|
|
test_torrents/negative_size.torrent \
|
|
|
|
test_torrents/negative_file_size.torrent \
|
|
|
|
test_torrents/pad_file.torrent \
|
|
|
|
test_torrents/invalid_path_list.torrent \
|
|
|
|
test_torrents/missing_path_list.torrent \
|
|
|
|
test_torrents/invalid_pieces.torrent \
|
|
|
|
test_torrents/unaligned_pieces.torrent \
|
2013-02-26 06:57:29 +01:00
|
|
|
test_torrents/creation_date.torrent \
|
|
|
|
test_torrents/no_creation_date.torrent \
|
|
|
|
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 \
|
|
|
|
test_torrents/invalid_root_hash.torrent \
|
|
|
|
test_torrents/invalid_root_hash2.torrent \
|
|
|
|
test_torrents/root_hash.torrent \
|
|
|
|
test_torrents/invalid_file_size.torrent
|
2013-02-09 21:29:40 +01:00
|
|
|
|
2008-09-02 13:14:10 +02:00
|
|
|
EXTRA_PROGRAMS = $(test_programs)
|
2005-08-17 02:24:41 +02:00
|
|
|
|
2008-09-02 13:14:10 +02:00
|
|
|
noinst_HEADERS = test.hpp setup_transfer.hpp
|
2008-03-04 09:04:09 +01:00
|
|
|
|
2008-09-02 13:14:10 +02:00
|
|
|
libtest_la_SOURCES = main.cpp setup_transfer.cpp
|
2008-03-04 09:04:09 +01:00
|
|
|
|
2012-06-30 01:10:28 +02:00
|
|
|
test_file_SOURCES = test_file.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_auto_unchoke_SOURCES = test_auto_unchoke.cpp
|
|
|
|
test_bandwidth_limiter_SOURCES = test_bandwidth_limiter.cpp
|
|
|
|
test_bdecode_performance_SOURCES = test_bdecode_performance.cpp
|
2009-09-27 05:38:41 +02:00
|
|
|
test_dht_SOURCES = test_dht.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_bencoding_SOURCES = test_bencoding.cpp
|
|
|
|
test_buffer_SOURCES = test_buffer.cpp
|
2013-01-15 06:33:24 +01:00
|
|
|
test_checking_SOURCES = test_checking.cpp
|
2008-09-02 13:14:10 +02:00
|
|
|
test_fast_extension_SOURCES = test_fast_extension.cpp
|
|
|
|
test_hasher_SOURCES = test_hasher.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_http_connection_SOURCES = test_http_connection.cpp
|
2008-09-02 13:14:10 +02:00
|
|
|
test_ip_filter_SOURCES = test_ip_filter.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_lsd_SOURCES = test_lsd.cpp
|
2008-09-02 13:14:10 +02:00
|
|
|
test_metadata_extension_SOURCES = test_metadata_extension.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_natpmp_SOURCES = test_natpmp.cpp
|
2012-12-31 07:54:54 +01:00
|
|
|
test_peer_priority_SOURCES = test_peer_priority.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
|
|
|
|
test_piece_picker_SOURCES = test_piece_picker.cpp
|
2008-09-02 13:14:10 +02:00
|
|
|
test_primitives_SOURCES = test_primitives.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_storage_SOURCES = test_storage.cpp
|
|
|
|
test_swarm_SOURCES = test_swarm.cpp
|
2012-06-05 07:55:40 +02:00
|
|
|
test_rss_SOURCES = test_rss.cpp
|
|
|
|
test_threads_SOURCES = test_threads.cpp
|
2008-09-02 13:14:10 +02:00
|
|
|
test_torrent_SOURCES = test_torrent.cpp
|
2013-02-09 21:29:40 +01:00
|
|
|
test_torrent_parse_SOURCES = test_torrent_parse.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_trackers_extension_SOURCES = test_trackers_extension.cpp
|
2008-09-02 13:14:10 +02:00
|
|
|
test_transfer_SOURCES = test_transfer.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_upnp_SOURCES = test_upnp.cpp
|
2012-06-05 07:55:40 +02:00
|
|
|
test_utp_SOURCES = test_utp.cpp
|
2009-09-10 04:22:13 +02:00
|
|
|
test_web_seed_SOURCES = test_web_seed.cpp
|
2008-09-02 13:14:10 +02:00
|
|
|
|
|
|
|
LDADD = $(top_builddir)/src/libtorrent-rasterbar.la libtest.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
|
|
|
|
2009-09-10 04:22:13 +02:00
|
|
|
#AM_LDFLAGS= @BOOST_SYSTEM_LIB@ @BOOST_FILESYSTEM_LIB@ @BOOST_THREAD_LIB@ @PTHREAD_LIBS@ @SSL_LDFLAGS@ @SSL_LIBS@
|