aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/tools/testrunner/local/fake_testsuite/testcfg.py
blob: 61d75fb991a686630b40785432a3d336c4ea00b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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 TestSuite(testsuite.TestSuite):
  def _test_class(self):
    return testsuite.TestCase

  def ListTests(self):
    fast = self._create_test("fast")
    slow = self._create_test("slow")
    slow._statusfile_outcomes.append(statusfile.SLOW)
    yield fast
    yield slow

def GetSuite(*args, **kwargs):
  return TestSuite(*args, **kwargs)