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

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

Issue 273039: New mjsunit tests for the new compiler infrastructure. They... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 2 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/mjsunit/compiler/literals-assignment.js ('k') | 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 # 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 def SelectTest(name): 107 def SelectTest(name):
108 return name.endswith('.js') and name != 'mjsunit.js' 108 return name.endswith('.js') and name != 'mjsunit.js'
109 return [f[:-3] for f in os.listdir(path) if SelectTest(f)] 109 return [f[:-3] for f in os.listdir(path) if SelectTest(f)]
110 110
111 def ListTests(self, current_path, path, mode): 111 def ListTests(self, current_path, path, mode):
112 mjsunit = [current_path + [t] for t in self.Ls(self.root)] 112 mjsunit = [current_path + [t] for t in self.Ls(self.root)]
113 regress = [current_path + ['regress', t] for t in self.Ls(join(self.root, 'r egress'))] 113 regress = [current_path + ['regress', t] for t in self.Ls(join(self.root, 'r egress'))]
114 bugs = [current_path + ['bugs', t] for t in self.Ls(join(self.root, 'bugs')) ] 114 bugs = [current_path + ['bugs', t] for t in self.Ls(join(self.root, 'bugs')) ]
115 third_party = [current_path + ['third_party', t] for t in self.Ls(join(self. root, 'third_party'))] 115 third_party = [current_path + ['third_party', t] for t in self.Ls(join(self. root, 'third_party'))]
116 tools = [current_path + ['tools', t] for t in self.Ls(join(self.root, 'tools '))] 116 tools = [current_path + ['tools', t] for t in self.Ls(join(self.root, 'tools '))]
117 all_tests = mjsunit + regress + bugs + third_party + tools 117 compiler = [current_path + ['compiler', t] for t in self.Ls(join(self.root, 'compiler'))]
118 all_tests = mjsunit + regress + bugs + third_party + tools + compiler
118 result = [] 119 result = []
119 for test in all_tests: 120 for test in all_tests:
120 if self.Contains(path, test): 121 if self.Contains(path, test):
121 file_path = join(self.root, reduce(join, test[1:], "") + ".js") 122 file_path = join(self.root, reduce(join, test[1:], "") + ".js")
122 result.append(MjsunitTestCase(test, file_path, mode, self.context, self) ) 123 result.append(MjsunitTestCase(test, file_path, mode, self.context, self) )
123 return result 124 return result
124 125
125 def GetBuildRequirements(self): 126 def GetBuildRequirements(self):
126 return ['sample', 'sample=shell'] 127 return ['sample', 'sample=shell']
127 128
128 def GetTestStatus(self, sections, defs): 129 def GetTestStatus(self, sections, defs):
129 status_file = join(self.root, 'mjsunit.status') 130 status_file = join(self.root, 'mjsunit.status')
130 if exists(status_file): 131 if exists(status_file):
131 test.ReadConfigurationInto(status_file, sections, defs) 132 test.ReadConfigurationInto(status_file, sections, defs)
132 133
133 134
134 135
135 def GetConfiguration(context, root): 136 def GetConfiguration(context, root):
136 return MjsunitTestConfiguration(context, root) 137 return MjsunitTestConfiguration(context, root)
OLDNEW
« no previous file with comments | « test/mjsunit/compiler/literals-assignment.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698