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

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

Issue 55007: Mark some of the places we leave V8 via callbacks as transitions to... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 8 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 | « src/top.cc ('k') | tools/tickprocessor.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 # 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 30 matching lines...) Expand all
41 self.executable = executable 41 self.executable = executable
42 self.mode = mode 42 self.mode = mode
43 self.raw_name = raw_name 43 self.raw_name = raw_name
44 self.dependency = dependency 44 self.dependency = dependency
45 45
46 def GetLabel(self): 46 def GetLabel(self):
47 return "%s %s %s" % (self.mode, self.path[-2], self.path[-1]) 47 return "%s %s %s" % (self.mode, self.path[-2], self.path[-1])
48 48
49 def GetName(self): 49 def GetName(self):
50 return self.path[-1] 50 return self.path[-1]
51 51
52 def BuildCommand(self, name): 52 def BuildCommand(self, name):
53 serialization_file = join('obj', 'test', self.mode, 'serdes') 53 serialization_file = join('obj', 'test', self.mode, 'serdes')
54 serialization_file += '_' + self.GetName() 54 serialization_file += '_' + self.GetName()
55 serialization_option = '--testing_serialization_file=' + serialization_file 55 serialization_option = '--testing_serialization_file=' + serialization_file
56 result = [ self.executable, name, serialization_option ] 56 result = [ self.executable, name, serialization_option ]
57 if self.mode == 'debug': 57 if self.mode == 'debug':
58 result += DEBUG_FLAGS 58 result += DEBUG_FLAGS
59 return result 59 return result
60 60
61 def GetCommand(self): 61 def GetCommand(self):
62 return self.BuildCommand(self.raw_name) 62 return self.BuildCommand(self.raw_name)
63 63
64 def Run(self): 64 def Run(self):
65 if self.dependency != '': 65 if self.dependency != '':
66 dependent_command = self.BuildCommand(self.dependency) 66 dependent_command = self.BuildCommand(self.dependency)
67 output = self.RunCommand(dependent_command) 67 output = self.RunCommand(dependent_command)
68 if output.HasFailed(): 68 if output.HasFailed():
69 return output 69 return output
70 return test.TestCase.Run(self) 70 return test.TestCase.Run(self)
71 71
72 72
73 class CcTestConfiguration(test.TestConfiguration): 73 class CcTestConfiguration(test.TestConfiguration):
74 74
75 def __init__(self, context, root): 75 def __init__(self, context, root):
76 super(CcTestConfiguration, self).__init__(context, root) 76 super(CcTestConfiguration, self).__init__(context, root)
77 77
78 def GetBuildRequirements(self): 78 def GetBuildRequirements(self):
(...skipping 11 matching lines...) Expand all
90 result = [] 90 result = []
91 for test_desc in output.stdout.strip().split(): 91 for test_desc in output.stdout.strip().split():
92 raw_test, dependency = test_desc.split('<') 92 raw_test, dependency = test_desc.split('<')
93 relative_path = raw_test.split('/') 93 relative_path = raw_test.split('/')
94 full_path = current_path + relative_path 94 full_path = current_path + relative_path
95 if dependency != '': 95 if dependency != '':
96 dependency = relative_path[0] + '/' + dependency 96 dependency = relative_path[0] + '/' + dependency
97 if self.Contains(path, full_path): 97 if self.Contains(path, full_path):
98 result.append(CcTestCase(full_path, executable, mode, raw_test, dependen cy, self.context)) 98 result.append(CcTestCase(full_path, executable, mode, raw_test, dependen cy, self.context))
99 return result 99 return result
100 100
101 def GetTestStatus(self, sections, defs): 101 def GetTestStatus(self, sections, defs):
102 status_file = join(self.root, 'cctest.status') 102 status_file = join(self.root, 'cctest.status')
103 if exists(status_file): 103 if exists(status_file):
104 test.ReadConfigurationInto(status_file, sections, defs) 104 test.ReadConfigurationInto(status_file, sections, defs)
105 105
106 106
107 def GetConfiguration(context, root): 107 def GetConfiguration(context, root):
108 return CcTestConfiguration(context, root) 108 return CcTestConfiguration(context, root)
OLDNEW
« no previous file with comments | « src/top.cc ('k') | tools/tickprocessor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698