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

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

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 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/message.status ('k') | test/mjsunit/compiler/compare-map-elim.js » ('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.""" 76 """Ignore empty lines, valgrind output and 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 # These five patterns appear in normal Native Client output. 80 # These five patterns appear in normal Native Client output.
81 string.startswith("DEBUG MODE ENABLED") or 81 string.startswith("DEBUG MODE ENABLED") or
82 string.startswith("tools/nacl-run.py") or 82 string.startswith("tools/nacl-run.py") or
83 string.find("BYPASSING ALL ACL CHECKS") > 0 or 83 string.find("BYPASSING ALL ACL CHECKS") > 0 or
84 string.find("Native Client module will be loaded") > 0 or 84 string.find("Native Client module will be loaded") > 0 or
85 string.find("NaClHostDescOpen:") > 0) 85 string.find("NaClHostDescOpen:") > 0)
86 86
(...skipping 18 matching lines...) Expand all
105 if not re.match(pattern, actual): 105 if not re.match(pattern, actual):
106 return True 106 return True
107 return False 107 return False
108 108
109 def StripOutputForTransmit(self, testcase): 109 def StripOutputForTransmit(self, testcase):
110 pass 110 pass
111 111
112 112
113 def GetSuite(name, root): 113 def GetSuite(name, root):
114 return MessageTestSuite(name, root) 114 return MessageTestSuite(name, root)
OLDNEW
« no previous file with comments | « test/message/message.status ('k') | test/mjsunit/compiler/compare-map-elim.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698