summaryrefslogtreecommitdiff
path: root/deps/v8/tools/unittests/testdata/testroot2/test/sweet/testcfg.py
blob: 9407769b35f30d170b961680ee56d1395160ba0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 2018 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.

"""
Dummy test suite extension with some flaky fruity tests.
"""

from testrunner.local import testsuite
from testrunner.objects import testcase

class TestSuite(testsuite.TestSuite):
  def ListTests(self, context):
    return map(
        self._create_test,
        ['bananaflakes'],
    )

  def _test_class(self):
    return TestCase


class TestCase(testcase.TestCase):
  def get_shell(self):
    return 'd8_mocked.py'

  def _get_files_params(self, ctx):
    return [self.name]

def GetSuite(name, root):
  return TestSuite(name, root)