Lines Matching full:self
37 def __init__(self, path, file, expected, mode, context, config):
38 super(MessageTestCase, self).__init__(context, path)
39 self.file = file
40 self.expected = expected
41 self.config = config
42 self.mode = mode
44 def IgnoreLine(self, str):
49 def IsFailureOutput(self, output):
50 f = file(self.expected)
56 env = { 'basename': basename(self.file) }
67 outlines = [ s for s in raw_lines if not self.IgnoreLine(s) ]
75 def GetLabel(self):
76 return "%s %s" % (self.mode, self.GetName())
78 def GetName(self):
79 return self.path[-1]
81 def GetCommand(self):
82 result = [self.config.context.GetVm(self.mode)]
83 source = open(self.file).read()
87 result.append(self.file)
90 def GetSource(self):
91 return (open(self.file).read()
93 + open(self.expected).read())
98 def __init__(self, context, root):
99 super(MessageTestConfiguration, self).__init__(context, root)
101 def Ls(self, path):
107 def ListTests(self, current_path, path, mode):
108 mjsunit = [current_path + [t] for t in self.Ls(self.root)]
109 regress = [current_path + ['regress', t] for t in self.Ls(join(self.root, 'regress'))]
110 bugs = [current_path + ['bugs', t] for t in self.Ls(join(self.root, 'bugs'))]
114 if self.Contains(path, test):
115 file_prefix = join(self.root, reduce(join, test[1:], ""))
122 self.context, self))
125 def GetBuildRequirements(self):
128 def GetTestStatus(self, sections, defs):
129 status_file = join(self.root, 'message.status')