• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 the V8 project authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5"""
6Dummy test suite extension with some fruity tests.
7"""
8
9from testrunner.local import testsuite
10from testrunner.objects import testcase
11
12class TestLoader(testsuite.TestLoader):
13  def _list_test_filenames(self):
14    return [
15      'bananas', 'apples', 'cherries', 'mangoes', 'strawberries',
16      'blackberries', 'raspberries',
17    ]
18
19
20class TestSuite(testsuite.TestSuite):
21  def _test_loader_class(self):
22    return TestLoader
23
24  def _test_class(self):
25    return TestCase
26
27
28class TestCase(testcase.D8TestCase):
29  def get_shell(self):
30    return 'd8_mocked.py'
31
32  def _get_files_params(self):
33    return [self.name]
34
35def GetSuite(*args, **kwargs):
36  return TestSuite(*args, **kwargs)
37