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

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

Issue 131383004: [not for landing] Diff between a64 and r19234 for no-a64 files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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
OLDNEW
1 # Copyright 2013 the V8 project authors. All rights reserved. 1 # Copyright 2013 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 return testcase.flags + flags 94 return testcase.flags + flags
95 95
96 def GetSourceForTest(self, testcase): 96 def GetSourceForTest(self, testcase):
97 filename = os.path.join(self.root, testcase.path + self.suffix()) 97 filename = os.path.join(self.root, testcase.path + self.suffix())
98 with open(filename) as f: 98 with open(filename) as f:
99 return f.read() 99 return f.read()
100 100
101 # TODO(machenbach): Share with test/message/testcfg.py 101 # TODO(machenbach): Share with test/message/testcfg.py
102 def _IgnoreLine(self, string): 102 def _IgnoreLine(self, string):
103 """Ignore empty lines, valgrind output and Android output.""" 103 """Ignore empty lines, valgrind output and Android output, A64 output."""
104 if not string: return True 104 if not string: return True
105 return (string.startswith("==") or string.startswith("**") or 105 return (string.startswith("==") or string.startswith("**") or
106 string.startswith("ANDROID") or 106 string.startswith("ANDROID") or
107 # TODO(ulan): remove this message once all A64 features are
108 # implemented.
109 string.startswith("UNIMPLEMENTED") or
107 # These five patterns appear in normal Native Client output. 110 # These five patterns appear in normal Native Client output.
108 string.startswith("DEBUG MODE ENABLED") or 111 string.startswith("DEBUG MODE ENABLED") or
109 string.startswith("tools/nacl-run.py") or 112 string.startswith("tools/nacl-run.py") or
110 string.find("BYPASSING ALL ACL CHECKS") > 0 or 113 string.find("BYPASSING ALL ACL CHECKS") > 0 or
111 string.find("Native Client module will be loaded") > 0 or 114 string.find("Native Client module will be loaded") > 0 or
112 string.find("NaClHostDescOpen:") > 0) 115 string.find("NaClHostDescOpen:") > 0)
113 116
114 def IsFailureOutput(self, output, testpath): 117 def IsFailureOutput(self, output, testpath):
115 if super(WebkitTestSuite, self).IsFailureOutput(output, testpath): 118 if super(WebkitTestSuite, self).IsFailureOutput(output, testpath):
116 return True 119 return True
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 for act_iterator in ActBlockIterator(): 153 for act_iterator in ActBlockIterator():
151 for (expected, actual) in itertools.izip_longest( 154 for (expected, actual) in itertools.izip_longest(
152 ExpIterator(), act_iterator, fillvalue=''): 155 ExpIterator(), act_iterator, fillvalue=''):
153 if expected != actual: 156 if expected != actual:
154 return True 157 return True
155 return False 158 return False
156 159
157 160
158 def GetSuite(name, root): 161 def GetSuite(name, root):
159 return WebkitTestSuite(name, root) 162 return WebkitTestSuite(name, root)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698