Пример #1
0
 def test_generate_output_directory_mixed(self):
     self.settings['mode'] = ['rw']
     self.settings['rwmixread'] = [75]
     self.settings['loop_items'].append('rwmixread')
     tests = b.generate_test_list(self.settings)
     benchmark = tests[0]
     self.assertEqual(b.generate_output_directory(self.settings, benchmark),
                      'output_directory/device/rw75/4k')
Пример #2
0
 def setUp(self):
     self.settings = b.get_default_settings()
     self.settings['target'] = ['device']
     self.settings['type'] = ['directory']
     self.tests = b.generate_test_list(self.settings)
     self.settings['output'] = 'output_directory'
Пример #3
0
 def test_generate_benchmarks_big(self):
     self.settings['target'] = ['filea', 'fileb', 'filec', 'filed']
     self.settings['block_size'] = ['4k', '8k', '16k', '32k']
     self.assertEqual(len(b.generate_test_list(self.settings)), 1568)
Пример #4
0
 def test_generate_benchmarks(self):
     self.assertEqual(len(b.generate_test_list(self.settings)), 98)
Пример #5
0
 def test_generate_output_directory_mixed(self):
     self.settings['mode'] = ['rw']
     tests = b.generate_test_list(self.settings)
     benchmark = tests[0]
     self.assertEqual(b.generate_output_directory(self.settings, benchmark),
                      'output_directory/device/rw75/4k')
Пример #6
0
 def test_generate_benchmarks_big(self):
     self.settings['target'] = ['a', 'b', 'c', 'd']
     self.settings['block_size'] = ['a', 'b', 'c', 'd']
     self.assertEqual(len(b.generate_test_list(self.settings)), 1568)