separate some more test cases to improve test output

This commit is contained in:
arvidn 2015-06-17 00:50:58 -04:00
parent 8d408c4c86
commit f7de7abec0
5 changed files with 95 additions and 40 deletions

View File

@ -38,14 +38,25 @@ using namespace libtorrent;
const int proxy = libtorrent::settings_pack::none; const int proxy = libtorrent::settings_pack::none;
TORRENT_TEST(web_seed_ban)
{
for (int url_seed = 0; url_seed < 2; ++url_seed)
{
#ifdef TORRENT_USE_OPENSSL #ifdef TORRENT_USE_OPENSSL
run_http_suite(proxy, "https", url_seed, 0, 1); TORRENT_TEST(http_seed_ssl)
#endif {
run_http_suite(proxy, "http", url_seed, 0, 1); run_http_suite(proxy, "https", 0, 0, 1);
} }
TORRENT_TEST(url_seed_ssl)
{
run_http_suite(proxy, "https", 1, 0, 1);
}
#endif
TORRENT_TEST(http_seed)
{
run_http_suite(proxy, "http", 0, 0, 1);
}
TORRENT_TEST(url_seed)
{
run_http_suite(proxy, "http", 1, 0, 1);
} }

View File

@ -38,14 +38,25 @@ using namespace libtorrent;
const int proxy = libtorrent::settings_pack::none; const int proxy = libtorrent::settings_pack::none;
TORRENT_TEST(web_seed_chunked)
{
for (int url_seed = 0; url_seed < 2; ++url_seed)
{
#ifdef TORRENT_USE_OPENSSL #ifdef TORRENT_USE_OPENSSL
run_http_suite(proxy, "https", url_seed, 1, 0); TORRENT_TEST(web_seed_ssl)
#endif {
run_http_suite(proxy, "http", url_seed, 1, 0); run_http_suite(proxy, "https", 0, 1, 0);
} }
TORRENT_TEST(url_seed_ssl)
{
run_http_suite(proxy, "https", 1, 1, 0);
}
#endif
TORRENT_TEST(web_seed_ssl)
{
run_http_suite(proxy, "http", 0, 1, 0);
}
TORRENT_TEST(url_seed_ssl)
{
run_http_suite(proxy, "http", 1, 1, 0);
} }

View File

@ -38,14 +38,25 @@ using namespace libtorrent;
const int proxy = libtorrent::settings_pack::socks4; const int proxy = libtorrent::settings_pack::socks4;
TORRENT_TEST(web_seed_socks4)
{
for (int url_seed = 0; url_seed < 2; ++url_seed)
{
#ifdef TORRENT_USE_OPENSSL #ifdef TORRENT_USE_OPENSSL
run_http_suite(proxy, "https", url_seed); TORRENT_TEST(http_seed_ssl)
#endif {
run_http_suite(proxy, "http", url_seed); run_http_suite(proxy, "https", 0);
} }
TORRENT_TEST(url_seed_ssl)
{
run_http_suite(proxy, "https", 1);
}
#endif
TORRENT_TEST(http_seed)
{
run_http_suite(proxy, "http", 0);
}
TORRENT_TEST(url_seed)
{
run_http_suite(proxy, "http", 1);
} }

View File

@ -38,14 +38,25 @@ using namespace libtorrent;
const int proxy = libtorrent::settings_pack::socks5; const int proxy = libtorrent::settings_pack::socks5;
TORRENT_TEST(web_seed_socks5)
{
for (int url_seed = 0; url_seed < 2; ++url_seed)
{
#ifdef TORRENT_USE_OPENSSL #ifdef TORRENT_USE_OPENSSL
run_http_suite(proxy, "https", url_seed); TORRENT_TEST(http_seed_ssl)
#endif {
run_http_suite(proxy, "http", url_seed); run_http_suite(proxy, "https", 0);
} }
TORRENT_TEST(url_seed_ssl)
{
run_http_suite(proxy, "https", 1);
}
#endif
TORRENT_TEST(http_seed)
{
run_http_suite(proxy, "http", 0);
}
TORRENT_TEST(url_seed)
{
run_http_suite(proxy, "http", 1);
} }

View File

@ -38,14 +38,25 @@ using namespace libtorrent;
const int proxy = libtorrent::settings_pack::socks5_pw; const int proxy = libtorrent::settings_pack::socks5_pw;
TORRENT_TEST(web_seed_socks5_pw)
{
for (int url_seed = 0; url_seed < 2; ++url_seed)
{
#ifdef TORRENT_USE_OPENSSL #ifdef TORRENT_USE_OPENSSL
run_http_suite(proxy, "https", url_seed); TORRENT_TEST(http_seed_ssl)
#endif {
run_http_suite(proxy, "http", url_seed); run_http_suite(proxy, "https", 0);
} }
TORRENT_TEST(url_seed_ssl)
{
run_http_suite(proxy, "https", 1);
}
#endif
TORRENT_TEST(http_seed)
{
run_http_suite(proxy, "http", 0);
}
TORRENT_TEST(url_seed)
{
run_http_suite(proxy, "http", 1);
} }