Merge: tests: better handling of tests without a sav file
authorJean Privat <jean@pryen.org>
Mon, 28 Apr 2014 15:21:02 +0000 (11:21 -0400)
committerJean Privat <jean@pryen.org>
Mon, 28 Apr 2014 15:21:02 +0000 (11:21 -0400)
commitc8eae83f68a0402349600cbb90fb7e90e6b77961
treec30e460dc2417cf0e0aa8a1456097a9a2365e005
parent6ebd30114093363b4a10a2ce14b9f2efe13de40b
parentf64e3f9e4a29da3651a335de0a711ef180b4bbbb
Merge: tests: better handling of tests without a sav file

In tests, do not tag tests without sav files with *skipped*.
Instead: an empty `.res` file is a *success*, otherwise a non-empty `.res` is a *failure*.

In order to enable the correct behavior for all tests, two special `.skip` files are added to catch regressions in the Nit code.

`cc.skip` skips the C compilation and is used for programs that require a specific but unavailable C library.
Tests in this file are compiled with the `--no-cc` option.

`exec.skip` skips the execution and is used for program whose execution is unsuitable or unreproducible.
Programs that rely on the environ var `NIT_TESTING` in their code may want to drop it and just add themselves to the `exec.skip`

Pull-Request: #423
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
tests/niti.skip