OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import glob, logging, os, re, shutil, stat, string, time, urllib | 5 import glob, logging, os, re, shutil, stat, string, time, urllib |
6 | 6 |
7 from autotest_lib.client.bin import test | 7 from autotest_lib.client.bin import test |
8 from autotest_lib.client.common_lib import error, utils | 8 from autotest_lib.client.common_lib import error, utils |
9 | 9 |
10 # See partner bug 891 for why these tests' performance is being ignored. | 10 # See partner bug 891 for why these tests' performance is being ignored. |
11 _IGNORE_PERFORMANCE_TESTS=( | 11 _IGNORE_PERFORMANCE_TESTS=( |
12 'tulip_hp.mp4', | 12 'tulip_hp.mp4', |
13 'tulip_bp.mp4', | 13 'tulip_bp.mp4', |
14 'tulip_mp.mp4', | 14 'tulip_mp.mp4') |
15 'tulip_vc1.wmv', | |
16 'tulip_wmv8.wmv', | |
17 'tulip_wmv9.wmv') | |
18 | 15 |
19 class audiovideo_FFMPEG(test.test): | 16 class audiovideo_FFMPEG(test.test): |
20 version = 1 | 17 version = 1 |
21 | 18 |
22 def setup(self): | 19 def setup(self): |
23 """ copy test asset to bindir. """ | 20 """ copy test asset to bindir. """ |
24 if not os.path.exists(self.srcdir): | 21 if not os.path.exists(self.srcdir): |
25 os.mkdir(self.srcdir) | 22 os.mkdir(self.srcdir) |
26 # sysroot = os.environ["SYSROOT"] | 23 # sysroot = os.environ["SYSROOT"] |
27 # testdir = os.path.join(sysroot, "usr/local/autotest-chrome") | 24 # testdir = os.path.join(sysroot, "usr/local/autotest-chrome") |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 namekey = file_name.lower().replace('.', '_') | 108 namekey = file_name.lower().replace('.', '_') |
112 self.performance_results['timeperframe_' + namekey] = tpf | 109 self.performance_results['timeperframe_' + namekey] = tpf |
113 self.performance_results['cpuusage_' + namekey] = cpu_usage | 110 self.performance_results['cpuusage_' + namekey] = cpu_usage |
114 else: | 111 else: |
115 raise error.TestFail("ffmpeg_tests failed to exit normally!") | 112 raise error.TestFail("ffmpeg_tests failed to exit normally!") |
116 | 113 |
117 # TODO(jiesun/fbarchard): what else need to be checked? | 114 # TODO(jiesun/fbarchard): what else need to be checked? |
118 | 115 |
119 # remove file after test to save diskspace. | 116 # remove file after test to save diskspace. |
120 os.remove(file_path); | 117 os.remove(file_path); |
OLD | NEW |