1/*
2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * define the testcase type : TestType, Size , Level
18 */
19export const TAG = '[Hypium]';
20
21export const DEFAULT = 0B0000;
22
23export class PrintTag {
24    static OHOS_REPORT_WORKER_STATUS = 'OHOS_REPORT_WORKER_STATUS';
25    static OHOS_REPORT_ALL_RESULT = 'OHOS_REPORT_ALL_RESULT';
26    static OHOS_REPORT_ALL_CODE = 'OHOS_REPORT_ALL_CODE';
27    static OHOS_REPORT_ALL_STATUS = 'OHOS_REPORT_ALL_STATUS';
28    static OHOS_REPORT_RESULT = 'OHOS_REPORT_RESULT';
29    static OHOS_REPORT_CODE = 'OHOS_REPORT_CODE';
30    static OHOS_REPORT_STATUS = 'OHOS_REPORT_STATUS';
31    static OHOS_REPORT_SUM = 'OHOS_REPORT_SUM';
32    static OHOS_REPORT_STATUS_CODE = 'OHOS_REPORT_STATUS_CODE';
33};
34
35export class TestType {
36    static FUNCTION = 0B1;
37    static PERFORMANCE = 0B1 << 1;
38    static POWER = 0B1 << 2;
39    static RELIABILITY = 0B1 << 3;
40    static SECURITY = 0B1 << 4;
41    static GLOBAL = 0B1 << 5;
42    static COMPATIBILITY = 0B1 << 6;
43    static USER = 0B1 << 7;
44    static STANDARD = 0B1 << 8;
45    static SAFETY = 0B1 << 9;
46    static RESILIENCE = 0B1 << 10;
47};
48
49export class Size {
50    static SMALLTEST = 0B1 << 16;
51    static MEDIUMTEST = 0B1 << 17;
52    static LARGETEST = 0B1 << 18;
53};
54
55export class Level {
56    static LEVEL0 = 0B1 << 24;
57    static LEVEL1 = 0B1 << 25;
58    static LEVEL2 = 0B1 << 26;
59    static LEVEL3 = 0B1 << 27;
60    static LEVEL4 = 0B1 << 28;
61};
62
63export const TESTTYPE = {
64    'function': 1,
65    'performance': 1 << 1,
66    'power': 1 << 2,
67    'reliability': 1 << 3,
68    'security': 1 << 4,
69    'global': 1 << 5,
70    'compatibility': 1 << 6,
71    'user': 1 << 7,
72    'standard': 1 << 8,
73    'safety': 1 << 9,
74    'resilience': 1 << 10,
75};
76
77export const LEVEL = {
78    '0': 1 << 24,
79    '1': 1 << 25,
80    '2': 1 << 26,
81    '3': 1 << 27,
82    '4': 1 << 28,
83};
84
85export const SIZE = {
86    'small': 1 << 16,
87    'medium': 1 << 17,
88    'large': 1 << 18,
89};
90
91export const KEYSET = [
92    '-s class', '-s notClass', '-s suite', '-s itName',
93    '-s level', '-s testType', '-s size', '-s timeout',
94    '-s dryRun', '-s random', '-s breakOnError', '-s stress',
95    '-s coverage', '-s skipMessage', '-s runSkipped',
96    'class', 'notClass', 'suite', 'itName',
97    'level', 'testType', 'size', 'timeout', 'dryRun', 'random',
98    'breakOnError', 'stress', 'coverage', 'skipMessage', 'runSkipped'
99];
100