Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client 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 import os | 6 import os |
| 7 | 7 |
| 8 # | 8 # |
| 9 # CoverageHelper | 9 # CoverageHelper |
| 10 # | 10 # |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 for name in os.listdir(realpath): | 27 for name in os.listdir(realpath): |
| 28 path = os.path.join(realpath, name) | 28 path = os.path.join(realpath, name) |
| 29 if os.path.isdir(path): | 29 if os.path.isdir(path): |
| 30 paths.append(path) | 30 paths.append(path) |
| 31 return paths | 31 return paths |
| 32 | 32 |
| 33 # | 33 # |
| 34 # Set of results to ignore by path. | 34 # Set of results to ignore by path. |
| 35 # | 35 # |
| 36 def Filter(self): | 36 def Filter(self): |
| 37 filters = ['../ppapi/c', '../ppapi/cpp', 'src/trusted/sel_universal', | 37 filters = ['src/third_party/ppapi/c', 'src/third_party/ppapi/cpp', |
|
noelallen1
2011/07/08 16:18:20
We'll need to remember to undo this...
Could you a
| |
| 38 'src/third_party/valgrind', 'src/tools'] | 38 'src/trusted/sel_universal', 'src/third_party/valgrind', 'src/tools'] |
| 39 return set([os.path.realpath(path) for path in filters]) | 39 return set([os.path.realpath(path) for path in filters]) |
| 40 | 40 |
| 41 # | 41 # |
| 42 # Set of files to ignore because they are in the TCB but used by the | 42 # Set of files to ignore because they are in the TCB but used by the |
| 43 # validator. | 43 # validator. |
| 44 # | 44 # |
| 45 def Ignore(self): | 45 def Ignore(self): |
| 46 return set([ | 46 return set([ |
| 47 'defsize64.c', | 47 'defsize64.c', |
| 48 'lock_insts.c', | 48 'lock_insts.c', |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 # Set of results to group by path. | 88 # Set of results to group by path. |
| 89 # | 89 # |
| 90 def Groups(self): | 90 def Groups(self): |
| 91 groups = [] | 91 groups = [] |
| 92 groups.append(os.path.realpath('scons-out')) | 92 groups.append(os.path.realpath('scons-out')) |
| 93 groups.append(os.path.realpath('src/include')) | 93 groups.append(os.path.realpath('src/include')) |
| 94 groups.append(os.path.realpath('src/tools')) | 94 groups.append(os.path.realpath('src/tools')) |
| 95 groups.extend(self.GetDirList('src/trusted')) | 95 groups.extend(self.GetDirList('src/trusted')) |
| 96 groups.extend(self.GetDirList('src/shared')) | 96 groups.extend(self.GetDirList('src/shared')) |
| 97 groups.extend(self.GetDirList('src/third_party')) | 97 groups.extend(self.GetDirList('src/third_party')) |
| 98 groups.extend(self.GetDirList('../ppapi')) | 98 groups.extend(self.GetDirList('src/third_party/ppapi')) |
| 99 groups.extend(self.GetDirList('..')) | 99 groups.extend(self.GetDirList('..')) |
| 100 return groups | 100 return groups |
| OLD | NEW |