diff options
author | 2023-10-01 17:50:15 +0800 | |
---|---|---|
committer | 2023-10-01 17:50:15 +0800 | |
commit | 2ccb386cea31bcacda2105500d9cec58495a2ebe (patch) | |
tree | 3aeb064718fbface83a4ebbbc8d8ac62c7687ba5 | |
parent | 97541afaedcc465e12a8305b4b5623a9fc95bd17 (diff) | |
download | rathole-2ccb386cea31bcacda2105500d9cec58495a2ebe.tar.gz rathole-2ccb386cea31bcacda2105500d9cec58495a2ebe.tar.zst rathole-2ccb386cea31bcacda2105500d9cec58495a2ebe.zip |
chore(test): update to be feature aware
-rw-r--r-- | tests/integration_test.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 807f6fb..3b8dec9 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -57,10 +57,17 @@ async fn tcp() -> Result<()> { test("tests/for_tcp/tcp_transport.toml", Type::Tcp).await?; // FIXME: Self-signed certificate on Mac requires mannual interference. Disable CI for now #[cfg(not(target_os = "macos"))] + #[cfg(feature="tls")] test("tests/for_tcp/tls_transport.toml", Type::Tcp).await?; + + #[cfg(feature="noise")] test("tests/for_tcp/noise_transport.toml", Type::Tcp).await?; + + #[cfg(feature="websocket")] test("tests/for_tcp/websocket_transport.toml", Type::Tcp).await?; + #[cfg(not(target_os = "macos"))] + #[cfg(feature="websocket")] test("tests/for_tcp/websocket_tls_transport.toml", Type::Tcp).await?; Ok(()) @@ -87,10 +94,17 @@ async fn udp() -> Result<()> { test("tests/for_udp/tcp_transport.toml", Type::Udp).await?; // See above #[cfg(not(target_os = "macos"))] + #[cfg(feature="tls")] test("tests/for_udp/tls_transport.toml", Type::Udp).await?; + + #[cfg(feature="noise")] test("tests/for_udp/noise_transport.toml", Type::Udp).await?; + + #[cfg(feature="websocket")] test("tests/for_udp/websocket_transport.toml", Type::Udp).await?; + #[cfg(not(target_os = "macos"))] + #[cfg(feature="websocket")] test("tests/for_udp/websocket_tls_transport.toml", Type::Udp).await?; Ok(()) |