# Test classes.
-class TestFormat:
- """TestFormat - Test information provider."""
-
- def __init__(self, name):
- self.name = name
-
class TestSuite:
"""TestSuite - Information on a group of tests.
from __future__ import absolute_import
-from lit.formats.base import FileBasedTest, OneCommandPerFileTest
+from lit.formats.base import TestFormat, FileBasedTest, OneCommandPerFileTest
from lit.formats.googletest import GoogleTest
from lit.formats.shtest import ShTest
import lit.Test
import lit.util
-class FileBasedTest(object):
+class TestFormat(object):
+ pass
+
+###
+
+class FileBasedTest(TestFormat):
def getTestsInDirectory(self, testSuite, path_in_suite,
litConfig, localConfig):
source_path = testSuite.getSourcePath(path_in_suite)
import re
import tempfile
-class OneCommandPerFileTest:
+class OneCommandPerFileTest(TestFormat):
# FIXME: Refactor into generic test for running some command on a directory
# of inputs.
import lit.Test
import lit.TestRunner
import lit.util
+from .base import TestFormat
kIsWindows = sys.platform in ['win32', 'cygwin']
-class GoogleTest(object):
+class GoogleTest(TestFormat):
def __init__(self, test_sub_dir, test_suffix):
self.test_sub_dir = os.path.normcase(str(test_sub_dir)).split(';')
self.test_suffix = str(test_suffix)