| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
The idea behind this patch is to expose the meat of
LLDB's Python infrastructure (test suite, scripts, etc)
as a single package. This makes reusability and code
sharing among sub-packages easy.
Differential Revision: http://reviews.llvm.org/D14131
llvm-svn: 251460
|
|
|
|
| |
llvm-svn: 251444
|
|
|
|
| |
llvm-svn: 251129
|
|
|
|
|
|
|
|
| |
Under Python 2 this has no effect, since map() returns a list.
In Python 3 map() returns an iterable, so wrapping in a list is
necessary to keep the same semantics.
llvm-svn: 251060
|
|
|
|
| |
llvm-svn: 250915
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
This prevents a "too many files" error.
Differential Revision: http://reviews.llvm.org/D13555
llvm-svn: 250044
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The timeout mechanism has been implemented in python,
so there is no more dependence on external utilities
for timing out an inferior dotest.py process.
Platform-specific bits are implemented for POSIX-like
and Windows platforms. There is a small class named
ProcessHelper in process_control.py that needs to be
overridden for platforms that fall outside of the
POSIX-like and Windows platforms.
See http://reviews.llvm.org/D13124 for more details.
llvm-svn: 248834
|
|
|
|
| |
llvm-svn: 248711
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: -SIGHUP doesn't exist on Windows
Reviewers: tfiala
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D13114
llvm-svn: 248434
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* --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
|
|
|
|
|
|
|
|
| |
When doing test event collation from dotest inferiors to the parallel test
runner, I had a hard-coded small value for the socket backlog. Fix it to
be 2*num workers so we don't fail socket connections from inferiors.
llvm-svn: 248337
|
|
|
|
|
|
|
| |
Windows gets threading-pool, OS X versions < 10.10 get
multiprocessing, everyone else gets threading.
llvm-svn: 248323
|
|
|
|
|
|
|
| |
This one does not create a session, but just creates a
new process group in the same session.
llvm-svn: 248306
|
|
|
|
|
|
|
|
| |
I'm seeing timed out tests not properly timing out on the Linux
build bot after this change. Not sure if it is related but
seems suspect.
llvm-svn: 248284
|
|
|
|
|
|
|
| |
This increases isolation as it relates to signal handling between parent and
children.
llvm-svn: 248282
|
|
|
|
|
|
|
|
|
|
|
|
| |
printing to stdout
The parallel test runner now sends the terminate event to the formatter
(if there is one) after the parallel test runs but before dumping anything
to stdout/stderr at the end of the run. This allows the existing
stdout/stderr summary reporting to co-exist nicely with a formatter like
the test_results.Curses that otherwise clobbers the screen.
llvm-svn: 248228
|
|
|
|
|
|
|
|
|
| |
- rename "Failures" window to "Completed Tests"
- Remove the extra lock that I incorrectly added to the ResultsFormatter as it already had one
- Init the curses GUI with the right number of jobs when handling the "intialize" event
- tear down the curses GUI when tests complete
llvm-svn: 248179
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On OS X, we're occasionally seeing sighups come in to what
looks like the whole test runner process group (all the
multiprocessing workers and the main process). It's not due
to a lost console. This change has the main parallel test runner
process and the child worker processes ignore sighup.
Covers:
https://llvm.org/bugs/show_bug.cgi?id=24846
llvm-svn: 248141
|
|
|
|
| |
llvm-svn: 248075
|
|
|
|
|
|
|
|
| |
curses is implemented. Try it out with:
./dotest.py --results-formatter=test_results.Curses --results-file=/dev/stdout
llvm-svn: 248072
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
See the following for details:
http://reviews.llvm.org/D12987
llvm-svn: 248059
|
|
|
|
|
|
| |
See http://reviews.llvm.org/D12983 for details.
llvm-svn: 248036
|
|
|
|
| |
llvm-svn: 247877
|
|
|
|
|
|
|
|
| |
Also introduces the test event system into our test runner framework.
See the following for details:
http://reviews.llvm.org/D12831
llvm-svn: 247722
|
|
|
|
| |
llvm-svn: 247552
|
|
|
|
|
|
|
|
| |
See http://reviews.llvm.org/D12651 for more details.
For the parallel test runner, -v now also implies --output-on-success.
llvm-svn: 247084
|
|
|
|
|
|
|
| |
See the following for details:
http://reviews.llvm.org/D12587
llvm-svn: 246794
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
There was a race condition in the AsyncThread, where we would end up sending a vAttach
notification to the thread before it got a chance set up its listener (this can be reproduced by
adding a sleep() at the very beginning of ProcessGDBRemote::AsyncThread()). This event would then
get lost and we LLDB would deadlock. I fix this by setting up the listener early on, in the
ProcessGDBRemote constructor.
This should improve the stability of all attach tests. For now, I am removing XTIMEOUT from
TestAttachResume, and will watch the buildbots for signs of trouble.
Reviewers: clayborg, ovyalov
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D12552
llvm-svn: 246756
|
|
|
|
| |
llvm-svn: 245532
|
|
|
|
| |
llvm-svn: 245477
|
|
|
|
| |
llvm-svn: 245464
|
|
|
|
| |
llvm-svn: 245460
|
|
|
|
| |
llvm-svn: 245066
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: zturner, clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11846
llvm-svn: 244784
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: zturner
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11910
llvm-svn: 244783
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: zturner
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11909
llvm-svn: 244782
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: Update to D11816.
Reviewers: zturner
Subscribers: zturner, lldb-commits
Differential Revision: http://reviews.llvm.org/D11843
llvm-svn: 244781
|
|
|
|
| |
llvm-svn: 244663
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously all test output was reported by each individual
instance of dotest.py. After a recent patch, dosep gets dotest
outptu via a pipe, and selectively decides which output to
print.
This breaks certain scripts which rely on having full output
of each dotest instance to do various parsing and/or log-scraping.
While we make no promises about the format of dotest output, it's
easy to restore this to the old behavior for now, although it is
behind a flag. To re-enable full output, run dosep.py with the -s
option.
Differential Revision: http://reviews.llvm.org/D11816
Reviewed By: Chaoren Lin
llvm-svn: 244469
|
|
|
|
| |
llvm-svn: 244069
|
|
|
|
| |
llvm-svn: 242932
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: - launch dotest with gtimeout if found on Windows
Reviewers: chaoren
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11368
llvm-svn: 242699
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
On windows, global python variables are not automatically passed to child processes. This commit
makes sure the default timeout value is available to child processes by passing it directly.
I pass the whole dotest_opts value to the children, so we can use the other members as well if we
need to do it in the future.
Reviewers: amccarth
Subscribers: lldb-commits-list
Differential Revision: http://reviews.llvm.org/D10895
llvm-svn: 241459
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Current default is 10 minutes, which causes the test suite to run very long in
case of test timeouts. On local linux, each test completes in under 90 seconds in the
slowest configuration (debug build of lldb, using debug clang to build
inferiors). I am changing the default to 4m on local targets, while retaining
the 10m timeout for remote ones.
Reviewers: sivachandra, vharron
Subscribers: tberghammer, lldb-commits
Differential Revision: http://reviews.llvm.org/D10527
llvm-svn: 240946
|
|
|
|
| |
llvm-svn: 240327
|
|
|
|
| |
llvm-svn: 239450
|
|
|
|
| |
llvm-svn: 239258
|