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

Side by Side Diff: test/cctest/testcfg.py

Issue 10696048: Add Makefile targets for running tests on Android. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add quotes Created 8 years, 5 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 | « test/cctest/cctest.status ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2008 the V8 project authors. All rights reserved. 1 # Copyright 2008 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 def ListTests(self, current_path, path, mode, variant_flags): 86 def ListTests(self, current_path, path, mode, variant_flags):
87 executable = 'cctest' 87 executable = 'cctest'
88 if utils.IsWindows(): 88 if utils.IsWindows():
89 executable += '.exe' 89 executable += '.exe'
90 executable = join(self.context.buildspace, executable) 90 executable = join(self.context.buildspace, executable)
91 if not exists(executable): 91 if not exists(executable):
92 executable = join('obj', 'test', mode, 'cctest') 92 executable = join('obj', 'test', mode, 'cctest')
93 if utils.IsWindows(): 93 if utils.IsWindows():
94 executable += '.exe' 94 executable += '.exe'
95 executable = join(self.context.buildspace, executable) 95 executable = join(self.context.buildspace, executable)
96 output = test.Execute([executable, '--list'], self.context) 96 full_command = self.context.processor([executable, '--list'])
97 output = test.Execute(full_command, self.context)
97 if output.exit_code != 0: 98 if output.exit_code != 0:
98 print output.stdout 99 print output.stdout
99 print output.stderr 100 print output.stderr
100 return [] 101 return []
101 result = [] 102 result = []
102 for test_desc in output.stdout.strip().split(): 103 for test_desc in output.stdout.strip().split():
103 raw_test, dependency = test_desc.split('<') 104 raw_test, dependency = test_desc.split('<')
104 relative_path = raw_test.split('/') 105 relative_path = raw_test.split('/')
105 full_path = current_path + relative_path 106 full_path = current_path + relative_path
106 if dependency != '': 107 if dependency != '':
107 dependency = relative_path[0] + '/' + dependency 108 dependency = relative_path[0] + '/' + dependency
108 if self.Contains(path, full_path): 109 if self.Contains(path, full_path):
109 result.append(CcTestCase(full_path, executable, mode, raw_test, dependen cy, self.context, variant_flags)) 110 result.append(CcTestCase(full_path, executable, mode, raw_test, dependen cy, self.context, variant_flags))
110 result.sort() 111 result.sort()
111 return result 112 return result
112 113
113 def GetTestStatus(self, sections, defs): 114 def GetTestStatus(self, sections, defs):
114 status_file = join(self.root, 'cctest.status') 115 status_file = join(self.root, 'cctest.status')
115 if exists(status_file): 116 if exists(status_file):
116 test.ReadConfigurationInto(status_file, sections, defs) 117 test.ReadConfigurationInto(status_file, sections, defs)
117 118
118 119
119 def GetConfiguration(context, root): 120 def GetConfiguration(context, root):
120 return CcTestConfiguration(context, root) 121 return CcTestConfiguration(context, root)
OLDNEW
« no previous file with comments | « test/cctest/cctest.status ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698