| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # Initializes all the perf directories. | 6 # Initializes all the perf directories. |
| 7 | 7 |
| 8 | 8 |
| 9 import optparse | 9 import optparse |
| 10 import os | 10 import os |
| 11 import shutil | 11 import shutil |
| 12 import sys | 12 import sys |
| 13 | 13 |
| 14 | 14 |
| 15 SystemTitles = { | 15 SystemTitles = { |
| 16 'chromium-rel-mac5-cg': 'Chromium Mac 10.5 (cg)', | 16 'chromium-rel-mac5-cg': 'Chromium Mac 10.5 (cg)', |
| 17 'chromium-rel-mac5-clang': 'Chromium Mac 10.5 (clang)', | 17 'chromium-rel-mac5-clang': 'Chromium Mac 10.5 (clang)', |
| 18 'chromium-rel-mac6-cg': 'Chromium Mac 10.6 (cg)', | 18 'chromium-rel-mac6-cg': 'Chromium Mac 10.6 (cg)', |
| 19 'chromium-rel-mac6-clang': 'Chromium Mac 10.6 (clang)', | 19 'chromium-rel-mac6-clang': 'Chromium Mac 10.6 (clang)', |
| 20 'chromium-rel-mac7-fyi': 'Chromium Mac 10.7 FYI', |
| 20 'chromium-rel-win7-dual': 'Chromium Win7', | 21 'chromium-rel-win7-dual': 'Chromium Win7', |
| 22 'chromium-rel-win7-dual-fyi': 'Chromium Win7 FYI', |
| 21 'chromium-rel-win7-gpu-ati': 'Chromium Win7 GPU (ATI)', | 23 'chromium-rel-win7-gpu-ati': 'Chromium Win7 GPU (ATI)', |
| 22 'chromium-rel-win7-gpu-intel': 'Chromium Win7 GPU (Intel)', | 24 'chromium-rel-win7-gpu-intel': 'Chromium Win7 GPU (Intel)', |
| 23 'chromium-rel-win7-gpu-nvidia': 'Chromium Win7 GPU (NVIDIA)', | 25 'chromium-rel-win7-gpu-nvidia': 'Chromium Win7 GPU (NVIDIA)', |
| 24 'chromium-rel-win7-single': 'Chromium Win7 (single)', | 26 'chromium-rel-win7-single': 'Chromium Win7 (single)', |
| 25 'chromium-rel-win7-webkit': 'Chromium Win7 (webkit)', | 27 'chromium-rel-win7-webkit': 'Chromium Win7 (webkit)', |
| 26 'gpu-fyi-linux-release-ati': 'GPU FYI Linux Release (ATI)', | 28 'gpu-fyi-linux-release-ati': 'GPU FYI Linux Release (ATI)', |
| 27 'gpu-fyi-linux-release-intel': 'GPU FYI Linux Release (Intel)', | 29 'gpu-fyi-linux-release-intel': 'GPU FYI Linux Release (Intel)', |
| 28 'gpu-fyi-mac-release-ati': 'GPU FYI Mac Release (ATI)', | 30 'gpu-fyi-mac-release-ati': 'GPU FYI Mac Release (ATI)', |
| 29 'gpu-fyi-win7-release-ati': 'GPU FYI Win7 Release (ATI)', | 31 'gpu-fyi-win7-release-ati': 'GPU FYI Win7 Release (ATI)', |
| 30 'gpu-fyi-win7-release-intel': 'GPU FYI Win7 Release (Intel)', | 32 'gpu-fyi-win7-release-intel': 'GPU FYI Win7 Release (Intel)', |
| 31 'gpu-fyi-winxp-debug-nvidia': 'GPU FYI WinXP Debug (NVIDIA)', | 33 'gpu-fyi-winxp-debug-nvidia': 'GPU FYI WinXP Debug (NVIDIA)', |
| 32 'gpu-fyi-winxp-release-nvidia': 'GPU FYI WinXP Release (NVIDIA)', | 34 'gpu-fyi-winxp-release-nvidia': 'GPU FYI WinXP Release (NVIDIA)', |
| 33 'gpu-linux-release-nvidia': 'GPU Linux Release (NVIDIA)', | 35 'gpu-linux-release-nvidia': 'GPU Linux Release (NVIDIA)', |
| 34 'gpu-mac-release-intel': 'GPU Mac Release (Intel)', | 36 'gpu-mac-release-intel': 'GPU Mac Release (Intel)', |
| 35 'gpu-webkit-linux-nvidia': 'Webkit GPU Linux (NVIDIA)', | 37 'gpu-webkit-linux-nvidia': 'Webkit GPU Linux (NVIDIA)', |
| 36 'gpu-webkit-mac': 'Webkit GPU Mac', | 38 'gpu-webkit-mac': 'Webkit GPU Mac', |
| 37 'gpu-webkit-win7-nvidia': 'Webkit GPU Win7 (NVIDIA)', | 39 'gpu-webkit-win7-nvidia': 'Webkit GPU Win7 (NVIDIA)', |
| 38 'gpu-win7-rel': 'GPU Win7 Release', | 40 'gpu-win7-rel': 'GPU Win7 Release', |
| 39 'gpu-win7-release-nvidia': 'GPU Win7 Release (NVIDIA)', | 41 'gpu-win7-release-nvidia': 'GPU Win7 Release (NVIDIA)', |
| 40 'linux-debug': 'Linux Perf (debug)', | 42 'linux-debug': 'Linux Perf (debug)', |
| 41 'linux-release': 'Chromium Linux', | 43 'linux-release': 'Chromium Linux', |
| 42 'linux-release-64': 'Chromium Linux 64', | 44 'linux-release-64': 'Chromium Linux 64', |
| 45 'linux-release-fyi': 'Chromium Linux FYI', |
| 43 'linux-release-hardy': 'Linux Perf', | 46 'linux-release-hardy': 'Linux Perf', |
| 44 'linux-release-lowmem': 'Linux Perf (lowmem)', | 47 'linux-release-lowmem': 'Linux Perf (lowmem)', |
| 45 'linux-release-memory': 'Chromium Linux Memory', | 48 'linux-release-memory': 'Chromium Linux Memory', |
| 46 'linux-release-webkit-latest': 'Linux Perf (webkit-latest)', | 49 'linux-release-webkit-latest': 'Linux Perf (webkit-latest)', |
| 47 'linux-targets': 'Linux Target Builds', | 50 'linux-targets': 'Linux Target Builds', |
| 48 'lumpy-chrome-perf': 'Lumpy (perf)', | 51 'lumpy-chrome-perf': 'Lumpy (perf)', |
| 49 'mac-debug': 'Mac Perf (debug)', | 52 'mac-debug': 'Mac Perf (debug)', |
| 50 'mac-release': 'Mac Perf', | 53 'mac-release': 'Mac Perf', |
| 51 'mac-release-10.5': 'Mac 10.5 Perf', | 54 'mac-release-10.5': 'Mac 10.5 Perf', |
| 52 'mac-release-10.5-v8-latest': 'Chromium Mac 10.5 (v8-latest)', | 55 'mac-release-10.5-v8-latest': 'Chromium Mac 10.5 (v8-latest)', |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 continue | 320 continue |
| 318 test_title = TestTitles[test_dir] | 321 test_title = TestTitles[test_dir] |
| 319 perf_dir = os.path.join(system_dir, test_dir) | 322 perf_dir = os.path.join(system_dir, test_dir) |
| 320 os.chmod(perf_dir, 0755) | 323 os.chmod(perf_dir, 0755) |
| 321 TestInit(perf_dir, system_title, test_title, symlink_list) | 324 TestInit(perf_dir, system_title, test_title, symlink_list) |
| 322 return 0 | 325 return 0 |
| 323 | 326 |
| 324 | 327 |
| 325 if __name__ == '__main__': | 328 if __name__ == '__main__': |
| 326 sys.exit(main()) | 329 sys.exit(main()) |
| OLD | NEW |