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

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

Issue 870005: Move gl_Bench into a dep so that it can be re-used among tests (Closed)
Patch Set: Created 10 years, 9 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/deps/glbench/src.orig/yuv2rgb_2.glslv ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/gl_Bench/gl_Bench.py
diff --git a/client/site_tests/gl_Bench/gl_Bench.py b/client/site_tests/gl_Bench/gl_Bench.py
index f82711520e344be47dad3a4fba7fcf134fc8499b..56cab634b58d17cabf93cb4928d94df79be990b4 100644
--- a/client/site_tests/gl_Bench/gl_Bench.py
+++ b/client/site_tests/gl_Bench/gl_Bench.py
@@ -12,13 +12,15 @@ class gl_Bench(test.test):
preserve_srcdir = True
def setup(self):
- os.chdir(self.srcdir)
- utils.system('make clean')
- utils.system('make')
+ self.job.setup_dep(['glbench'])
def run_once(self, options=''):
- exefile = os.path.join(self.bindir, 'gl_Bench')
+ 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/glbench')
cmd = "X :1 & sleep 1; DISPLAY=:1 %s %s; kill $!" % (exefile, options)
self.results = utils.system_output(cmd, retain_output=True)
« no previous file with comments | « client/deps/glbench/src.orig/yuv2rgb_2.glslv ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698