| Index: test/cctest/testcfg.py
|
| ===================================================================
|
| --- test/cctest/testcfg.py (revision 7276)
|
| +++ test/cctest/testcfg.py (working copy)
|
| @@ -34,11 +34,12 @@
|
|
|
| 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])
|
| @@ -50,6 +51,7 @@
|
| 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)
|
| @@ -75,7 +77,7 @@
|
| 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'
|
| @@ -93,7 +95,7 @@
|
| 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
|
|
|
|
|