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) |