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

Side by Side Diff: client/tests/iozone/iozone.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/iosched_bugs/iosched_bugs.py ('k') | client/tests/iperf/iperf.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, re 1 import os, re
2 from autotest_lib.client.bin import test, utils 2 from autotest_lib.client.bin import test, utils
3 import postprocessing 3 import postprocessing
4 4
5 5
6 class iozone(test.test): 6 class iozone(test.test):
7 """ 7 """
8 This autotest module runs the IOzone filesystem benchmark. The benchmark 8 This autotest module runs the IOzone filesystem benchmark. The benchmark
9 generates and measures a variety of file operations. Iozone has been ported 9 generates and measures a variety of file operations. Iozone has been ported
10 to many machines and runs under many operating systems. 10 to many machines and runs under many operating systems.
(...skipping 19 matching lines...) Expand all
30 Builds the given version of IOzone from a tarball. 30 Builds the given version of IOzone from a tarball.
31 @param tarball: Tarball with IOzone 31 @param tarball: Tarball with IOzone
32 @see: http://www.iozone.org/src/current/iozone3_347.tar 32 @see: http://www.iozone.org/src/current/iozone3_347.tar
33 """ 33 """
34 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) 34 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
35 utils.extract_tarball_to_dir(tarball, self.srcdir) 35 utils.extract_tarball_to_dir(tarball, self.srcdir)
36 os.chdir(os.path.join(self.srcdir, 'src/current')) 36 os.chdir(os.path.join(self.srcdir, 'src/current'))
37 37
38 arch = utils.get_current_kernel_arch() 38 arch = utils.get_current_kernel_arch()
39 if (arch == 'ppc'): 39 if (arch == 'ppc'):
40 utils.system('make linux-powerpc') 40 utils.make('linux-powerpc')
41 elif (arch == 'ppc64'): 41 elif (arch == 'ppc64'):
42 utils.system('make linux-powerpc64') 42 utils.make('linux-powerpc64')
43 elif (arch == 'x86_64'): 43 elif (arch == 'x86_64'):
44 utils.system('make linux-AMD64') 44 utils.make('linux-AMD64')
45 else: 45 else:
46 utils.system('make linux') 46 utils.make('linux')
47 47
48 48
49 def run_once(self, dir=None, args=None): 49 def run_once(self, dir=None, args=None):
50 """ 50 """
51 Runs IOzone with appropriate parameters, record raw results in a per 51 Runs IOzone with appropriate parameters, record raw results in a per
52 iteration raw output file as well as in the results attribute 52 iteration raw output file as well as in the results attribute
53 53
54 @param dir: IOzone file generation dir. 54 @param dir: IOzone file generation dir.
55 @param args: Arguments to the iozone program. 55 @param args: Arguments to the iozone program.
56 """ 56 """
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 def postprocess_iteration(self): 158 def postprocess_iteration(self):
159 self.generate_keyval() 159 self.generate_keyval()
160 if self.auto_mode: 160 if self.auto_mode:
161 a = postprocessing.IOzoneAnalyzer(list_files=[self.results_path], 161 a = postprocessing.IOzoneAnalyzer(list_files=[self.results_path],
162 output_dir=self.analysisdir) 162 output_dir=self.analysisdir)
163 a.analyze() 163 a.analyze()
164 p = postprocessing.IOzonePlotter(results_file=self.results_path, 164 p = postprocessing.IOzonePlotter(results_file=self.results_path,
165 output_dir=self.analysisdir) 165 output_dir=self.analysisdir)
166 p.plot_all() 166 p.plot_all()
OLDNEW
« no previous file with comments | « client/tests/iosched_bugs/iosched_bugs.py ('k') | client/tests/iperf/iperf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698