OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import logging, os, re | 5 import logging, os, re |
6 from autotest_lib.client.bin import utils | 6 from autotest_lib.client.bin import utils |
7 from autotest_lib.client.common_lib import error | 7 from autotest_lib.client.common_lib import error |
8 from autotest_lib.client.cros import ui, ui_test | 8 from autotest_lib.client.cros import cros_ui_test, ui |
9 | 9 |
10 class graphics_GLAPICheck(ui_test.UITest): | 10 class graphics_GLAPICheck(cros_ui_test.UITest): |
11 version = 1 | 11 version = 1 |
12 preserve_srcdir = True | 12 preserve_srcdir = True |
13 error_message = "" | 13 error_message = "" |
14 | 14 |
15 | 15 |
16 def setup(self): | 16 def setup(self): |
17 os.chdir(self.srcdir) | 17 os.chdir(self.srcdir) |
18 utils.make('clean') | 18 utils.make('clean') |
19 utils.make('all') | 19 utils.make('all') |
20 | 20 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 self.error_message) | 171 self.error_message) |
172 else: | 172 else: |
173 raise error.TestFail('gles_APICheck error: ' + result) | 173 raise error.TestFail('gles_APICheck error: ' + result) |
174 | 174 |
175 # Check X11 extensions. | 175 # Check X11 extensions. |
176 self.error_message = "" | 176 self.error_message = "" |
177 check_result = self.__check_x_extensions(result) | 177 check_result = self.__check_x_extensions(result) |
178 if not check_result: | 178 if not check_result: |
179 raise error.TestFail('X extensions insufficient:' + | 179 raise error.TestFail('X extensions insufficient:' + |
180 self.error_message) | 180 self.error_message) |
OLD | NEW |