Skip to content

Commit 819cf83

Browse files
committed
Remove redundant tests
1 parent 5701498 commit 819cf83

File tree

4 files changed

+14
-186
lines changed

4 files changed

+14
-186
lines changed

UnitTest1/unittest1.cpp

Lines changed: 2 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,68 +2554,8 @@ namespace UnitTest1
25542554
Assert::AreEqual(ret, 0);
25552555
}
25562556

2557-
TEST_METHOD(m_unip_basic) {
2558-
int ret = m_unip_basic_test();
2559-
2560-
Assert::AreEqual(ret, 0);
2561-
}
2562-
2563-
TEST_METHOD(m_unip_drop_first) {
2564-
int ret = m_unip_drop_first_test();
2565-
2566-
Assert::AreEqual(ret, 0);
2567-
}
2568-
2569-
TEST_METHOD(m_unip_drop_second) {
2570-
int ret = m_unip_drop_second_test();
2571-
2572-
Assert::AreEqual(ret, 0);
2573-
}
2574-
2575-
TEST_METHOD(m_unip_sat_plus) {
2576-
int ret = m_unip_sat_plus_test();
2577-
2578-
Assert::AreEqual(ret, 0);
2579-
}
2580-
2581-
TEST_METHOD(m_unip_renew) {
2582-
int ret = m_unip_renew_test();
2583-
2584-
Assert::AreEqual(ret, 0);
2585-
}
2586-
2587-
TEST_METHOD(m_unip_rotation) {
2588-
int ret = m_unip_rotation_test();
2589-
2590-
Assert::AreEqual(ret, 0);
2591-
}
2592-
2593-
TEST_METHOD(m_unip_nat) {
2594-
int ret = m_unip_nat_test();
2595-
2596-
Assert::AreEqual(ret, 0);
2597-
}
2598-
2599-
TEST_METHOD(m_unip_standby) {
2600-
int ret = m_unip_standby_test();
2601-
2602-
Assert::AreEqual(ret, 0);
2603-
}
2604-
2605-
TEST_METHOD(m_unip_standup) {
2606-
int ret = m_unip_standup_test();
2607-
2608-
Assert::AreEqual(ret, 0);
2609-
}
2610-
2611-
TEST_METHOD(m_unip_tunnel) {
2612-
int ret = m_unip_tunnel_test();
2613-
2614-
Assert::AreEqual(ret, 0);
2615-
}
2616-
2617-
TEST_METHOD(m_unip_abandon) {
2618-
int ret = m_unip_abandon_test();
2557+
TEST_METHOD(multipath_tunnel) {
2558+
int ret = multipath_tunnel_test();
26192559

26202560
Assert::AreEqual(ret, 0);
26212561
}

picoquic_t/picoquic_t.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -448,17 +448,7 @@ static const picoquic_test_def_t test_table[] = {
448448
{ "multipath_standby", multipath_standby_test },
449449
{ "multipath_standup", multipath_standup_test },
450450
{ "multipath_qlog", multipath_qlog_test },
451-
{ "m_unip_basic", m_unip_basic_test },
452-
{ "m_unip_drop_first", m_unip_drop_first_test },
453-
{ "m_unip_drop_second", m_unip_drop_second_test },
454-
{ "m_unip_sat_plus", m_unip_sat_plus_test },
455-
{ "m_unip_renew", m_unip_renew_test },
456-
{ "m_unip_rotation", m_unip_rotation_test },
457-
{ "m_unip_nat", m_unip_nat_test },
458-
{ "m_unip_standby", m_unip_standby_test },
459-
{ "m_unip_standup", m_unip_standup_test },
460-
{ "m_unip_tunnel", m_unip_tunnel_test },
461-
{ "m_unip_abandon", m_unip_abandon_test },
451+
{ "multipath_tunnel", multipath_tunnel_test },
462452
{ "monopath_0rtt", monopath_0rtt_test },
463453
{ "monopath_0rtt_loss", monopath_0rtt_loss_test },
464454
{ "simple_multipath_basic", simple_multipath_basic_test },

picoquictest/multipath_test.c

Lines changed: 10 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,14 @@ int multipath_qlog_test()
16661666
return multipath_qlog_test_one(0);
16671667
}
16681668

1669+
int multipath_tunnel_test()
1670+
{
1671+
uint64_t max_completion_microsec = 12000000;
1672+
1673+
return multipath_test_one(max_completion_microsec, multipath_test_tunnel, multipath_variant_unique);
1674+
}
1675+
1676+
16691677
/* Simple multipath tests.
16701678
* These are the same as the multipath tests, but using the "simple" multipath option
16711679
* which relies on just on packet number space, instead of the full option
@@ -1900,7 +1908,8 @@ int path_packet_queue_test()
19001908
return ret;
19011909
}
19021910

1903-
/* Unit test of path selection.
1911+
/*
1912+
* TODO: Unit test of path selection.
19041913
* The input to path selections include the state of the path,
19051914
* the status set by the peer, the presence of losses, etc.
19061915
* Each test set up a connection context and two path contexts,
@@ -1929,104 +1938,3 @@ int path_packet_queue_test()
19291938
*
19301939
* TODO: break that into parts that can be verified!
19311940
*/
1932-
/* tests of the "unique path_id" variant */
1933-
1934-
/* Basic multipath test. Set up two links in parallel, verify that both are used and that
1935-
* the overall transmission is shorterthan if only one link was used.
1936-
*/
1937-
1938-
int m_unip_basic_test()
1939-
{
1940-
uint64_t max_completion_microsec = 1060000;
1941-
1942-
return multipath_test_one(max_completion_microsec, multipath_test_basic, multipath_variant_unique);
1943-
}
1944-
1945-
/* Drop first multipath test. Set up two links in parallel, start using them, then
1946-
* drop the first one of them. Check that the transmission succeeds.
1947-
*/
1948-
1949-
int m_unip_drop_first_test()
1950-
{
1951-
uint64_t max_completion_microsec = 1450000;
1952-
1953-
return multipath_test_one(max_completion_microsec, multipath_test_drop_first, multipath_variant_unique);
1954-
}
1955-
1956-
/* Drop second multipath test. Set up two links in parallel, start using them, then
1957-
* drop the second one of them. Check that the transmission succeeds.
1958-
*/
1959-
1960-
int m_unip_drop_second_test()
1961-
{
1962-
uint64_t max_completion_microsec = 1290000;
1963-
1964-
return multipath_test_one(max_completion_microsec, multipath_test_drop_second, multipath_variant_unique);
1965-
}
1966-
1967-
/* Simulate the combination of a satellite link and a low latency low bandwidth
1968-
* terrestrial link
1969-
*/
1970-
int m_unip_sat_plus_test()
1971-
{
1972-
uint64_t max_completion_microsec = 10000000;
1973-
1974-
return multipath_test_one(max_completion_microsec, multipath_test_sat_plus, multipath_variant_unique);
1975-
}
1976-
1977-
/* Test the renewal of the connection ID on a path
1978-
*/
1979-
int m_unip_renew_test()
1980-
{
1981-
uint64_t max_completion_microsec = 3000000;
1982-
1983-
return multipath_test_one(max_completion_microsec, multipath_test_renew, multipath_variant_unique);
1984-
}
1985-
1986-
/* Test key rotation in a multipath setup
1987-
*/
1988-
int m_unip_rotation_test()
1989-
{
1990-
uint64_t max_completion_microsec = 3000000;
1991-
1992-
return multipath_test_one(max_completion_microsec, multipath_test_rotation, multipath_variant_unique);
1993-
}
1994-
1995-
/* Test nat traversal in a multipath setup */
1996-
int m_unip_nat_test()
1997-
{
1998-
uint64_t max_completion_microsec = 3000000;
1999-
2000-
return multipath_test_one(max_completion_microsec, multipath_test_nat, multipath_variant_unique);
2001-
}
2002-
2003-
2004-
int m_unip_standby_test()
2005-
{
2006-
uint64_t max_completion_microsec = 2000000;
2007-
2008-
return multipath_test_one(max_completion_microsec, multipath_test_standby, multipath_variant_unique);
2009-
}
2010-
2011-
int m_unip_standup_test()
2012-
{
2013-
uint64_t max_completion_microsec = 3500000;
2014-
2015-
return multipath_test_one(max_completion_microsec, multipath_test_standup, multipath_variant_unique);
2016-
}
2017-
2018-
int m_unip_tunnel_test()
2019-
{
2020-
uint64_t max_completion_microsec = 12000000;
2021-
2022-
return multipath_test_one(max_completion_microsec, multipath_test_tunnel, multipath_variant_unique);
2023-
}
2024-
2025-
/* Test that abandoned paths are removed after some time
2026-
*/
2027-
int m_unip_abandon_test()
2028-
{
2029-
uint64_t max_completion_microsec = 3800000;
2030-
2031-
return multipath_test_one(max_completion_microsec, multipath_test_abandon, multipath_variant_unique);
2032-
}

picoquictest/picoquictest.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -442,17 +442,7 @@ int multipath_dg_af_test();
442442
int multipath_standby_test();
443443
int multipath_standup_test();
444444
int multipath_qlog_test();
445-
int m_unip_basic_test();
446-
int m_unip_drop_first_test();
447-
int m_unip_drop_second_test();
448-
int m_unip_sat_plus_test();
449-
int m_unip_renew_test();
450-
int m_unip_rotation_test();
451-
int m_unip_nat_test();
452-
int m_unip_standby_test();
453-
int m_unip_standup_test();
454-
int m_unip_tunnel_test();
455-
int m_unip_abandon_test();
445+
int multipath_tunnel_test();
456446
int simple_multipath_basic_test();
457447
int simple_multipath_drop_first_test();
458448
int simple_multipath_drop_second_test();

0 commit comments

Comments
 (0)