Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: client/site_tests/graphics_WindowManagerGraphicsCapture/graphics_WindowManagerGraphicsCapture.py

Issue 1523011: Stubbed in new test: graphics_WindowManagerGraphicsCapture (Closed)
Patch Set: Made two RM lines in Makefile Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/site_tests/graphics_WindowManagerGraphicsCapture/control ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/graphics_WindowManagerGraphicsCapture/graphics_WindowManagerGraphicsCapture.py
diff --git a/client/site_tests/graphics_WindowManagerGraphicsCapture/graphics_WindowManagerGraphicsCapture.py b/client/site_tests/graphics_WindowManagerGraphicsCapture/graphics_WindowManagerGraphicsCapture.py
new file mode 100644
index 0000000000000000000000000000000000000000..ec31881065ae66e6d830ea8da61985acf5b3d2e2
--- /dev/null
+++ b/client/site_tests/graphics_WindowManagerGraphicsCapture/graphics_WindowManagerGraphicsCapture.py
@@ -0,0 +1,50 @@
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import logging, os, re
+
+import os, time
+from autotest_lib.client.bin import site_login, test
+from autotest_lib.client.common_lib import error, utils
+
+class graphics_WindowManagerGraphicsCapture(test.test):
+ version = 1
+
+ def setup(self):
+ site_login.setup_autox(self)
+ self.job.setup_dep(['glbench'])
+
+ def run_once(self, script = 'autox_script.json', is_control = False):
+ logged_in = site_login.logged_in()
+ logging.info('was logged in already: %s' % logged_in)
+
+ if not logged_in:
+ # Test account information embedded into json file.
+ if not site_login.attempt_login(self, script):
+ raise error.TestFail('Could not login')
+
+ # Wait until login complete and window manager is up
+ time.sleep(10)
+
+ #
+ # Run glbench
+ #
+ dep = 'glbench'
+ dep_dir = os.path.join(self.autodir, 'deps', dep)
+ self.job.install_pkg(dep, 'dep', dep_dir)
+
+ exefile = os.path.join(self.autodir, 'deps/glbench/windowmanagertest')
+
+ # Enable running in window manager
+ exefile = ('chvt 1 && DISPLAY=:0 XAUTHORITY=/home/chronos/.Xauthority '
+ + exefile)
+
+ options = "--seconds_to_run 10"
+ cmd = "%s %s" % (exefile, options)
+ logging.info("command launched: %s" % cmd)
+ self.results = utils.system_output(cmd, retain_output=True)
+
+ # If we started logged out, log back out.
+ if not logged_in:
+ site_login.attempt_logout()
« no previous file with comments | « client/site_tests/graphics_WindowManagerGraphicsCapture/control ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698