vendor/v8/test/cctest/testcfg.py in mustang-0.0.1 vs vendor/v8/test/cctest/testcfg.py in mustang-0.1.0

- old
+ new

@@ -32,25 +32,28 @@ import utils class CcTestCase(test.TestCase): - def __init__(self, path, executable, mode, raw_name, dependency, context): + def __init__(self, path, executable, mode, raw_name, dependency, context, variant_flags): super(CcTestCase, self).__init__(context, path, mode) self.executable = executable self.raw_name = raw_name self.dependency = dependency + self.variant_flags = variant_flags def GetLabel(self): return "%s %s %s" % (self.mode, self.path[-2], self.path[-1]) def GetName(self): return self.path[-1] def BuildCommand(self, name): serialization_file = join('obj', 'test', self.mode, 'serdes') serialization_file += '_' + self.GetName() + serialization_file = join(self.context.buildspace, serialization_file) + serialization_file += ''.join(self.variant_flags).replace('-', '_') serialization_option = '--testing_serialization_file=' + serialization_file result = [ self.executable, name, serialization_option ] result += self.context.GetVmFlags(self, self.mode) return result @@ -72,14 +75,15 @@ super(CcTestConfiguration, self).__init__(context, root) def GetBuildRequirements(self): return ['cctests'] - def ListTests(self, current_path, path, mode): + def ListTests(self, current_path, path, mode, variant_flags): executable = join('obj', 'test', mode, 'cctest') if utils.IsWindows(): executable += '.exe' + executable = join(self.context.buildspace, executable) output = test.Execute([executable, '--list'], self.context) if output.exit_code != 0: print output.stdout print output.stderr return [] @@ -89,10 +93,10 @@ relative_path = raw_test.split('/') full_path = current_path + relative_path if dependency != '': dependency = relative_path[0] + '/' + dependency if self.Contains(path, full_path): - result.append(CcTestCase(full_path, executable, mode, raw_test, dependency, self.context)) + result.append(CcTestCase(full_path, executable, mode, raw_test, dependency, self.context, variant_flags)) result.sort() return result def GetTestStatus(self, sections, defs): status_file = join(self.root, 'cctest.status')