aboutsummaryrefslogtreecommitdiff
path: root/scripts/schemavalidation/desc.schema.json
blob: 226fc6804f771d9157a5e7b5214035a954bdacd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
 {
    "$comment": "Copyright (c) 2023, ARM Limited.",
    "$comment": "SPDX-License-Identifier: Apache-2.0",
    "$id": "desc.schema.json",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "desc",
    "description": "Test description",
    "type": "object",
    "properties": {
        "tosa_file": {
            "description": "tosa flatbuffer file",
            "type": "string"
        },
        "ifm_name": {
            "description": "list of input tensors",
            "type": "array",
            "items": {
                "description": "tensor name",
                "type": "string"
            }
        },
        "ifm_file": {
            "description": "list of input files, one for each tensor in ifm_name",
            "type": "array",
            "items": {
                "description": "file name",
                "type": "string"
            }
        },
        "ofm_name": {
            "description": "list of output tensors",
            "type": "array",
            "minItems": 1,
            "items": {
                "description": "tensor name",
                "type": "string"
            }
        },
        "ofm_file": {
            "description": "list of output files, one for each tensor in ofm_name",
            "type": "array",
            "minItems": 1,
            "items": {
                "description": "file name",
                "type": "string"
            }
        },
        "expected_failure": {
            "description": "if the test is expected to fail - used for test filtering",
            "type": "boolean"
        },
        "expected_failure_desc": {
            "description": "summary of expected failure test",
            "type": "string"
        },
        "expected_return_code": {
            "description": "DEPRECATED (unused): expected return code from ref-model",
            "type": "integer"
        },
        "expected_result_file": {
            "description": "DEPRECATED: list of expected result files, one for each tensor in ofm_name",
            "type": "array",
            "minItems": 1,
            "items": {
                "description": "file name",
                "type": "string"
            }
        },
        "profile": {
            "description": "list of profiles this test is valid for",
            "type": "array",
            "minItems": 1,
            "items": {
                "description": "profile name - tosa_bi or tosa_mi",
                "type": "string"
            }
        },
        "tags": {
            "description": "list of string tags that can be used for test filtering",
            "type": "array",
            "items": {
                "description": "test tag for filtering",
                "type": "string"
            }
        },
        "meta": {
            "description": "meta-data for test libraries",
            "type": "object",
            "properties":
            {
                "data_gen": {
                    "description": "data generation meta-data",
                    "$ref": "datagen-config.schema.json"
                },
                "compliance": {
                    "description": "compliance meta-data",
                    "$ref": "compliance-config.schema.json"
                }
            },
            "additionalProperties": false
        }
    },
    "additionalProperties": false,
    "required": [
        "tosa_file",
        "ifm_name",
        "ifm_file",
        "ofm_name",
        "ofm_file"
    ]
}