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

Side by Side Diff: client/tests/aio_dio_bugs/aio_dio_bugs.py

Issue 3554003: Merge remote branch 'cros/upstream' into tempbranch3 (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/samples/filesystem ('k') | client/tests/bash_shared_mapping/bash_shared_mapping.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import os 1 import os
2 from autotest_lib.client.bin import test, utils 2 from autotest_lib.client.bin import test, utils
3 3
4 4
5 # tests is a simple array of "cmd" "arguments" 5 # tests is a simple array of "cmd" "arguments"
6 tests = [["aio-dio-invalidate-failure", "poo"], 6 tests = [["aio-dio-invalidate-failure", "poo"],
7 ["aio-dio-subblock-eof-read", "eoftest"], 7 ["aio-dio-subblock-eof-read", "eoftest"],
8 ["aio-free-ring-with-bogus-nr-pages", ""], 8 ["aio-free-ring-with-bogus-nr-pages", ""],
9 ["aio-io-setup-with-nonwritable-context-pointer", ""], 9 ["aio-io-setup-with-nonwritable-context-pointer", ""],
10 ["aio-dio-extend-stat", "file"], 10 ["aio-dio-extend-stat", "file"],
11 ] 11 ]
12 name = 0 12 name = 0
13 arglist = 1 13 arglist = 1
14 14
15 class aio_dio_bugs(test.test): 15 class aio_dio_bugs(test.test):
16 version = 5 16 version = 5
17 preserve_srcdir = True 17 preserve_srcdir = True
18 18
19 def initialize(self): 19 def initialize(self):
20 self.job.require_gcc() 20 self.job.require_gcc()
21 self.job.setup_dep(['libaio']) 21 self.job.setup_dep(['libaio'])
22 ldflags = '-L ' + self.autodir + '/deps/libaio/lib' 22 ldflags = '-L ' + self.autodir + '/deps/libaio/lib'
23 cflags = '-I ' + self.autodir + '/deps/libaio/include' 23 cflags = '-I ' + self.autodir + '/deps/libaio/include'
24 self.gcc_flags = ldflags + ' ' + cflags 24 self.gcc_flags = ldflags + ' ' + cflags
25 25
26 26
27 def setup(self): 27 def setup(self):
28 os.chdir(self.srcdir) 28 os.chdir(self.srcdir)
29 utils.system('make ' + '"CFLAGS=' + self.gcc_flags + '"') 29 utils.make('"CFLAGS=' + self.gcc_flags + '"')
30 30
31 31
32 def execute(self, args = ''): 32 def execute(self, args = ''):
33 os.chdir(self.tmpdir) 33 os.chdir(self.tmpdir)
34 libs = self.autodir + '/deps/libaio/lib/' 34 libs = self.autodir + '/deps/libaio/lib/'
35 ld_path = utils.prepend_path(libs, 35 ld_path = utils.prepend_path(libs,
36 utils.environ('LD_LIBRARY_PATH')) 36 utils.environ('LD_LIBRARY_PATH'))
37 var_ld_path = 'LD_LIBRARY_PATH=' + ld_path 37 var_ld_path = 'LD_LIBRARY_PATH=' + ld_path
38 for test in tests: 38 for test in tests:
39 cmd = self.srcdir + '/' + test[name] + ' ' + args + ' ' \ 39 cmd = self.srcdir + '/' + test[name] + ' ' + args + ' ' \
40 + test[arglist] 40 + test[arglist]
41 utils.system(var_ld_path + ' ' + cmd) 41 utils.system(var_ld_path + ' ' + cmd)
OLDNEW
« no previous file with comments | « client/samples/filesystem ('k') | client/tests/bash_shared_mapping/bash_shared_mapping.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698