Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Side by Side Diff: webkit/compositor/copyfiles.py

Issue 10909020: Enable webkit_compositor_unittests (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium 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 shutil 5 import shutil
6 import os 6 import os
7 import re 7 import re
8 8
9 prefixes = ["../../third_party/WebKit/Source/WebCore/platform/chromium/support", 9 prefixes = ["../../third_party/WebKit/Source/WebCore/platform/chromium/support",
10 "../../third_party/WebKit/Source/WebKit/chromium/src", 10 "../../third_party/WebKit/Source/WebKit/chromium/src",
11 "../../third_party/WebKit/Source/WebKit/chromium/tests", 11 "../../third_party/WebKit/Source/WebKit/chromium/tests",
12 "../../third_party/WebKit/Source/WebCore/platform"] 12 "../../third_party/WebKit/Source/WebCore/platform"]
13 13
14 def Copy(name): 14 def Copy(name):
15 src = name 15 src = name
16 dst = name 16 dst = name
17 fullsrc = "" 17 fullsrc = ""
18 if name.startswith("test/"):
19 src = src[5:]
18 for prefix in prefixes: 20 for prefix in prefixes:
19 candidate = "%s/%s" % (prefix, src) 21 candidate = "%s/%s" % (prefix, src)
20 if os.path.exists(candidate): 22 if os.path.exists(candidate):
21 fullsrc = candidate 23 fullsrc = candidate
22 break 24 break
23 assert fullsrc != "" 25 assert fullsrc != ""
24 shutil.copyfile(fullsrc, dst) 26 shutil.copyfile(fullsrc, dst)
25 print "copying from %s to %s" % (fullsrc, dst) 27 print "copying from %s to %s" % (fullsrc, dst)
26 return dst 28 return dst
27 29
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 variables = Readfile("compositor_tests.gyp")['variables'] 69 variables = Readfile("compositor_tests.gyp")['variables']
68 files = variables['webkit_compositor_tests_sources'] 70 files = variables['webkit_compositor_tests_sources']
69 for f in files: 71 for f in files:
70 dst = Copy(f) 72 dst = Copy(f)
71 FixCopyrightHeader(dst) 73 FixCopyrightHeader(dst)
72 74
73 if __name__ == '__main__': 75 if __name__ == '__main__':
74 import sys 76 import sys
75 os.chdir(os.path.dirname(__file__)) 77 os.chdir(os.path.dirname(__file__))
76 sys.exit(Main()) 78 sys.exit(Main())
OLDNEW
« no previous file with comments | « webkit/compositor/compositor_tests.gyp ('k') | webkit/compositor/test/FakeWebScrollbarThemeGeometry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698