2011-04-10 01:50:33 +02:00
|
|
|
import testing ;
|
2013-09-03 03:19:42 +02:00
|
|
|
import feature : feature ;
|
2011-04-10 01:50:33 +02:00
|
|
|
|
2005-08-11 13:06:52 +02:00
|
|
|
use-project /torrent : .. ;
|
|
|
|
|
2009-04-10 10:40:13 +02:00
|
|
|
exe test_natpmp : test_natpmp.cpp /torrent//torrent
|
2009-11-29 08:06:38 +01:00
|
|
|
: <threading>multi <debug-iterators>on <invariant-checks>full ;
|
2009-04-10 10:40:13 +02:00
|
|
|
|
2013-07-20 03:02:15 +02:00
|
|
|
exe enum_if : enum_if.cpp /torrent//torrent
|
|
|
|
: <threading>multi <debug-iterators>on <invariant-checks>full ;
|
|
|
|
|
2009-05-21 21:20:24 +02:00
|
|
|
explicit test_natpmp ;
|
2013-07-20 03:02:15 +02:00
|
|
|
explicit enum_if ;
|
2009-05-21 21:20:24 +02:00
|
|
|
|
2013-09-20 16:14:29 +02:00
|
|
|
rule link_test ( properties * )
|
|
|
|
{
|
|
|
|
local result ;
|
|
|
|
if <link>shared in $(properties)
|
|
|
|
{
|
|
|
|
result +=
|
|
|
|
<library>libtorrent_test/<link>shared ;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
result +=
|
|
|
|
<library>libtorrent_test/<link>static ;
|
|
|
|
}
|
2013-09-25 03:45:23 +02:00
|
|
|
return $(result) ;
|
2013-09-20 16:14:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
rule link_libtorrent ( properties * )
|
|
|
|
{
|
|
|
|
local result ;
|
|
|
|
if <link>shared in $(properties)
|
|
|
|
{
|
|
|
|
result +=
|
|
|
|
<library>/torrent//torrent/<link>shared/<boost-link>shared/<export-extra>on ;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
result +=
|
2014-01-06 04:50:25 +01:00
|
|
|
<library>/torrent//torrent/<link>static/<boost-link>static/<export-extra>on ;
|
2013-09-20 16:14:29 +02:00
|
|
|
}
|
2013-09-25 03:45:23 +02:00
|
|
|
return $(result) ;
|
2013-09-20 16:14:29 +02:00
|
|
|
}
|
|
|
|
|
2013-06-21 03:06:40 +02:00
|
|
|
lib libtorrent_test
|
|
|
|
: # sources
|
|
|
|
setup_transfer.cpp
|
|
|
|
dht_server.cpp
|
2014-02-23 02:32:55 +01:00
|
|
|
udp_tracker.cpp
|
2013-06-21 03:06:40 +02:00
|
|
|
peer_server.cpp
|
2013-09-30 00:50:06 +02:00
|
|
|
web_seed_suite.cpp
|
2013-06-23 19:36:00 +02:00
|
|
|
|
2013-06-21 03:06:40 +02:00
|
|
|
: # requirements
|
2013-06-23 19:36:00 +02:00
|
|
|
# this is used to determine whether
|
|
|
|
# symbols are exported or imported
|
|
|
|
<link>shared:<define>TORRENT_BUILDING_TEST_SHARED
|
2013-08-22 10:12:35 +02:00
|
|
|
<link>shared:<define>ED25519_BUILD_DLL
|
|
|
|
<include>../ed25519/src
|
2013-08-28 08:39:39 +02:00
|
|
|
<target-os>windows:<library>advapi32
|
2013-09-20 16:14:29 +02:00
|
|
|
<conditional>@link_libtorrent
|
2013-06-23 19:36:00 +02:00
|
|
|
|
|
|
|
: # default build
|
|
|
|
<link>shared
|
2013-09-18 10:42:30 +02:00
|
|
|
|
|
|
|
: # user-requirements
|
|
|
|
<link>shared:<define>TORRENT_LINK_TEST_SHARED
|
2013-06-21 03:06:40 +02:00
|
|
|
;
|
|
|
|
|
2014-04-27 18:54:10 +02:00
|
|
|
explicit libtorrent_test ;
|
|
|
|
|
2013-08-28 08:39:39 +02:00
|
|
|
lib advapi32 : : <name>Advapi32 ;
|
|
|
|
|
2007-07-06 22:17:36 +02:00
|
|
|
project
|
|
|
|
: requirements
|
2009-04-10 10:40:13 +02:00
|
|
|
<source>main.cpp
|
2013-09-20 16:14:29 +02:00
|
|
|
<conditional>@link_test
|
|
|
|
<conditional>@link_libtorrent
|
2008-03-23 06:33:47 +01:00
|
|
|
: default-build
|
|
|
|
<threading>multi
|
2008-07-30 08:40:06 +02:00
|
|
|
<invariant-checks>full
|
2008-09-15 17:09:20 +02:00
|
|
|
<debug-iterators>on
|
2013-09-20 16:14:29 +02:00
|
|
|
<link>shared
|
2014-07-06 21:18:00 +02:00
|
|
|
<picker-debugging>on
|
2005-08-15 00:04:58 +02:00
|
|
|
;
|
2005-08-11 13:06:52 +02:00
|
|
|
|
2013-09-03 03:19:42 +02:00
|
|
|
feature launcher : none valgrind : composite ;
|
2014-01-25 23:56:22 +01:00
|
|
|
feature.compose <launcher>valgrind : <testing.launcher>"valgrind --tool=memcheck -v --num-callers=20 --read-var-info=yes --track-origins=yes --error-exitcode=222 --suppressions=valgrind_suppressions.txt" <valgrind>on ;
|
2013-09-03 03:19:42 +02:00
|
|
|
|
2009-04-10 10:40:13 +02:00
|
|
|
test-suite libtorrent :
|
2014-05-04 08:46:47 +02:00
|
|
|
[ run test_socket_io.cpp ]
|
2014-05-03 07:09:21 +02:00
|
|
|
[ run test_utf8.cpp ]
|
2014-05-02 18:11:25 +02:00
|
|
|
[ run test_gzip.cpp ]
|
2013-12-24 09:34:30 +01:00
|
|
|
[ run test_bitfield.cpp ]
|
2014-07-06 21:18:00 +02:00
|
|
|
[ run test_connection_queue.cpp ]
|
|
|
|
[ run test_recheck.cpp ]
|
|
|
|
[ run test_stat_cache.cpp ]
|
|
|
|
[ run test_part_file.cpp ]
|
|
|
|
[ run test_policy.cpp ]
|
2013-11-18 01:56:02 +01:00
|
|
|
[ run test_torrent_info.cpp ]
|
2013-11-01 17:05:48 +01:00
|
|
|
[ run test_time.cpp ]
|
2013-06-09 01:37:11 +02:00
|
|
|
[ run test_file_storage.cpp ]
|
2013-10-10 19:00:32 +02:00
|
|
|
[ run test_priority.cpp ]
|
2012-12-31 07:54:54 +01:00
|
|
|
[ run test_peer_priority.cpp ]
|
2012-06-30 01:10:28 +02:00
|
|
|
[ run test_file.cpp ]
|
2013-06-12 09:57:13 +02:00
|
|
|
[ run test_privacy.cpp ]
|
2010-08-26 19:00:24 +02:00
|
|
|
[ run test_threads.cpp ]
|
2014-07-06 21:18:00 +02:00
|
|
|
[ run test_tailqueue.cpp ]
|
2012-02-20 08:51:36 +01:00
|
|
|
[ run test_rss.cpp ]
|
2009-04-26 02:32:19 +02:00
|
|
|
[ run test_bandwidth_limiter.cpp ]
|
2005-09-14 21:33:16 +02:00
|
|
|
[ run test_buffer.cpp ]
|
2005-08-12 14:40:58 +02:00
|
|
|
[ run test_piece_picker.cpp ]
|
2005-08-11 13:06:52 +02:00
|
|
|
[ run test_bencoding.cpp ]
|
2009-04-26 02:32:19 +02:00
|
|
|
[ run test_fast_extension.cpp ]
|
2007-05-22 22:44:18 +02:00
|
|
|
[ run test_primitives.cpp ]
|
2013-09-01 03:10:50 +02:00
|
|
|
[ run test_http_parser.cpp ]
|
2013-09-01 08:52:50 +02:00
|
|
|
[ run test_packet_buffer.cpp ]
|
2013-09-01 03:10:50 +02:00
|
|
|
[ run test_string.cpp ]
|
2013-09-01 08:52:50 +02:00
|
|
|
[ run test_magnet.cpp ]
|
2013-09-01 03:10:50 +02:00
|
|
|
[ run test_xml.cpp ]
|
2005-08-11 13:06:52 +02:00
|
|
|
[ run test_ip_filter.cpp ]
|
|
|
|
[ run test_hasher.cpp ]
|
2009-09-27 05:38:41 +02:00
|
|
|
[ run test_dht.cpp ]
|
2014-07-06 21:18:00 +02:00
|
|
|
[ run test_block_cache.cpp ]
|
|
|
|
[ run test_peer_classes.cpp ]
|
|
|
|
[ run test_settings_pack.cpp ]
|
|
|
|
[ run test_fence.cpp ]
|
2009-04-26 02:32:19 +02:00
|
|
|
[ run test_storage.cpp ]
|
2013-01-31 04:39:14 +01:00
|
|
|
[ run test_torrent_parse.cpp ]
|
2013-05-31 18:33:06 +02:00
|
|
|
[ run test_session.cpp ]
|
2009-06-29 10:09:32 +02:00
|
|
|
[ run test_upnp.cpp ]
|
2013-11-24 02:32:51 +01:00
|
|
|
[ run test_read_piece.cpp ]
|
2009-04-26 02:32:19 +02:00
|
|
|
|
2013-07-28 17:06:28 +02:00
|
|
|
[ run test_ssl.cpp ]
|
2011-09-17 23:15:42 +02:00
|
|
|
[ run test_tracker.cpp ]
|
2013-01-06 05:53:26 +01:00
|
|
|
[ run test_checking.cpp ]
|
2014-06-15 20:02:59 +02:00
|
|
|
[ run test_url_seed.cpp ]
|
2009-04-26 02:32:19 +02:00
|
|
|
[ run test_web_seed.cpp ]
|
2013-09-30 00:50:06 +02:00
|
|
|
[ run test_web_seed_socks4.cpp ]
|
|
|
|
[ run test_web_seed_socks5.cpp ]
|
|
|
|
[ run test_web_seed_socks5_pw.cpp ]
|
|
|
|
[ run test_web_seed_http.cpp ]
|
|
|
|
[ run test_web_seed_http_pw.cpp ]
|
2013-11-03 19:27:24 +01:00
|
|
|
[ run test_web_seed_chunked.cpp ]
|
|
|
|
[ run test_web_seed_ban.cpp ]
|
2009-04-26 02:32:19 +02:00
|
|
|
[ run test_bdecode_performance.cpp ]
|
|
|
|
[ run test_pe_crypto.cpp ]
|
2014-07-06 21:18:00 +02:00
|
|
|
[ run test_dos_blocker.cpp ]
|
2009-04-26 02:32:19 +02:00
|
|
|
|
2014-03-05 10:37:49 +01:00
|
|
|
[ run test_remap_files.cpp ]
|
2010-11-29 02:33:05 +01:00
|
|
|
[ run test_utp.cpp ]
|
2009-04-26 02:32:19 +02:00
|
|
|
[ run test_auto_unchoke.cpp ]
|
|
|
|
[ run test_http_connection.cpp ]
|
|
|
|
[ run test_torrent.cpp ]
|
|
|
|
[ run test_transfer.cpp ]
|
|
|
|
# [ run test_entry.cpp ]
|
2006-04-25 23:04:48 +02:00
|
|
|
[ run test_metadata_extension.cpp ]
|
2008-11-27 21:51:59 +01:00
|
|
|
[ run test_trackers_extension.cpp ]
|
2007-06-09 01:02:31 +02:00
|
|
|
[ run test_swarm.cpp ]
|
2007-10-01 04:09:12 +02:00
|
|
|
[ run test_lsd.cpp ]
|
2007-12-30 10:36:01 +01:00
|
|
|
[ run test_pex.cpp ]
|
2005-08-11 13:06:52 +02:00
|
|
|
;
|
|
|
|
|