OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2017 the V8 project authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
Michael Achenbach
2017/04/11 09:45:54
THis suite requires .isolate file and linkage to i
| |
5 import os | |
6 | |
7 from testrunner.local import testsuite | |
8 from testrunner.objects import testcase | |
9 | |
10 | |
11 class V8HeapConst(testsuite.TestSuite): | |
Michael Starzinger
2017/04/11 09:42:38
How would you feel about calling this test suite (
Yang
2017/04/11 09:57:20
Done.
| |
12 | |
13 def __init__(self, name, root): | |
14 super(V8HeapConst, self).__init__(name, root) | |
15 | |
16 def ListTests(self, context): | |
17 test = testcase.TestCase(self, self.shell()) | |
18 return [test] | |
19 | |
20 def GetFlagsForTestCase(self, testcase, context): | |
21 return [] | |
22 | |
23 def IsFailureOutput(self, testcase): | |
24 output = testcase.output | |
25 v8_path = os.path.dirname(os.path.dirname(os.path.abspath(self.root))) | |
26 expected_path = os.path.join(v8_path, "tools", "v8heapconst.py") | |
27 with open(expected_path) as f: | |
28 expected = f.read() | |
29 if expected != output.stdout: | |
30 output.stdout = "Please update tools/v8heapconst.py with the output of mkg rokdump!" | |
31 return True | |
32 return False | |
33 | |
34 def shell(self): | |
35 return "mkgrokdump" | |
36 | |
37 def GetSuite(name, root): | |
38 return V8HeapConst(name, root) | |
OLD | NEW |