mirror of
https://gitee.com/openharmony/test_developertest
synced 2024-11-23 13:09:52 +00:00
Signed-off-by: yuyan0428 <yuyan12@huawei.com>
Signed-off-by: yuyan0428 <yuyan12@huawei.com>
This commit is contained in:
parent
d37c10f1d3
commit
c08745e295
@ -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连接的设备 -->
|
||||
|
@ -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 -->
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user