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

Side by Side Diff: tools/test.py

Issue 6667039: Disable v8 benchmark run from standard test.py runs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2008 the V8 project authors. All rights reserved. 3 # Copyright 2008 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 else: 1294 else:
1295 pos = value.find('@') 1295 pos = value.find('@')
1296 import urllib 1296 import urllib
1297 prefix = urllib.unquote(value[:pos]).split() 1297 prefix = urllib.unquote(value[:pos]).split()
1298 suffix = urllib.unquote(value[pos+1:]).split() 1298 suffix = urllib.unquote(value[pos+1:]).split()
1299 def ExpandCommand(args): 1299 def ExpandCommand(args):
1300 return prefix + args + suffix 1300 return prefix + args + suffix
1301 return ExpandCommand 1301 return ExpandCommand
1302 1302
1303 1303
1304 BUILT_IN_TESTS = ['benchmarks', 'mjsunit', 'cctest', 'message'] 1304 BUILT_IN_TESTS = ['mjsunit', 'cctest', 'message']
1305 1305
1306 1306
1307 def GetSuites(test_root): 1307 def GetSuites(test_root):
1308 def IsSuite(path): 1308 def IsSuite(path):
1309 return isdir(path) and exists(join(path, 'testcfg.py')) 1309 return isdir(path) and exists(join(path, 'testcfg.py'))
1310 return [ f for f in os.listdir(test_root) if IsSuite(join(test_root, f)) ] 1310 return [ f for f in os.listdir(test_root) if IsSuite(join(test_root, f)) ]
1311 1311
1312 1312
1313 def FormatTime(d): 1313 def FormatTime(d):
1314 millis = round(d * 1000) % 1000 1314 millis = round(d * 1000) % 1000
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 for entry in timed_tests[:20]: 1464 for entry in timed_tests[:20]:
1465 t = FormatTime(entry.duration) 1465 t = FormatTime(entry.duration)
1466 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) 1466 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel()))
1467 index += 1 1467 index += 1
1468 1468
1469 return result 1469 return result
1470 1470
1471 1471
1472 if __name__ == '__main__': 1472 if __name__ == '__main__':
1473 sys.exit(Main()) 1473 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698