Remove -S option from dotest.py.

llvm-svn: 255361
This commit is contained in:
Zachary Turner 2015-12-11 19:21:49 +00:00
parent 6a188e6c1e
commit 742afdb3d2
5 changed files with 1 additions and 21 deletions

View File

@ -89,9 +89,6 @@ cflags_extras = ''
# The filters (testclass.testmethod) used to admit tests into our test suite.
filters = []
# By default, we do not skip build and cleanup. Use '-S' option to override.
skip_build_and_cleanup = False
# By default, we skip long running test case. Use '-l' option to override.
skip_long_running_test = True

View File

@ -327,9 +327,6 @@ def parseOptionsAndInitTestdirs():
if args.q:
configuration.parsable = True
if args.S:
configuration.skip_build_and_cleanup = True
if args.s:
if args.s.startswith('-'):
usage(parser)

View File

@ -86,7 +86,6 @@ def create_parser():
group = parser.add_argument_group('Runtime behaviour options')
X('-d', 'Suspend the process after launch to wait indefinitely for a debugger to attach')
X('-q', "Don't print extra output from this script.")
X('-S', "Skip the build and cleanup while running the test. Use this option with care as you would need to build the inferior(s) by hand and build the executable(s) with the correct name(s). This can be used with '-# n' to stress test certain test cases for n number of times")
X('-t', 'Turn on tracing of lldb command and other detailed test executions')
group.add_argument('-u', dest='unset_env_varnames', metavar='variable', action='append', help='Specify an environment variable to unset before running the test cases. e.g., -u DYLD_INSERT_LIBRARIES -u MallocScribble')
group.add_argument('--env', dest='set_env_vars', metavar='variable', action='append', help='Specify an environment variable to set to the given value before running the test cases e.g.: --env CXXFLAGS=-O3 --env DYLD_INSERT_LIBRARIES')

View File

@ -1349,7 +1349,7 @@ class Base(unittest2.TestCase):
Do class-wide cleanup.
"""
if doCleanup and not configuration.skip_build_and_cleanup:
if doCleanup:
# First, let's do the platform-specific cleanup.
module = builder_module()
module.cleanup()
@ -2133,8 +2133,6 @@ class Base(unittest2.TestCase):
def buildDefault(self, architecture=None, compiler=None, dictionary=None, clean=True):
"""Platform specific way to build the default binaries."""
if configuration.skip_build_and_cleanup:
return
module = builder_module()
if target_is_android():
dictionary = append_android_envs(dictionary)
@ -2143,16 +2141,12 @@ class Base(unittest2.TestCase):
def buildDsym(self, architecture=None, compiler=None, dictionary=None, clean=True):
"""Platform specific way to build binaries with dsym info."""
if configuration.skip_build_and_cleanup:
return
module = builder_module()
if not module.buildDsym(self, architecture, compiler, dictionary, clean):
raise Exception("Don't know how to build binary with dsym")
def buildDwarf(self, architecture=None, compiler=None, dictionary=None, clean=True):
"""Platform specific way to build binaries with dwarf maps."""
if configuration.skip_build_and_cleanup:
return
module = builder_module()
if target_is_android():
dictionary = append_android_envs(dictionary)
@ -2161,8 +2155,6 @@ class Base(unittest2.TestCase):
def buildDwo(self, architecture=None, compiler=None, dictionary=None, clean=True):
"""Platform specific way to build binaries with dwarf maps."""
if configuration.skip_build_and_cleanup:
return
module = builder_module()
if target_is_android():
dictionary = append_android_envs(dictionary)
@ -2238,8 +2230,6 @@ class Base(unittest2.TestCase):
def cleanup(self, dictionary=None):
"""Platform specific way to do cleanup after build."""
if configuration.skip_build_and_cleanup:
return
module = builder_module()
if not module.cleanup(self, dictionary):
raise Exception("Don't know how to do cleanup with dictionary: "+dictionary)
@ -2755,8 +2745,6 @@ class TestBase(Base):
def build(self, architecture=None, compiler=None, dictionary=None, clean=True):
"""Platform specific way to build the default binaries."""
if configuration.skip_build_and_cleanup:
return
module = builder_module()
if target_is_android():
dictionary = append_android_envs(dictionary)

View File

@ -26,7 +26,6 @@ class SourceManagerTestCase(TestBase):
TestBase.setUp(self)
# Find the line number to break inside main().
self.line = line_number('main.c', '// Set break point at this line.')
configuration.skip_build_and_cleanup = False
@add_test_categories(['pyapi'])
def test_display_source_python(self):