From 98dfb944c3baca05a7e4159bd95563bebb194bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B0=B8=E5=BF=A0?= Date: Mon, 22 Apr 2024 03:02:09 +0000 Subject: [PATCH] moify test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王永忠 --- BUILD.gn | 29 +---------------------------- bundle.json | 4 ++-- test/BUILD.gn | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 30 deletions(-) create mode 100644 test/BUILD.gn diff --git a/BUILD.gn b/BUILD.gn index cab8962..25edab3 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -23,31 +23,4 @@ group("crypto_framework_component") { "plugin:crypto_openssl_plugin_lib", ] } -} - -group("crypto_framework_test") { - testonly = true - if (os_level == "standard") { - deps = [ "test/unittest:crypto_framework_test" ] - } -} - -group("crypto_framework_fuzztest") { - testonly = true - deps = [] - if (os_level == "standard") { - deps += [ - "test/fuzztest/crypto_operation/hcfciphercreate_fuzzer:fuzztest", - "test/fuzztest/crypto_operation/hcfkeyagreementcreate_fuzzer:fuzztest", - "test/fuzztest/crypto_operation/hcfmaccreate_fuzzer:fuzztest", - "test/fuzztest/crypto_operation/hcfmdcreate_fuzzer:fuzztest", - "test/fuzztest/crypto_operation/hcfsigncreate_fuzzer:fuzztest", - "test/fuzztest/crypto_operation/hcfverifycreate_fuzzer:fuzztest", - "test/fuzztest/key/asykeygenerator_fuzzer:fuzztest", - "test/fuzztest/key/dhkeyutil_fuzzer:fuzztest", - "test/fuzztest/key/ecckeyutil_fuzzer:fuzztest", - "test/fuzztest/key/symkeygenerator_fuzzer:fuzztest", - "test/fuzztest/rand/hcfrandcreate_fuzzer:fuzztest", - ] - } -} +} \ No newline at end of file diff --git a/bundle.json b/bundle.json index 66b071d..a032332 100644 --- a/bundle.json +++ b/bundle.json @@ -80,8 +80,8 @@ } ], "test": [ - "//base/security/crypto_framework:crypto_framework_test", - "//base/security/crypto_framework:crypto_framework_fuzztest" + "//base/security/crypto_framework/test:crypto_framework_test", + "//base/security/crypto_framework/test:crypto_framework_fuzztest" ] } } diff --git a/test/BUILD.gn b/test/BUILD.gn new file mode 100644 index 0000000..6461335 --- /dev/null +++ b/test/BUILD.gn @@ -0,0 +1,43 @@ +# Copyright (C) 2024 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +declare_args() { + crypto_framework_enabled = true +} + +group("crypto_framework_test") { + testonly = true + if (os_level == "standard") { + deps = [ "test/unittest:crypto_framework_test" ] + } +} + +group("crypto_framework_fuzztest") { + testonly = true + deps = [] + if (os_level == "standard") { + deps += [ + "test/fuzztest/crypto_operation/hcfciphercreate_fuzzer:fuzztest", + "test/fuzztest/crypto_operation/hcfkeyagreementcreate_fuzzer:fuzztest", + "test/fuzztest/crypto_operation/hcfmaccreate_fuzzer:fuzztest", + "test/fuzztest/crypto_operation/hcfmdcreate_fuzzer:fuzztest", + "test/fuzztest/crypto_operation/hcfsigncreate_fuzzer:fuzztest", + "test/fuzztest/crypto_operation/hcfverifycreate_fuzzer:fuzztest", + "test/fuzztest/key/asykeygenerator_fuzzer:fuzztest", + "test/fuzztest/key/dhkeyutil_fuzzer:fuzztest", + "test/fuzztest/key/ecckeyutil_fuzzer:fuzztest", + "test/fuzztest/key/symkeygenerator_fuzzer:fuzztest", + "test/fuzztest/rand/hcfrandcreate_fuzzer:fuzztest", + ] + } +} -- Gitee