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

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

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

Powered by Google App Engine
This is Rietveld 408576698