summaryrefslogtreecommitdiffstats
path: root/lldb/test/dotest_args.py
Commit message (Collapse)AuthorAgeFilesLines
* Move lldb/test to lldb/packages/Python/lldbsuite/test.Zachary Turner2015-10-281-194/+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
* Deprecate -m/+m dotest options in favor of test categoriesPavel Labath2015-10-271-2/+2
| | | | | | | | | | | | | | | | | | | Summary: This change deprecates -m/+m dotest options (the options are still recognized but they print an error message pointing to the new options) and adds a new lldb-mi test category instead. To just run lldb-mi tests, use '-G lldb-mi'. To skip lldb-mi tests, use '--skip-category lldb-mi'. All lldb-mi tests are marked as such using the getCategories method on the base MiTestCaseBase class and the @lldbmi_test decorator is not needed. In case one still needs to annotate a specific test function as an lldb-mi test, one can use the @add_test_categories(['lldb-mi']) decorator to achieve that. Reviewers: tfiala, dawn, ki.stfu, abidh Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D14060 llvm-svn: 251400
* Port the python api decorator to use test categoriesPavel Labath2015-10-261-2/+7
| | | | | | | | | | | | | | | | | | Summary: Per discussions on the mailing list, I have implemented a decorator which annotates individual test methods with categories. I have used this framework to replace the '-a' and '+a' command-line switches (now '-G pyapi' and '--skip-category pyapi') and the @python_api_test decorator (now @add_test_categories('pyapi')). The test suite now gives an error message suggesting the new options if the user specifies the deprecated +/-a switches. If the general direction is good, I will follow this up with other switches. Reviewers: tberghammer, tfiala, granata.enrico, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D14020 llvm-svn: 251277
* Remove argparse_compat.Zachary Turner2015-10-231-15/+7
| | | | | | We don't support versions of Python less than 2.7 llvm-svn: 251128
* Convert print statements to print function calls.Zachary Turner2015-10-191-1/+3
| | | | | | | | | This patch was generating by running `2to3` on the files in the lldb/test directory. This patch should be NFC, but it does introduce the `from __future__ import print_function` line, which will break future uses of the print statement. llvm-svn: 250763
* Run tests with dwo symbol filesTamas Berghammer2015-10-071-1/+1
| | | | | | | | | | dwo symbol files are generated when code compiled with the "-gsplit-dwarf" command option (https://gcc.gnu.org/wiki/DebugFission). This CL modifies the test system to run tests with inferiors compile with the "-gsplit-dwarf" Differential revision: http://reviews.llvm.org/D13300 llvm-svn: 249530
* Cleaned up results formatter options hand-off.Todd Fiala2015-09-231-5/+7
| | | | | | | | | | | | | | | | | | | | | | | * --results-formatter-options renamed to --results-formatter-option, with short version of -O * Multiple --results-formatter-option=OPTION can be specified. The comma-separating mechanism has been removed. * XunitFormatter options modified: -n and -r are now short forms of --ignore-skip-name and --ignore-skip-reason. Those long option names were tweaked lightly. They also can be specified multiple times on the command line. The comma-separating, multiple-pattern- per-option mechanism has been removed. One can now specify: dotest.py --results-file stdout -O-ndsym -O-nlldb-mi for example, to ignore reporting skips for dsym-related or lldb-mi-related tests in the xUnit report. llvm-svn: 248384
* test events: added optional value type to extra event key/val pairsTodd Fiala2015-09-181-1/+3
| | | | | | | | | | | | | The test events had worker indexes coming across as strings. I want them to be ints. worker_index now comes across as an int in the dicationary. The optional type can be specified with: --event-add-entries key=val[:type][,key2=val2[:type2]...] The type piece may be 'int' at this time. That is all. Otherwise it will be a string. llvm-svn: 248066
* test events: announce worker count in new initialize eventTodd Fiala2015-09-181-0/+12
| | | | | | | See the following for details: http://reviews.llvm.org/D12987 llvm-svn: 248059
* Adds parallel work queue index to test events, stdout/stderr results support.Todd Fiala2015-09-181-0/+5
| | | | | | See http://reviews.llvm.org/D12983 for details. llvm-svn: 248036
* Add JUnit/XUnit-formatted output to the lldb test run systemTodd Fiala2015-09-151-0/+25
| | | | | | | | Also introduces the test event system into our test runner framework. See the following for details: http://reviews.llvm.org/D12831 llvm-svn: 247722
* dotest.py ctrl-c support, addition of --test-runner-name option.Todd Fiala2015-09-081-1/+7
| | | | | | | | See http://reviews.llvm.org/D12651 for more details. For the parallel test runner, -v now also implies --output-on-success. llvm-svn: 247084
* Roll dosep.py parallel test runner into dotest.py command lineTodd Fiala2015-09-031-0/+27
| | | | | | | See the following for details: http://reviews.llvm.org/D12587 llvm-svn: 246794
* dotest.py - fixed a bug displaying usageVince Harron2015-05-221-3/+2
| | | | | | ./dotest.py --help llvm-svn: 238043
* Refactored dotest arg parser so that it's accessible from dosepVince Harron2015-05-181-0/+117
This allows dosep to understand an act on dotest arguments Differential Revision: http://reviews.llvm.org/D9820 llvm-svn: 237602
OpenPOWER on IntegriCloud