summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-12-08 22:15:48 +0000
committerZachary Turner <zturner@google.com>2015-12-08 22:15:48 +0000
commitd865c6b70770d44b1b5e9230299d1597cda6422f (patch)
tree0ee7104229e0e3f48c1ca92cf17a5a17d558aa87 /lldb/packages/Python/lldbsuite/test/dotest.py
parent6b63d576c3baef27ca053dd18625e6e47acd2ae0 (diff)
downloadbcm5719-llvm-d865c6b70770d44b1b5e9230299d1597cda6422f.tar.gz
bcm5719-llvm-d865c6b70770d44b1b5e9230299d1597cda6422f.zip
Remove the -c option from dotest.py.
This seems to be a legacy relic from days gone by where the remote test suite runner operated completely differently than it does today. git blames and comments traced this functionality back to about 2012, and nobody seems to know anything about it now. llvm-svn: 255060
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py78
1 files changed, 0 insertions, 78 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index eed90125212..59317e948ab 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -300,14 +300,6 @@ def parseOptionsAndInitTestdirs():
"functionality (-G lldb-mi, --skip-category lldb-mi) instead.")
sys.exit(1)
- if args.c:
- if args.c.startswith('-'):
- usage(parser)
- configuration.configFile = args.c
- if not os.path.isfile(configuration.configFile):
- print('Config file:', configuration.configFile, 'does not exist!')
- usage(parser)
-
if args.d:
sys.stdout.write("Suspending the process %d to wait for debugger to attach...\n" % os.getpid())
sys.stdout.flush()
@@ -546,38 +538,6 @@ def parseOptionsAndInitTestdirs():
#print("testdirs:", testdirs)
- # Source the configFile if specified.
- # The side effect, if any, will be felt from this point on. An example
- # config file may be these simple two lines:
- #
- # sys.stderr = open("/tmp/lldbtest-stderr", "w")
- # sys.stdout = open("/tmp/lldbtest-stdout", "w")
- #
- # which will reassign the two file objects to sys.stderr and sys.stdout,
- # respectively.
- #
- # See also lldb-trunk/examples/test/usage-config.
- if configuration.configFile:
- # Pass config (a dictionary) as the locals namespace for side-effect.
- execfile(configuration.configFile, globals(), configuration.config)
- #print("config:", config)
- if "pre_flight" in configuration.config:
- configuration.pre_flight = configuration.config["pre_flight"]
- if not six.callable(configuration.pre_flight):
- print("fatal error: pre_flight is not callable, exiting.")
- sys.exit(1)
- if "post_flight" in configuration.config:
- configuration.post_flight = configuration.config["post_flight"]
- if not six.callable(configuration.post_flight):
- print("fatal error: post_flight is not callable, exiting.")
- sys.exit(1)
- if "lldbtest_remote_sandbox" in configuration.config:
- configuration.lldbtest_remote_sandbox = configuration.config["lldbtest_remote_sandbox"]
- if "lldbtest_remote_shell_template" in configuration.config:
- configuration.lldbtest_remote_shell_template = configuration.config["lldbtest_remote_shell_template"]
- #print("sys.stderr:", sys.stderr)
- #print("sys.stdout:", sys.stdout)
-
def getXcodeOutputPaths(lldbRootDirectory):
result = []
@@ -1138,25 +1098,6 @@ def run_suite():
# Now that we have loaded all the test cases, run the whole test suite.
#
- # The pre_flight and post_flight come from reading a config file.
- def getsource_if_available(obj):
- """
- Return the text of the source code for an object if available. Otherwise,
- a print representation is returned.
- """
- import inspect
- try:
- return inspect.getsource(obj)
- except:
- return repr(obj)
-
- if not configuration.noHeaders:
- print("configuration.pre_flight:", getsource_if_available(configuration.pre_flight))
- print("configuration.post_flight:", getsource_if_available(configuration.post_flight))
-
- # If either pre_flight or post_flight is defined, set configuration.test_remote to True.
- configuration.test_remote = configuration.pre_flight or configuration.post_flight
-
# Turn on lldb loggings if necessary.
lldbLoggings()
@@ -1205,15 +1146,9 @@ def run_suite():
iterArchs = False
iterCompilers = False
- if not configuration.archs and "archs" in configuration.config:
- configuration.archs = configuration.config["archs"]
-
if isinstance(configuration.archs, list) and len(configuration.archs) >= 1:
iterArchs = True
- if not configuration.compilers and "compilers" in configuration.config:
- configuration.compilers = configuration.config["compilers"]
-
#
# Add some intervention here to sanity check that the compilers requested are sane.
# If found not to be an executable program, the invalid one is dropped from the list.
@@ -1276,19 +1211,6 @@ def run_suite():
tbl = str.maketrans(' ', '-')
configPostfix = configString.translate(tbl)
- # Check whether we need to split stderr/stdout into configuration
- # specific files.
- if old_stderr.name != '<stderr>' and configuration.config.get('split_stderr'):
- if new_stderr:
- new_stderr.close()
- new_stderr = open("%s.%s" % (old_stderr.name, configPostfix), "w")
- sys.stderr = new_stderr
- if old_stdout.name != '<stdout>' and configuration.config.get('split_stdout'):
- if new_stdout:
- new_stdout.close()
- new_stdout = open("%s.%s" % (old_stdout.name, configPostfix), "w")
- sys.stdout = new_stdout
-
# If we specified a relocated directory to run the test suite, do
# the extra housekeeping to copy the testdirs to a configStringified
# directory and to update sys.path before invoking the test runner.
OpenPOWER on IntegriCloud