Skip to content
  • Johnny Chen's avatar
    Added the capability for the test driver to split the sys.stderr/sys.stdout into · 10093aa5
    Johnny Chen authored
    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
    10093aa5
Loading