1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 05:52:53 +02:00
llvm-mirror/utils
Dan Liew d6419a3e16 [lit] Implement support of per test timeout in lit.
This should work with ShTest (executed externally or internally) and GTest
test formats.

To set the timeout a new option ``--timeout=`` has
been added which specifies the maximum run time of an individual test
in seconds. By default this 0 which causes no timeout to be enforced.

The timeout can also be set from a lit configuration file by modifying
the ``lit_config.maxIndividualTestTime`` property.

To implement a timeout we now require the psutil Python module if a
 timeout is requested. This dependency is confined to the newly added
 ``lit.util.killProcessAndChildren()``. A note has been added into the
 TODO document describing how we can remove the dependency on the
 ``pustil`` module in the future. It would be nice to remove this
 immediately but that is a lot more work and Daniel Dunbar believes it is
better that we get a working implementation first and then improve it.

To avoid breaking the existing behaviour the psutil module will not be
imported if no timeout is requested.

The included testcases are derived from test cases provided by
 Jonathan Roelofs which were in an previous attempt to add a per test
 timeout to lit (http://reviews.llvm.org/D6584). Thanks Jonathan!

Reviewers: ddunbar, jroelofs, cmatthews, MatzeB

Subscribers: cmatthews, llvm-commits

Differential Revision: http://reviews.llvm.org/D14706

llvm-svn: 256471
2015-12-27 14:03:49 +00:00
..
bugpoint
buildit
count
crosstool
emacs Cleaning up LLVM IR mode for Emacs. 2015-09-10 13:44:28 +00:00
FileCheck StringRef-ify some Option APIs 2015-11-17 19:00:52 +00:00
fpcmp
git
git-svn
jedit
kate
KillTheDoctor
lint
lit [lit] Implement support of per test timeout in lit. 2015-12-27 14:03:49 +00:00
llvm-build Fix Clang-tidy modernize-use-nullptr warnings in source directories and generated files; other minor cleanups. 2015-10-06 23:24:35 +00:00
llvm-lit
Misc
not
PerfectShuffle Reordering fields to reduce padding in LLVM. NFC 2015-12-14 21:57:05 +00:00
release Check in the script for building Win snapshots 2015-12-11 00:43:42 +00:00
TableGen [X86][PKU] Add {RD,WR}PKRU encoding 2015-12-24 08:25:00 +00:00
Target/ARM
testgen
textmate
unittest Reordering fields to reduce padding in LLVM. NFC 2015-12-14 21:57:05 +00:00
valgrind
vim HHVM calling conventions. 2015-09-29 22:09:16 +00:00
yaml-bench
bisect
check-each-file
clang-parse-diagnostics-file
codegen-diff
countloc.sh
create_ladder_graph.py
DSAclean.py
DSAextract.py
findmisopt
findoptdiff
findsym.pl
GenLibDeps.pl
GetRepositoryPath
GetSourceVersion
getsrcs.sh
lldbDataFormatters.py
llvm-compilers-check
llvm-native-gxx
llvm.grm
llvm.natvis
LLVMBuild.txt
llvmdo
llvmgrep
Makefile
makellvm
schedcover.py [MISched] Python script to check coverage of misched info 2015-10-12 08:50:47 +00:00
shuffle_fuzz.py [Utils] Updated shuffle fuzz script to generate more modern (valid) IR. 2015-11-22 16:04:32 +00:00
sort_includes.py
test_debuginfo.pl
update_llc_test_checks.py Make utils/update_llc_test_checks.py note that the assertions are 2015-11-23 21:33:58 +00:00
UpdateCMakeLists.pl
wciia.py