Signed-off-by: yuyan0428 <yuyan12@huawei.com>

Signed-off-by: yuyan0428 <yuyan12@huawei.com>
This commit is contained in:
yuyan0428 2022-08-17 09:08:41 +00:00 committed by Gitee
parent d37c10f1d3
commit c08745e295
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 21 additions and 3 deletions

View File

@ -216,7 +216,7 @@ subsystem # 子系统
EXPECT_EQ(4, actual);
}
```
> **注意:** @tc.require: 格式必须以AR、SR或issus开头AR+AR号、SR+SR号或issue+issue号issueI56WJ7
> **注意:** @tc.require: 格式必须以AR/SR或issue开头 issueI56WJ7
在编写用例时,我们提供了三种用例模板供您选择。
@ -376,7 +376,7 @@ subsystem # 子系统
expect(info != null).assertEqual(true)
})
```
> **注意:** @tc.require: 格式必须以AR、SR或issus开头AR+AR号、SR+SR号或issue+issue号issueI56WJ7
> **注意:** @tc.require: 格式必须以AR/SR或issue开头 issueI56WJ7
**Fuzz测试**
@ -699,6 +699,10 @@ subsystem # 子系统
<version>false</version>
<!-- 是否编译测试用例, 默认为true若已完成编译再执行用例之前可修改为false防止重新编译 -->
<testcase>true</testcase>
<!-- 在编译测试用例的情况下选择编译target_cpu是64位的还是32位的默认为空32bit -->
<parameter>
<target_cpu></target_cpu>
</parameter>
</build>
<environment>
<!-- 配置远程映射机器的IP及端口以支持HDC连接的设备 -->

View File

@ -21,6 +21,10 @@
<version>false</version>
<!-- whether compile test case, default false -->
<testcase>true</testcase>
<!-- whether compile test cpu, default null -->
<parameter>
<target_cpu></target_cpu>
</parameter>
</build>
<environment>
<!-- reserved field, configure devices that support HDC connection -->

View File

@ -250,7 +250,17 @@ class BuildTestcases(object):
command.append("--build-target")
command.append(target)
command.append("--gn-args")
command.append(BUILD_TARGET_PLATFORM % productform)
target_cpu = self.build_parameter_dic.get("target_cpu")
if target_cpu == "arm64":
command.append("use_musl=false")
command.append("--gn-args")
command.append("use_custom_libcxx=true")
command.append("--gn-args")
command.append("use_custom_clang=true")
command.append("--target-cpu")
command.append(target_cpu)
command.append("--ccache")
# command.append(BUILD_TARGET_PLATFORM % productform)
self._delete_testcase_dir(productform)
build_result = self._execute_build_command(productform, command)
self._merge_testcase_dir(productform)