1#!/usr/bin/env python 2# Copyright 2019 the V8 project authors. All rights reserved. 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5 6import sys 7 8from testrunner.local import testsuite, statusfile 9 10 11class TestLoader(testsuite.TestLoader): 12 def _list_test_filenames(self): 13 return ["fast", "slow"] 14 15 def list_tests(self): 16 self.test_count_estimation = 2 17 fast = self._create_test("fast", self.suite) 18 slow = self._create_test("slow", self.suite) 19 20 slow._statusfile_outcomes.append(statusfile.SLOW) 21 yield fast 22 yield slow 23 24 25class TestSuite(testsuite.TestSuite): 26 def _test_loader_class(self): 27 return TestLoader 28 29 def _test_class(self): 30 return testsuite.TestCase 31 32def GetSuite(*args, **kwargs): 33 return TestSuite(*args, **kwargs) 34