From cef4f191df9210af113044644e787884ca921dc4 Mon Sep 17 00:00:00 2001 From: near330i Date: Mon, 31 Jul 2023 16:55:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?GN=E6=96=87=E4=BB=B6=E6=B7=BB=E5=8A=A0SDV?= =?UTF-8?q?=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 --- ylong_http_client/BUILD.gn | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/ylong_http_client/BUILD.gn b/ylong_http_client/BUILD.gn index 5f73d07..2dfb7ee 100644 --- a/ylong_http_client/BUILD.gn +++ b/ylong_http_client/BUILD.gn @@ -90,3 +90,75 @@ 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 = [] + + 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\"", + ] +} \ No newline at end of file -- Gitee From 34bf285c98e26a59c09352f021c8f8db1f811248 Mon Sep 17 00:00:00 2001 From: near330i Date: Mon, 31 Jul 2023 16:55:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?ylong=5Fhttp=20GN=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=B7=BB=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 | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/ylong_http_client/BUILD.gn b/ylong_http_client/BUILD.gn index 5f73d07..2dfb7ee 100644 --- a/ylong_http_client/BUILD.gn +++ b/ylong_http_client/BUILD.gn @@ -90,3 +90,75 @@ 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 = [] + + 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\"", + ] +} \ No newline at end of file -- Gitee