fix the spelling in whole piglit
[piglit.git] / unittests / framework / backends / shared.py
blob8dd00c040d34d140b9eb0b253ad5988e7e0a1f09
1 # encoding=utf-8
2 # Copyright © 2016, 2019 Intel Corporation
4 # Permission is hereby granted, free of charge, to any person obtaining a copy
5 # of this software and associated documentation files (the "Software"), to deal
6 # in the Software without restriction, including without limitation the rights
7 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 # copies of the Software, and to permit persons to whom the Software is
9 # furnished to do so, subject to the following conditions:
11 # The above copyright notice and this permission notice shall be included in
12 # all copies or substantial portions of the Software.
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 # SOFTWARE.
22 """Shared data for backend tests."""
24 from framework.options import OPTIONS
27 INITIAL_METADATA = {
28 'name': 'name',
29 'options': dict(OPTIONS),
30 'info': {
31 'system': {}
35 # This is current JSON data, in raw form with only the minimum required
36 # changes. This does not contain piglit specific objects, only strings, floats,
37 # ints, and Nones (instead of JSON's null)
38 JSON = {
39 "results_version": 10,
40 "time_elapsed": {
41 "start": 1469638791.2351687,
42 "__type__": "TimeAttribute",
43 "end": 1469638791.4387212
45 "tests": {
46 "spec@!opengl 1.0@gl-1.0-readpixsanity": {
47 "dmesg": "",
48 "traceback": None,
49 "err": "piglit: error: waffle_display_connect failed due to "
50 "WAFFLE_ERROR_UNKNOWN: open drm file for gbm failed\n",
51 "subtests": {
52 "__type__": "Subtests"
54 "out": "",
55 "exception": None,
56 "command": "/home/user/source/piglit/bin/gl-1.0-readpixsanity "
57 "-auto -fbo",
58 "time": {
59 "start": 1469638791.2383287,
60 "__type__": "TimeAttribute",
61 "end": 1469638791.2439244
63 "images": [
65 "image_desc": "gl-1.0-readpixsanity images",
66 "image_ref": "/home/user/source/gl-1.0-readpixsanity-results/ref.png",
67 "image_render": "/home/user/source/gl-1.0-readpixsanity-results/render.png"
70 "pid": [11768],
71 "__type__": "TestResult",
72 "returncode": 1,
73 "result": "fail",
74 "environment": ("PIGLIT_SOURCE_DIR=\"/home/user/source/piglit\" "
75 " PIGLIT_PLATFORM=\"gbm\"")
78 "options": {
79 "dmesg": False,
80 "concurrent": "some",
81 "include_filter": [],
82 "monitored": False,
83 "execute": True,
84 "valgrind": False,
85 "profile": [
86 "sanity"
88 "log_level": "quiet",
89 "env": {
90 "PIGLIT_SOURCE_DIR": "/home/user/source/piglit",
91 "PIGLIT_PLATFORM": "gbm"
93 "platform": "gbm",
94 "sync": False,
95 "exclude_tests": [],
96 "exclude_filter": []
98 "name": "foo",
99 "__type__": "TestrunResult",
100 "info": {
101 "system": {
102 "lspci": "00:00.0 Host bridge...",
105 "totals": {
106 "spec": {
107 '__type__': 'Totals',
108 "warn": 0,
109 "timeout": 0,
110 "skip": 0,
111 "crash": 0,
112 "pass": 0,
113 "fail": 1,
114 "dmesg-warn": 0,
115 "incomplete": 0,
116 "notrun": 0,
117 "dmesg-fail": 0
119 "": {
120 '__type__': 'Totals',
121 "warn": 0,
122 "timeout": 0,
123 "skip": 0,
124 "crash": 0,
125 "pass": 0,
126 "fail": 1,
127 "dmesg-warn": 0,
128 "incomplete": 0,
129 "notrun": 0,
130 "dmesg-fail": 0
132 "spec@!opengl 1.0": {
133 '__type__': 'Totals',
134 "warn": 0,
135 "timeout": 0,
136 "skip": 0,
137 "crash": 0,
138 "pass": 0,
139 "fail": 1,
140 "dmesg-warn": 0,
141 "incomplete": 0,
142 "notrun": 0,
143 "dmesg-fail": 0
145 "root": {
146 '__type__': 'Totals',
147 "warn": 0,
148 "timeout": 0,
149 "skip": 0,
150 "crash": 0,
151 "pass": 0,
152 "fail": 1,
153 "dmesg-warn": 0,
154 "incomplete": 0,
155 "notrun": 0,
156 "dmesg-fail": 0