llvm-project/lldb/packages/Python/lldbsuite/test/test_runner
Todd Fiala 2cd84c905d added Linux support for test timeout sampling
This is the Linux counterpart to the sampling support I added
on the macOS side.

This change also introduces zip-file compression if the size of
the sample output is greater than 10 KB.  The Linux side can be
quite large and the textual content is averaging over a 10x
compression factor on tests that I force to time out.  When
compression takes place, the filename becomes:

    {session_dir}/{TestFilename.py}-{pid}.sample.zip

This support relies on the linux 'perf' tool.  If it isn't
present, the behavior is to ignore pre-kill processing of
the timed out test process.

Note calling the perf tool under the timeout command appears
to nuke the profiled process.  This was causing the timeout
kill logic to fail due to the process having disappeared.
I modified the kill logic to catch the case of the process
not existing, and I have it ignore the kill request in that
case.  Any other exception is still raised.

Reviewers: labath

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D24890

llvm-svn: 282436
2016-09-26 20:25:47 +00:00
..
test *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
README.txt
__init__.py test infra cleanup: convert test_runner lib into package 2016-04-19 04:20:35 +00:00
process_control.py added Linux support for test timeout sampling 2016-09-26 20:25:47 +00:00

README.txt

This directory contains source and tests for the lldb test runner
architecture.  This directory is not for lldb python tests.  It
is the test runner.  The tests under this diretory are test-runner
tests (i.e. tests that verify the test runner itself runs properly).