Merge: More limit on tests
authorJean Privat <jean@pryen.org>
Wed, 17 Jun 2015 19:47:24 +0000 (15:47 -0400)
committerJean Privat <jean@pryen.org>
Wed, 17 Jun 2015 19:47:24 +0000 (15:47 -0400)
commit05653379cb6b81baabc6028594dae6bfdb4a23cb
treeba52636c470a9a7de4c8c6c11ba5f87fdb5e6904
parentbc338fda88affb11ec3284c20bdd349de22150d1
parent7779fdb3aedfbe66fbd37d5767f035dd1dd8886a
Merge: More limit on tests

Implemented more kind of size and time limits in `tests.sh` so that broken tests will not fill the disk with useless garbage.

realtimelimit is the existing time limit (in seconds)
It is used to avoid waiting or sleeping tests.
It requires timeout or timelimit, or else is not used.
The main change is the name (there is one now) and is lowered to 5 min

usertimelimit is an additional user CPU time limit (in seconds)
It is used to avoid to CPU intensive test (infinite loops). See ulimit -t
Is set to 1 CPU minute

filelimit is the user limit for write files (in kilo-bytes)
Is used to avoid execution that loop and fill the hard drive. See ulimit -f
Note that a test might require a lot of temporary disk space (eg. nitc+gcc) so it is set to approximately 100MB

reslimit is the limit (in bytes) for generated .res file.
Larger ones are truncated and will fail tests
It is used to avoid processing huge crappy res file (diff, xml, etc)
Is set to approximately 100KB

Pull-Request: #1454
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
tests/nitcg.skip
tests/test_string_long.nit
tests/tests.sh