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

Side by Side Diff: test/message/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 | « no previous file | test/webkit/testcfg.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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 result = [x for x in result if x not in INVALID_FLAGS] 66 result = [x for x in result if x not in INVALID_FLAGS]
67 result.append(os.path.join(self.root, testcase.path + ".js")) 67 result.append(os.path.join(self.root, testcase.path + ".js"))
68 return testcase.flags + result 68 return testcase.flags + result
69 69
70 def GetSourceForTest(self, testcase): 70 def GetSourceForTest(self, testcase):
71 filename = os.path.join(self.root, testcase.path + self.suffix()) 71 filename = os.path.join(self.root, testcase.path + self.suffix())
72 with open(filename) as f: 72 with open(filename) as f:
73 return f.read() 73 return f.read()
74 74
75 def _IgnoreLine(self, string): 75 def _IgnoreLine(self, string):
76 """Ignore empty lines, valgrind output, Android output, A64 output.""" 76 """Ignore empty lines, valgrind output, Android output."""
77 if not string: return True 77 if not string: return True
78 return (string.startswith("==") or string.startswith("**") or 78 return (string.startswith("==") or string.startswith("**") or
79 string.startswith("ANDROID") or 79 string.startswith("ANDROID") or
80 # TODO(ulan): remove this message once all A64 features are
81 # implemented.
82 string.startswith("UNIMPLEMENTED") or
83 # These five patterns appear in normal Native Client output. 80 # These five patterns appear in normal Native Client output.
84 string.startswith("DEBUG MODE ENABLED") or 81 string.startswith("DEBUG MODE ENABLED") or
85 string.startswith("tools/nacl-run.py") or 82 string.startswith("tools/nacl-run.py") or
86 string.find("BYPASSING ALL ACL CHECKS") > 0 or 83 string.find("BYPASSING ALL ACL CHECKS") > 0 or
87 string.find("Native Client module will be loaded") > 0 or 84 string.find("Native Client module will be loaded") > 0 or
88 string.find("NaClHostDescOpen:") > 0) 85 string.find("NaClHostDescOpen:") > 0)
89 86
90 def IsFailureOutput(self, output, testpath): 87 def IsFailureOutput(self, output, testpath):
91 expected_path = os.path.join(self.root, testpath + ".out") 88 expected_path = os.path.join(self.root, testpath + ".out")
92 expected_lines = [] 89 expected_lines = []
(...skipping 15 matching lines...) Expand all
108 if not re.match(pattern, actual): 105 if not re.match(pattern, actual):
109 return True 106 return True
110 return False 107 return False
111 108
112 def StripOutputForTransmit(self, testcase): 109 def StripOutputForTransmit(self, testcase):
113 pass 110 pass
114 111
115 112
116 def GetSuite(name, root): 113 def GetSuite(name, root):
117 return MessageTestSuite(name, root) 114 return MessageTestSuite(name, root)
OLDNEW
« no previous file with comments | « no previous file | test/webkit/testcfg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698