From 1bda3fe6b23b2a60d355ddc646bad0ff1740c3cf Mon Sep 17 00:00:00 2001 From: near330i Date: Mon, 31 Jul 2023 19:46:33 +0800 Subject: [PATCH] =?UTF-8?q?ylong=5Fhttp=20GN=E6=96=87=E4=BB=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0SDV=E6=B5=8B=E8=AF=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: near330i --- ylong_http_client/BUILD.gn | 64 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/ylong_http_client/BUILD.gn b/ylong_http_client/BUILD.gn index 5f73d07..50e7331 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\"", + ] +} -- Gitee