diff --git a/ylong_http_client/BUILD.gn b/ylong_http_client/BUILD.gn index 5f73d07f81996806ec44d8c70dbb23b7bb331fe1..50e7331020c1e7f2323d77411fb2555d2d09e99f 100644 --- a/ylong_http_client/BUILD.gn +++ b/ylong_http_client/BUILD.gn @@ -90,3 +90,67 @@ ohos_rust_unittest("rust_ylong_http_client_unit_test") { "--cfg=feature=\"tokio_base\"", ] } + +ohos_rust_systemtest("rust_ylong_http_client_sync_http_c_ssl") { + module_out_path = "commonlibrary/rust/ylong_http" + sources = [ "tests/sdv_sync_http_c_ssl.rs" ] + deps = [ ":ylong_http_client" ] + + rustflags = [ + "--cfg=feature=\"default\"", + "--cfg=feature=\"async\"", + "--cfg=feature=\"http1_1\"", + "--cfg=feature=\"c_openssl_3_0\"", + "--cfg=feature=\"__tls\"", + "--cfg=feature=\"__c_openssl\"", + "--cfg=feature=\"tokio_base\"", + ] +} + +ohos_rust_systemtest("rust_ylong_http_client_async_http_c_ssl") { + module_out_path = "commonlibrary/rust/ylong_http" + sources = [ "tests/sdv_async_http_c_ssl.rs" ] + deps = [ ":ylong_http_client" ] + + rustflags = [ + "--cfg=feature=\"default\"", + "--cfg=feature=\"async\"", + "--cfg=feature=\"http1_1\"", + "--cfg=feature=\"c_openssl_3_0\"", + "--cfg=feature=\"__tls\"", + "--cfg=feature=\"__c_openssl\"", + "--cfg=feature=\"tokio_base\"", + ] +} + +ohos_rust_systemtest("rust_ylong_http_client_async_http") { + module_out_path = "commonlibrary/rust/ylong_http" + sources = [ "tests/sdv_async_http.rs" ] + deps = [ ":ylong_http_client" ] + + rustflags = [ + "--cfg=feature=\"default\"", + "--cfg=feature=\"async\"", + "--cfg=feature=\"http1_1\"", + "--cfg=feature=\"c_openssl_3_0\"", + "--cfg=feature=\"__tls\"", + "--cfg=feature=\"__c_openssl\"", + "--cfg=feature=\"tokio_base\"", + ] +} + +ohos_rust_systemtest("rust_ylong_http_client_sync_http") { + module_out_path = "commonlibrary/rust/ylong_http" + sources = [ "tests/sdv_sync_http.rs" ] + deps = [ ":ylong_http_client" ] + + rustflags = [ + "--cfg=feature=\"default\"", + "--cfg=feature=\"async\"", + "--cfg=feature=\"http1_1\"", + "--cfg=feature=\"c_openssl_3_0\"", + "--cfg=feature=\"__tls\"", + "--cfg=feature=\"__c_openssl\"", + "--cfg=feature=\"tokio_base\"", + ] +}