diff options
author | Ahmad Sharif <asharif@chromium.org> | 2012-12-20 12:09:49 -0800 |
---|---|---|
committer | Ahmad Sharif <asharif@chromium.org> | 2012-12-20 12:09:49 -0800 |
commit | 4467f004e7f0854963bec90daff1879fbd9d2fec (patch) | |
tree | aac36caa6279aa532e2d6234e50ee812f2db0c8d /crosperf/experiment_file_unittest.py | |
parent | f395c26437cbdabc2960447fba89b226f4409e82 (diff) | |
download | toolchain-utils-4467f004e7f0854963bec90daff1879fbd9d2fec.tar.gz |
Synced repos to: 64740
Diffstat (limited to 'crosperf/experiment_file_unittest.py')
-rwxr-xr-x | crosperf/experiment_file_unittest.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crosperf/experiment_file_unittest.py b/crosperf/experiment_file_unittest.py index 67da11e5..d08c7eb5 100755 --- a/crosperf/experiment_file_unittest.py +++ b/crosperf/experiment_file_unittest.py @@ -11,7 +11,7 @@ from experiment_file import ExperimentFile EXPERIMENT_FILE_1 = """ board: x86-alex remote: chromeos-alex3 - + perf_args: record -a -e cycles benchmark: PageCycler { iterations: 3 } @@ -21,6 +21,8 @@ EXPERIMENT_FILE_1 = """ } image2 { + board: lumpy + remote: chromeos-lumpy1 chromeos_image: /usr/local/google/cros_image2.bin } """ @@ -70,7 +72,8 @@ class ExperimentFileTest(unittest.TestCase): experiment_file = ExperimentFile(input_file) global_settings = experiment_file.GetGlobalSettings() self.assertEqual(global_settings.GetField("remote"), ["chromeos-alex3"]) - + self.assertEqual(global_settings.GetField("perf_args"), + "record -a -e cycles") benchmark_settings = experiment_file.GetSettings("benchmark") self.assertEqual(len(benchmark_settings), 1) self.assertEqual(benchmark_settings[0].name, "PageCycler") @@ -82,6 +85,8 @@ class ExperimentFileTest(unittest.TestCase): self.assertEqual(label_settings[0].GetField("board"), "x86-alex") self.assertEqual(label_settings[0].GetField("chromeos_image"), "/usr/local/google/cros_image1.bin") + self.assertEqual(label_settings[1].GetField("remote"), ["chromeos-lumpy1"]) + self.assertEqual(label_settings[0].GetField("remote"), ["chromeos-alex3"]) def testOverrideSetting(self): input_file = StringIO.StringIO(EXPERIMENT_FILE_2) |