• 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__ = ["ComType", "HostDrivenTestType",
23           "ParserType", "DeviceLiteKernel", "CKit"]
24
25
26@dataclass
27class ComType(object):
28    """
29    ComType enumeration
30    """
31    cmd_com = "cmd"
32    deploy_com = "deploy"
33
34
35@dataclass
36class HostDrivenTestType(object):
37    """
38    HostDrivenType enumeration
39    """
40    device_test = "DeviceTest"
41    windows_test = "WindowsTest"
42
43
44@dataclass
45class ParserType:
46    ctest_lite = "CTestLite"
47    cpp_test_lite = "CppTestLite"
48    cpp_test_list_lite = "CppTestListLite"
49    open_source_test = "OpenSourceTest"
50    build_only_test = "BuildOnlyTestLite"
51    jsuit_test_lite = "JSUnitTestLite"
52
53
54@dataclass
55class DeviceLiteKernel(object):
56    """
57    Lite device os enumeration
58    """
59    linux_kernel = "linux"
60    lite_kernel = "lite"
61
62
63@dataclass
64class CKit:
65    push = "PushKit"
66    liteinstall = "LiteAppInstallKit"
67    command = "CommandKit"
68    config = "ConfigKit"
69    wifi = "WIFIKit"
70    propertycheck = 'PropertyCheckKit'
71    sts = 'STSKit'
72    shell = "ShellKit"
73    deploy = 'DeployKit'
74    mount = 'MountKit'
75    liteuikit = 'LiteUiKit'
76    rootfs = "RootFsKit"
77    liteshell = "LiteShellKit"
78    app_install = "AppInstallKit"
79    deploytool = "DeployToolKit"
80    query = "QueryKit"
81    component = "ComponentKit"
82    permission = "PermissionKit"
83