@@ -1666,6 +1666,14 @@ int multipath_qlog_test()
1666
1666
return multipath_qlog_test_one (0 );
1667
1667
}
1668
1668
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
+
1669
1677
/* Simple multipath tests.
1670
1678
* These are the same as the multipath tests, but using the "simple" multipath option
1671
1679
* which relies on just on packet number space, instead of the full option
@@ -1900,7 +1908,8 @@ int path_packet_queue_test()
1900
1908
return ret ;
1901
1909
}
1902
1910
1903
- /* Unit test of path selection.
1911
+ /*
1912
+ * TODO: Unit test of path selection.
1904
1913
* The input to path selections include the state of the path,
1905
1914
* the status set by the peer, the presence of losses, etc.
1906
1915
* Each test set up a connection context and two path contexts,
@@ -1929,104 +1938,3 @@ int path_packet_queue_test()
1929
1938
*
1930
1939
* TODO: break that into parts that can be verified!
1931
1940
*/
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
- }
0 commit comments