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

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

Issue 8966023: Fix Test262 command line in test harness. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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 # Copyright 2011 the V8 project authors. All rights reserved. 1 # Copyright 2011 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 def GetLabel(self): 48 def GetLabel(self):
49 return "%s test262 %s" % (self.mode, self.GetName()) 49 return "%s test262 %s" % (self.mode, self.GetName())
50 50
51 def IsFailureOutput(self, output): 51 def IsFailureOutput(self, output):
52 if output.exit_code != 0: 52 if output.exit_code != 0:
53 return True 53 return True
54 return 'FAILED!' in output.stdout 54 return 'FAILED!' in output.stdout
55 55
56 def GetCommand(self): 56 def GetCommand(self):
57 result = self.context.GetVmCommand(self, self.mode) 57 result = self.context.GetVmCommand(self, self.mode)
58 result += ['-e', 'var window = this']
59 result += self.framework 58 result += self.framework
60 result.append(self.filename) 59 result.append(self.filename)
61 return result 60 return result
62 61
63 def GetName(self): 62 def GetName(self):
64 return self.path[-1] 63 return self.path[-1]
65 64
66 def GetSource(self): 65 def GetSource(self):
67 return open(self.filename).read() 66 return open(self.filename).read()
68 67
(...skipping 29 matching lines...) Expand all
98 return ['d8'] 97 return ['d8']
99 98
100 def GetTestStatus(self, sections, defs): 99 def GetTestStatus(self, sections, defs):
101 status_file = join(self.root, 'test262.status') 100 status_file = join(self.root, 'test262.status')
102 if exists(status_file): 101 if exists(status_file):
103 test.ReadConfigurationInto(status_file, sections, defs) 102 test.ReadConfigurationInto(status_file, sections, defs)
104 103
105 104
106 def GetConfiguration(context, root): 105 def GetConfiguration(context, root):
107 return Test262TestConfiguration(context, root) 106 return Test262TestConfiguration(context, root)
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