aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/tools/unittests/testdata/testroot1/test/sweet/testcfg.py
blob: bf9c780621c32959dc35b4a8bb51e926ee3ff203 (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
32
33
# Copyright 2017 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 fruity tests.
"""

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

class TestSuite(testsuite.TestSuite):
  def ListTests(self):
    return map(
        self._create_test, [
          'bananas', 'apples', 'cherries', 'mangoes', 'strawberries',
          'blackberries', 'raspberries',
        ],
    )

  def _test_class(self):
    return TestCase


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

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

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