blob: 28de737155ca314e87857b6e53f6e95f75c0ad13 [file] [log] [blame]
#!/usr/bin/env python
# Copyright 2019 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
from testrunner.local import testsuite, statusfile
class TestLoader(testsuite.TestLoader):
def _list_test_filenames(self):
return ["fast", "slow"]
def list_tests(self):
self.test_count_estimation = 2
fast = self._create_test("fast", self.suite)
slow = self._create_test("slow", self.suite)
slow._statusfile_outcomes.append(statusfile.SLOW)
yield fast
yield slow
class TestSuite(testsuite.TestSuite):
def _test_loader_class(self):
return TestLoader
def _test_class(self):
return testsuite.TestCase
def GetSuite(*args, **kwargs):
return TestSuite(*args, **kwargs)