diff options
| -rw-r--r-- | lldb/test/README-TestSuite | 9 | ||||
| -rwxr-xr-x | lldb/test/dotest.py | 10 |
2 files changed, 14 insertions, 5 deletions
diff --git a/lldb/test/README-TestSuite b/lldb/test/README-TestSuite index ea2c894bb6f..1c3cecc01fa 100644 --- a/lldb/test/README-TestSuite +++ b/lldb/test/README-TestSuite @@ -11,6 +11,15 @@ o dotest.py directory in order to be recognized by 'dotest.py' test driver as a module which implements a test case, namely, Test*.py. + Some example usages: + + 1. ./dotest.py -v . 2> ~/Developer/Log/lldbtest.log0 + This runs the test suite and directs the run log to a file. + + 2. LLDB_LOG=/tmp/lldb.log GDB_REMOTE_LOG=/tmp/gdb-remote.log ./dotest.py -v . 2> ~/Developer/Log/lldbtest.log + This runs the test suite, with logging turned on for the lldb as well as + the process.gdb-remote channels and directs the run log to a file. + o lldbtest.py Provides an abstract base class of lldb test case named 'TestVase', which in diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index 24272738423..72eca67d297 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -50,8 +50,8 @@ testdirs = [ os.getcwd() ] # Separator string. separator = '-' * 70 -# Decorated sys.stdout. -out = _WritelnDecorator(sys.stdout) +# Decorated sys.stderr for our consumption. +err = _WritelnDecorator(sys.stderr) def usage(): @@ -157,10 +157,10 @@ for testdir in testdirs: os.path.walk(testdir, visit, 'Test') # Now that we have loaded all the test cases, run the whole test suite. -out.writeln(separator) -out.writeln("Collected %d test%s" % (suite.countTestCases(), +err.writeln(separator) +err.writeln("Collected %d test%s" % (suite.countTestCases(), suite.countTestCases() != 1 and "s" or "")) -out.writeln() +err.writeln() # For the time being, let's bracket the test runner within the # lldb.SBDebugger.Initialize()/Terminate() pair. |

