summaryrefslogtreecommitdiffstats
path: root/lldb/test/redo.py
Commit message (Collapse)AuthorAgeFilesLines
* Move lldb/test to lldb/packages/Python/lldbsuite/test.Zachary Turner2015-10-281-195/+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
* Add from __future__ import print_function everywhere.Zachary Turner2015-10-231-2/+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
* Convert print statements to print function calls.Zachary Turner2015-10-191-9/+11
| | | | | | | | | 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
* Fix a variety of typos.Bruce Mitchener2015-06-181-1/+1
| | | | | | No functional change. llvm-svn: 239995
* The new ReadStringFromMemory() API does not work correctly with NSStrings ↵Enrico Granata2013-04-231-2/+9
| | | | | | | | | that have an explicit length and no NULL terminator This checkin reverts NSString to the old behavior when appropriate, and cleans up the syntax to call the UTF Reader&Dumper function Incidentally, add a "-d" command-line flag to redo.py with the same semantics as "-d" in dotest.py llvm-svn: 180141
* Fixed the redo.py script to emit correct arch and compiler options after ↵Greg Clayton2012-10-091-6/+8
| | | | | | dotest.py was switched over to use argparse. llvm-svn: 165507
* Take '--help' as well as '-h' as hint to emit the usage output.Johnny Chen2012-08-231-1/+1
| | | | llvm-svn: 162502
* Make the script more friendly when running under python debugger.Johnny Chen2012-05-161-0/+2
| | | | llvm-svn: 156939
* The redo.py script can take no argument where it uses heuristics to find the ↵Johnny Chen2012-05-161-4/+1
| | | | | | latest session directory. llvm-svn: 156931
* Option processing fix: should match '-F' exactly, instead.Johnny Chen2012-05-091-1/+1
| | | | llvm-svn: 156509
* Make redo.py more error-proofFilipe Cabecinhas2012-05-091-2/+8
| | | | | | | Deal with being passed no parameters Remove the infinite loop when it's passed something like --help llvm-svn: 156504
* Add an -F option to the redo.py script to selectively re-run only those ↵Johnny Chen2012-05-071-5/+20
| | | | | | | | | | | | failed sessions whose filenames contain the component(s) specified. For example: ./redo.py -F x86_64 -n 2012-05-07-15_28_24 will redo the failed sessions under the 2012-05-07-15_28_24 directory, but only for session names which contain 'x86_64' in it. llvm-svn: 156335
* Modify redo.py script so that if sessin_dir is left unspecified, it uses the ↵Johnny Chen2012-01-241-11/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | heuristic to find the possible session directories with names starting with %Y-%m-%d- (for example, 2012-01-23-) and employs the one with the latest timestamp. For example: johnny:/Volumes/data/lldb/svn/latest/test $ ./redo.py Using session dir path: /Volumes/data/lldb/svn/latest/test/2012-01-23-11_28_30 adding filterspec: DisassembleRawDataTestCase.test_disassemble_raw_data Running ./dotest.py -C clang -v -t -f DisassembleRawDataTestCase.test_disassemble_raw_data LLDB build dir: /Volumes/data/lldb/svn/latest/build/Debug LLDB-108 Path: /Volumes/data/lldb/svn/latest URL: https://johnny@llvm.org/svn/llvm-project/lldb/trunk Repository Root: https://johnny@llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 148710 Node Kind: directory Schedule: normal Last Changed Author: gclayton Last Changed Rev: 148650 Last Changed Date: 2012-01-21 18:55:08 -0800 (Sat, 21 Jan 2012) Session logs for test failures/errors/unexpected successes will go into directory '2012-01-23-17_04_48' Command invoked: python ./dotest.py -C clang -v -t -f DisassembleRawDataTestCase.test_disassemble_raw_data Configuration: compiler=clang ---------------------------------------------------------------------- Collected 1 test Change dir to: /Volumes/data/lldb/svn/latest/test/python_api/disassemble-raw-data 1: test_disassemble_raw_data (TestDisassembleRawData.DisassembleRawDataTestCase) Test disassembling raw bytes with the API. ... Raw bytes: ['0x48', '0x89', '0xe5'] Disassembled: movq %rsp, %rbp ok Restore dir to: /Volumes/data/lldb/svn/latest/test ---------------------------------------------------------------------- Ran 1 test in 0.233s OK llvm-svn: 148766
* Add processing of '-help' option.Johnny Chen2011-11-301-0/+3
| | | | llvm-svn: 145516
* Comment change.Johnny Chen2011-08-161-0/+1
| | | | llvm-svn: 137749
* Add comment on known restrictions of the current implementation.Johnny Chen2011-08-161-0/+7
| | | | llvm-svn: 137748
* The redo script did not take into account the compiler and architecture ↵Johnny Chen2011-08-161-3/+24
| | | | | | configuration of the failed tests. llvm-svn: 137741
* Add a redo.py script which takes a session directory name as arg and digs ↵Johnny Chen2011-07-291-0/+114
into the directory to find out the tests which failed/errored and need re-running. The dotest.py test driver script is modified to allow specifying multiple -f testclass.testmethod in the command line to accommodate the redo functionality. An example, $ ./redo.py -n 2011-07-29-11_50_14 adding filterspec: TargetAPITestCase.test_find_global_variables_with_dwarf adding filterspec: DisasmAPITestCase.test_with_dsym Running ./dotest.py -v -f TargetAPITestCase.test_find_global_variables_with_dwarf -f DisasmAPITestCase.test_with_dsym ... ---------------------------------------------------------------------- Collected 2 tests 1: test_with_dsym (TestDisasmAPI.DisasmAPITestCase) Exercise getting SBAddress objects, disassembly, and SBAddress APIs. ... ok 2: test_find_global_variables_with_dwarf (TestTargetAPI.TargetAPITestCase) Exercise SBTarget.FindGlobalVariables() API. ... ok ---------------------------------------------------------------------- Ran 2 tests in 15.328s OK llvm-svn: 136533
OpenPOWER on IntegriCloud