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

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

Issue 159713005: A64: Remove A64 specific lines from testcfg.py. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
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
« no previous file with comments | « test/message/testcfg.py ('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 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, A64 output.""" 103 """Ignore empty lines, valgrind output and Android 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
110 # These five patterns appear in normal Native Client output. 107 # These five patterns appear in normal Native Client output.
111 string.startswith("DEBUG MODE ENABLED") or 108 string.startswith("DEBUG MODE ENABLED") or
112 string.startswith("tools/nacl-run.py") or 109 string.startswith("tools/nacl-run.py") or
113 string.find("BYPASSING ALL ACL CHECKS") > 0 or 110 string.find("BYPASSING ALL ACL CHECKS") > 0 or
114 string.find("Native Client module will be loaded") > 0 or 111 string.find("Native Client module will be loaded") > 0 or
115 string.find("NaClHostDescOpen:") > 0) 112 string.find("NaClHostDescOpen:") > 0)
116 113
117 def IsFailureOutput(self, output, testpath): 114 def IsFailureOutput(self, output, testpath):
118 if super(WebkitTestSuite, self).IsFailureOutput(output, testpath): 115 if super(WebkitTestSuite, self).IsFailureOutput(output, testpath):
119 return True 116 return True
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 for act_iterator in ActBlockIterator(): 150 for act_iterator in ActBlockIterator():
154 for (expected, actual) in itertools.izip_longest( 151 for (expected, actual) in itertools.izip_longest(
155 ExpIterator(), act_iterator, fillvalue=''): 152 ExpIterator(), act_iterator, fillvalue=''):
156 if expected != actual: 153 if expected != actual:
157 return True 154 return True
158 return False 155 return False
159 156
160 157
161 def GetSuite(name, root): 158 def GetSuite(name, root):
162 return WebkitTestSuite(name, root) 159 return WebkitTestSuite(name, root)
OLDNEW
« no previous file with comments | « test/message/testcfg.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698