summaryrefslogtreecommitdiff
path: root/deps/v8/tools/unittests/testdata/testroot2/test/sweet/testcfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/tools/unittests/testdata/testroot2/test/sweet/testcfg.py')
-rw-r--r--deps/v8/tools/unittests/testdata/testroot2/test/sweet/testcfg.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/deps/v8/tools/unittests/testdata/testroot2/test/sweet/testcfg.py b/deps/v8/tools/unittests/testdata/testroot2/test/sweet/testcfg.py
new file mode 100644
index 0000000000..9407769b35
--- /dev/null
+++ b/deps/v8/tools/unittests/testdata/testroot2/test/sweet/testcfg.py
@@ -0,0 +1,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)