• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python3
2# coding=utf-8
3
4#
5# Copyright (c) 2020-2022 Huawei Device Co., Ltd.
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10#     http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18
19from dataclasses import dataclass
20
21
22__all__ = ["Constant", "ComType", "HostDrivenTestType",
23           "ParserType", "DeviceLiteKernel", "CKit"]
24
25
26class Constant:
27    PRODUCT_PARAM_START = r"To Obtain Product Params Start"
28    PRODUCT_PARAM_END = r"To Obtain Product Params End"
29
30
31@dataclass
32class ComType(object):
33    """
34    ComType enumeration
35    """
36    cmd_com = "cmd"
37    deploy_com = "deploy"
38
39
40@dataclass
41class HostDrivenTestType(object):
42    """
43    HostDrivenType enumeration
44    """
45    device_test = "DeviceTest"
46    windows_test = "WindowsTest"
47
48
49@dataclass
50class ParserType:
51    ctest_lite = "CTestLite"
52    cpp_test_lite = "CppTestLite"
53    cpp_test_list_lite = "CppTestListLite"
54    open_source_test = "OpenSourceTest"
55    build_only_test = "BuildOnlyTestLite"
56    jsuit_test_lite = "JSUnitTestLite"
57
58
59@dataclass
60class DeviceLiteKernel(object):
61    """
62    Lite device os enumeration
63    """
64    linux_kernel = "linux"
65    lite_kernel = "lite"
66
67
68@dataclass
69class CKit:
70    push = "PushKit"
71    liteinstall = "LiteAppInstallKit"
72    command = "CommandKit"
73    config = "ConfigKit"
74    wifi = "WIFIKit"
75    propertycheck = 'PropertyCheckKit'
76    sts = 'STSKit'
77    shell = "ShellKit"
78    deploy = 'DeployKit'
79    mount = 'MountKit'
80    liteuikit = 'LiteUiKit'
81    rootfs = "RootFsKit"
82    liteshell = "LiteShellKit"
83    app_install = "AppInstallKit"
84    deploytool = "DeployToolKit"
85    query = "QueryKit"
86    component = "ComponentKit"
87    permission = "PermissionKit"
88    smartperf = "SmartPerfKit"
89