summaryrefslogtreecommitdiffstats
path: root/lldb/test/lldbpexpect.py
Commit message (Collapse)AuthorAgeFilesLines
* Move lldb/test to lldb/packages/Python/lldbsuite/test.Zachary Turner2015-10-281-59/+0
| | | | | | | | | | | This is the conclusion of an effort to get LLDB's Python code structured into a bona-fide Python package. This has a number of benefits, but most notably the ability to more easily share Python code between different but related pieces of LLDB's Python infrastructure (for example, `scripts` can now share code with `test`). llvm-svn: 251532
* Rename `lldb_shared` to `use_lldb_suite`.Zachary Turner2015-10-271-1/+1
| | | | llvm-svn: 251444
* Add from __future__ import print_function everywhere.Zachary Turner2015-10-231-0/+2
| | | | | | | | | | | | | Apparently there were tons of instances I missed last time, I guess I accidentally ran 2to3 non-recursively. This should be every occurrence of a print statement fixed to use a print function as well as from __future__ import print_function being added to every file. After this patch print statements will stop working everywhere in the test suite, and the print function should be used instead. llvm-svn: 251121
* Update every test to import `lldb_shared`.Zachary Turner2015-10-221-1/+2
| | | | | | | | | | | | | | | | | | | | | This is necessary in order to allow third party modules to be located under lldb/third_party rather than under the test folder directly. Since we're already touching every test file anyway, we also go ahead and delete the unittest2 import and main block wherever possible. The ability to run a test as a standalone file has already been broken for some time, and if we decide we want this back, we should use unittest instead of unittest2. A few places could not have the import of unittest2 removed,because they depend on the unittest2.expectedFailure or skip decorators. Removing all those was orthogonal in spirit to the purpose of this CL, so the import of unittest2 remains in those files that were using it for its test decorators. Those can be addressed separately. llvm-svn: 251055
* Refactored lldb executable name discoveryVince Harron2015-05-181-1/+1
| | | | | | | | | | | | | | | | | | | | The lldb executable was referenced through the code by 7 different (effectively) global variables. global lldbExecutablePath global lldbExecutable os.environ['LLDB_EXEC'] os.environ['LLDB_TEST'] dotest.lldbExec dotest.lldbHere lldbtest.lldbExec This change uses one global variable lldbtest_config.lldbExec to replace them all. Differential Revision: http://reviews.llvm.org/D9817 llvm-svn: 237600
* Add an expectall() API that allows you to pass a list of patterns and have ↵Enrico Granata2015-02-031-0/+7
| | | | | | pexpect match *ALL* of them instead of just picking one llvm-svn: 227938
* Make it easier to see what's going on by tracing the test caseEnrico Granata2015-02-031-1/+2
| | | | llvm-svn: 227936
* Allow customizing the timeout of the inferiorEnrico Granata2015-02-031-2/+4
| | | | llvm-svn: 227906
* And, do not define arguments twiceEnrico Granata2015-02-031-1/+1
| | | | llvm-svn: 227905
* Allow pexpect exact matchesEnrico Granata2015-02-031-8/+12
| | | | llvm-svn: 227904
* Some cleanup in lldbpexpectEnrico Granata2015-02-021-12/+6
| | | | llvm-svn: 227889
* Nice syntax typo in lldbpexpectEnrico Granata2015-02-021-1/+1
| | | | llvm-svn: 227887
* Add an helper class to write pexpect-based test casesEnrico Granata2015-02-021-0/+48
Over time, we should improve this class and port all pexpect based testing over to using this llvm-svn: 227875
OpenPOWER on IntegriCloud