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

Side by Side Diff: tools/run-tests.py

Issue 1281453003: [test] Make test filters platform-independent. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | tools/testrunner/local/testsuite.py » ('j') | 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 2012 the V8 project authors. All rights reserved. 3 # Copyright 2012 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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 return [name] 498 return [name]
499 args = reduce(lambda x, y: x + y, 499 args = reduce(lambda x, y: x + y,
500 [ExpandTestGroups(arg) for arg in args], 500 [ExpandTestGroups(arg) for arg in args],
501 []) 501 [])
502 502
503 if len(args) == 0: 503 if len(args) == 0:
504 suite_paths = [ s for s in DEFAULT_TESTS if s in suite_paths ] 504 suite_paths = [ s for s in DEFAULT_TESTS if s in suite_paths ]
505 else: 505 else:
506 args_suites = OrderedDict() # Used as set 506 args_suites = OrderedDict() # Used as set
507 for arg in args: 507 for arg in args:
508 args_suites[arg.split(os.path.sep)[0]] = True 508 args_suites[arg.split('/')[0]] = True
509 suite_paths = [ s for s in args_suites if s in suite_paths ] 509 suite_paths = [ s for s in args_suites if s in suite_paths ]
510 510
511 suites = [] 511 suites = []
512 for root in suite_paths: 512 for root in suite_paths:
513 suite = testsuite.TestSuite.LoadTestSuite( 513 suite = testsuite.TestSuite.LoadTestSuite(
514 os.path.join(workspace, "test", root)) 514 os.path.join(workspace, "test", root))
515 if suite: 515 if suite:
516 suites.append(suite) 516 suites.append(suite)
517 517
518 if options.download_data or options.download_data_only: 518 if options.download_data or options.download_data_only:
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 exit_code = runner.Run(options.j) 693 exit_code = runner.Run(options.j)
694 overall_duration = time.time() - start_time 694 overall_duration = time.time() - start_time
695 695
696 if options.time: 696 if options.time:
697 verbose.PrintTestDurations(suites, overall_duration) 697 verbose.PrintTestDurations(suites, overall_duration)
698 return exit_code 698 return exit_code
699 699
700 700
701 if __name__ == "__main__": 701 if __name__ == "__main__":
702 sys.exit(Main()) 702 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | tools/testrunner/local/testsuite.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698