Added the capability for the test driver to split the sys.stderr/sys.stdout into
authorJohnny Chen <johnny.chen@apple.com>
Tue, 12 Oct 2010 21:35:54 +0000 (21:35 +0000)
committerJohnny Chen <johnny.chen@apple.com>
Tue, 12 Oct 2010 21:35:54 +0000 (21:35 +0000)
commit10093aa5346093352c17b2f8fddab4e0fa1a3255
tree7edf5656d7ae7ef01307ee40aefdf6441bbe998e
parent6b66081626fc6711ec1ed8f6ab016c8ca2aa08fb
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
lldb/examples/test/.lldbtest-config
lldb/test/dotest.py