diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-10-12 21:35:54 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-10-12 21:35:54 +0000 |
commit | 10093aa5346093352c17b2f8fddab4e0fa1a3255 (patch) | |
tree | 7edf5656d7ae7ef01307ee40aefdf6441bbe998e /lldb/examples/test | |
parent | 6b66081626fc6711ec1ed8f6ab016c8ca2aa08fb (diff) | |
download | bcm5719-llvm-10093aa5346093352c17b2f8fddab4e0fa1a3255.tar.gz bcm5719-llvm-10093aa5346093352c17b2f8fddab4e0fa1a3255.zip |
Added the capability for the test driver to split the sys.stderr/sys.stdout into
different configuration-based files using the config file. For example:
sys.stderr = open("/tmp/lldbtest-stderr", "w")
sys.stdout = open("/tmp/lldbtest-stdout", "w")
compilers = ["gcc", "llvm-gcc"]
archs = ["x86_64", "i386"]
split_stderr = True # This will split the stderr into configuration-specific file
split_stdout = True # This will split the stdout into configuration-specific file
will produce:
/tmp/lldbtest-stderr
/tmp/lldbtest-stderr.arch=i386-compiler=gcc
/tmp/lldbtest-stderr.arch=i386-compiler=llvm-gcc
/tmp/lldbtest-stderr.arch=x86_64-compiler=gcc
/tmp/lldbtest-stderr.arch=x86_64-compiler=llvm-gcc
/tmp/lldbtest-stdout
/tmp/lldbtest-stdout.arch=i386-compiler=gcc
/tmp/lldbtest-stdout.arch=i386-compiler=llvm-gcc
/tmp/lldbtest-stdout.arch=x86_64-compiler=gcc
/tmp/lldbtest-stdout.arch=x86_64-compiler=llvm-gcc
as a result of splitting stderr and stdout. In addition, each configuration can have
its individual top level relocated directory to house the test files as well as the
intermediate files by using '-r dir' to relocate the tests into a new relocated directory
instead of running the tests in place.
llvm-svn: 116341
Diffstat (limited to 'lldb/examples/test')
-rw-r--r-- | lldb/examples/test/.lldbtest-config | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/examples/test/.lldbtest-config b/lldb/examples/test/.lldbtest-config index d93ad3b108c..31b48920777 100644 --- a/lldb/examples/test/.lldbtest-config +++ b/lldb/examples/test/.lldbtest-config @@ -2,4 +2,5 @@ sys.stderr = open("/tmp/lldbtest-stderr", "w") sys.stdout = open("/tmp/lldbtest-stdout", "w") compilers = ["gcc", "llvm-gcc"] archs = ["x86_64", "i386"] - +split_stderr = True # This will split the stderr into configuration-specific file +split_stdout = True # This will split the stdout into configuration-specific file |