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

Side by Side Diff: client/tests/ebizzy/ebizzy.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/tests/dbt2/dbt2.py ('k') | client/tests/flail/control » ('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 utils, test 2 from autotest_lib.client.bin import utils, test
3 from autotest_lib.client.common_lib import error 3 from autotest_lib.client.common_lib import error
4 4
5 class ebizzy(test.test): 5 class ebizzy(test.test):
6 version = 3 6 version = 3
7 7
8 def initialize(self): 8 def initialize(self):
9 self.job.require_gcc() 9 self.job.require_gcc()
10 10
11 11
12 # http://sourceforge.net/project/downloading.php?group_id=202378&filename=eb izzy-0.3.tar.gz 12 # http://sourceforge.net/project/downloading.php?group_id=202378&filename=eb izzy-0.3.tar.gz
13 def setup(self, tarball='ebizzy-0.3.tar.gz'): 13 def setup(self, tarball='ebizzy-0.3.tar.gz'):
14 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) 14 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
15 utils.extract_tarball_to_dir(tarball, self.srcdir) 15 utils.extract_tarball_to_dir(tarball, self.srcdir)
16 os.chdir(self.srcdir) 16 os.chdir(self.srcdir)
17 17
18 utils.system('[ -x configure ] && ./configure') 18 utils.system('[ -x configure ] && ./configure')
19 utils.system('make') 19 utils.make()
20 20
21 21
22 # Note: default we use always mmap() 22 # Note: default we use always mmap()
23 def run_once(self, args='', num_chunks=1000, chunk_size=512000, 23 def run_once(self, args='', num_chunks=1000, chunk_size=512000,
24 seconds=100, num_threads=100): 24 seconds=100, num_threads=100):
25 25
26 #TODO: Write small functions which will choose many of the above 26 #TODO: Write small functions which will choose many of the above
27 # variables dynamicaly looking at guest's total resources 27 # variables dynamicaly looking at guest's total resources
28 logfile = os.path.join(self.resultsdir, 'ebizzy.log') 28 logfile = os.path.join(self.resultsdir, 'ebizzy.log')
29 args2 = '-m -n %s -P -R -s %s -S %s -t %s' % (num_chunks, chunk_size, 29 args2 = '-m -n %s -P -R -s %s -S %s -t %s' % (num_chunks, chunk_size,
30 seconds, num_threads) 30 seconds, num_threads)
31 args = args + ' ' + args2 31 args = args + ' ' + args2
OLDNEW
« no previous file with comments | « client/tests/dbt2/dbt2.py ('k') | client/tests/flail/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698