| Index: Source/bindings/dart/gyp/scripts/dart_html_lib_deps.py
|
| diff --git a/Tools/Scripts/run-perf-tests b/Source/bindings/dart/gyp/scripts/dart_html_lib_deps.py
|
| old mode 100755
|
| new mode 100644
|
| similarity index 63%
|
| copy from Tools/Scripts/run-perf-tests
|
| copy to Source/bindings/dart/gyp/scripts/dart_html_lib_deps.py
|
| index 1bf8ec8627025ea8dba85f7674bd8459ae913df5..ff534f0dec08fd619862944877304abed3226bc1
|
| --- a/Tools/Scripts/run-perf-tests
|
| +++ b/Source/bindings/dart/gyp/scripts/dart_html_lib_deps.py
|
| @@ -1,4 +1,5 @@
|
| -#!/usr/bin/env python
|
| +#!/usr/bin/python
|
| +#
|
| # Copyright (C) 2012 Google Inc. All rights reserved.
|
| #
|
| # Redistribution and use in source and binary forms, with or without
|
| @@ -26,15 +27,39 @@
|
| # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +#
|
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
|
|
| -"""Run performance tests."""
|
|
|
| -import logging
|
| +import fnmatch
|
| +import os
|
| import sys
|
|
|
| -from webkitpy.performance_tests.perftestsrunner import PerfTestsRunner
|
|
|
| -if '__main__' == __name__:
|
| - logging.basicConfig(level=logging.INFO, format="%(message)s")
|
| +def printAllFilesRecursively(directory, pattern):
|
| + def matches(basename): return fnmatch.fnmatch(basename, pattern)
|
| + for root, _, files in os.walk(directory):
|
| + for basename in filter(matches, files):
|
| + # gyp operates correctly only on /, not Windows \.
|
| + print os.path.join(root, basename).replace(os.sep, '/')
|
| +
|
| +
|
| +
|
| +def main(args):
|
| + dart_html_lib_dir = args[1]
|
| +
|
| + deps = [
|
| + ('idl', '*.idl'),
|
| + ('scripts', '*.py'),
|
| + ('src', '*.dart'),
|
| + ('templates', '*.*template'),
|
| + ]
|
| +
|
| + for directory, pattern in deps:
|
| + printAllFilesRecursively(os.path.join(dart_html_lib_dir, directory), pattern)
|
| +
|
|
|
| - sys.exit(PerfTestsRunner().run())
|
| +if __name__ == '__main__':
|
| + sys.exit(main(sys.argv))
|
|
|