aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lldb/docs/resources/test.rst8
-rw-r--r--lldb/docs/testsuite/a-detailed-walkthrough.txt9
-rw-r--r--lldb/packages/Python/lldbsuite/test/README-TestSuite14
3 files changed, 8 insertions, 23 deletions
diff --git a/lldb/docs/resources/test.rst b/lldb/docs/resources/test.rst
index 5275786..2b0e901 100644
--- a/lldb/docs/resources/test.rst
+++ b/lldb/docs/resources/test.rst
@@ -17,8 +17,8 @@ The LLDB test suite consists of three different kinds of test:
the output.
* **API tests**: Integration tests that interact with the debugger through the
SB API. These are written in Python and use LLDB's ``dotest.py`` testing
- framework on top of Python's `unittest2
- <https://docs.python.org/2/library/unittest.html>`_.
+ framework on top of Python's `unittest
+ <https://docs.python.org/3/library/unittest.html>`_.
All three test suites use ``lit`` (`LLVM Integrated Tester
<https://llvm.org/docs/CommandGuide/lit.html>`_ ) as the test driver. The test
@@ -94,7 +94,7 @@ programs from source, run them, and debug the processes.
As mentioned before, ``dotest.py`` is LLDB's testing framework. The
implementation is located under ``lldb/packages/Python/lldbsuite``. We have
several extensions and custom test primitives on top of what's offered by
-`unittest2 <https://docs.python.org/2/library/unittest.html>`_. Those can be
+`unittest <https://docs.python.org/3/library/unittest.html>`_. Those can be
found in
`lldbtest.py <https://github.com/llvm/llvm-project/blob/main/lldb/packages/Python/lldbsuite/test/lldbtest.py>`_.
@@ -146,7 +146,7 @@ the test should be run or not.
::
- @expectedFailure(checking_function_name)
+ @skipTestIfFn(checking_function_name)
In addition to providing a lot more flexibility when it comes to writing the
test, the API test also allow for much more complex scenarios when it comes to
diff --git a/lldb/docs/testsuite/a-detailed-walkthrough.txt b/lldb/docs/testsuite/a-detailed-walkthrough.txt
index 57c9dbc..8a70437 100644
--- a/lldb/docs/testsuite/a-detailed-walkthrough.txt
+++ b/lldb/docs/testsuite/a-detailed-walkthrough.txt
@@ -58,16 +58,15 @@ display their output. For brevity, the '-t' output is not included here.
Notice the 'expected failures=1' message at the end of the run. This is because
of a bug currently in lldb such that setting target.process.output-path to
'stdout.txt' does not have any effect on the redirection of the standard output
-of the subsequent launched process. We are using unittest2 (a backport of new
-unittest features for Python 2.4-2.6) to decorate (mark) the particular test
-method as such:
+of the subsequent launched process. We are using unittest to decorate (mark)
+the particular test method as such:
- @unittest2.expectedFailure
+ @unittest.expectedFailure
# rdar://problem/8435794
# settings set target.process.output-path does not seem to work
def test_set_output_path(self):
-See http://pypi.python.org/pypi/unittest2 for more details.
+See http://docs.python.org/library/unittest.html for more details.
Now let's look inside the test method:
diff --git a/lldb/packages/Python/lldbsuite/test/README-TestSuite b/lldb/packages/Python/lldbsuite/test/README-TestSuite
index f76e836..388f94d 100644
--- a/lldb/packages/Python/lldbsuite/test/README-TestSuite
+++ b/lldb/packages/Python/lldbsuite/test/README-TestSuite
@@ -91,20 +91,6 @@ to the Python test suite under the current 'test' directory.
Contains platform specific plugin to build binaries with dsym/dwarf debugging
info. Other platform specific functionalities may be added in the future.
-- unittest2 directory
-
- Many new features were added to unittest in Python 2.7, including test
- discovery. unittest2 allows you to use these features with earlier versions of
- Python.
-
- It currently has unittest2 0.5.1 from http://pypi.python.org/pypi/unittest2.
- Version 0.5.1 of unittest2 has feature parity with unittest in Python 2.7
- final. If you want to ensure that your tests run identically under unittest2
- and unittest in Python 2.7 you should use unittest2 0.5.1.
-
- Later versions of unittest2 include changes in unittest made in Python 3.2 and
- onwards after the release of Python 2.7.
-
- Profiling dotest.py runs
I used the following command line thingy to do the profiling on a SnowLeopard