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

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

Issue 6551020: Merge remote branch 'autotest-upstream/master' into try-box1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 10 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/tests/netperf2/netperf2.py ('k') | client/tests/signaltest/Makefile » ('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 2 from autotest_lib.client.bin import test, utils
3 from autotest_lib.client.common_lib import utils
4 3
5 4
6 # tests is a simple array of "cmd" "arguments" 5 # tests is a simple array of "cmd" "arguments"
7 tests = [["rmaptest", "-h -i100 -n100 -s100 -t100 -V10 -v file1.dat"], 6 tests = [["rmaptest", "-h -i100 -n100 -s100 -t100 -V10 -v file1.dat"],
8 ["rmaptest", "-l -i100 -n100 -s100 -t100 -V10 -v file2.dat"], 7 ["rmaptest", "-l -i100 -n100 -s100 -t100 -V10 -v file2.dat"],
9 ["rmaptest", "-r -i100 -n100 -s100 -t100 -V10 -v file3.dat"], 8 ["rmaptest", "-r -i100 -n100 -s100 -t100 -V10 -v file3.dat"],
10 ] 9 ]
11 name = 0 10 name = 0
12 arglist = 1 11 arglist = 1
13 12
14 class rmaptest(test.test): 13 class rmaptest(test.test):
15 version = 1 14 version = 1
16 preserve_srcdir = True 15 preserve_srcdir = True
17 16
18 def initialize(self): 17 def initialize(self):
19 self.job.require_gcc() 18 self.job.require_gcc()
20 19
21 20
22 def setup(self): 21 def setup(self):
23 os.chdir(self.srcdir) 22 os.chdir(self.srcdir)
24 utils.system(utils.get_cc() + ' -Wall -o rmaptest rmap-test.c') 23 utils.system(utils.get_cc() + ' -Wall -o rmaptest rmap-test.c')
25 24
26 25
27 def execute(self, args = ''): 26 def execute(self, args = ''):
28 os.chdir(self.tmpdir) 27 os.chdir(self.tmpdir)
29 for test in tests: 28 for test in tests:
30 cmd = '%s/%s %s %s' % (self.srcdir, test[name], args, test[arglist]) 29 cmd = '%s/%s %s %s' % (self.srcdir, test[name], args, test[arglist])
31 utils.system(cmd) 30 utils.system(cmd)
OLDNEW
« no previous file with comments | « client/tests/netperf2/netperf2.py ('k') | client/tests/signaltest/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698