diff options
author | Maxime Devos <maximedevos@telenet.be> | 2021-06-28 20:44:16 +0200 |
---|---|---|
committer | Mathieu Othacehe <othacehe@gnu.org> | 2021-06-30 13:53:00 +0200 |
commit | 5532371a3a25adaa023a00ae1004c2f422f3abc8 (patch) | |
tree | 36b9ce9fcf4dbdebbf7cbbb418a97089c6ef18e8 /tests/test.drv | |
parent | d9e0ae07db5cb9f949c11f4ee77146a070c2618c (diff) | |
download | guix-5532371a3a25adaa023a00ae1004c2f422f3abc8.tar.gz |
lint: Verify if #:tests? is respected in the 'check' phase.
There have been a few patches to the mailing list lately not respecting this, and this linter detects 630 package definitions that could be modified to support the --without-tests package transformation. * guix/lint.scm (check-optional-tests): New linter. (%local-checkers)[optional-tests]: Add it. * tests/lint.scm (package-with-phase-changes): New procedure. ("optional-tests: no check phase") ("optional-tests: check hase respects #:tests?") ("optional-tests: check phase ignores #:tests?") ("optional-tests: do not crash when #:phases is invalid") ("optional-tests: allow G-exps (no warning)") ("optional-tests: allow G-exps (warning)") ("optional-tests: complicated 'check' phase") ("optional-tests: 'check' phase is not first phase"): New tests. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Diffstat (limited to 'tests/test.drv')
0 files changed, 0 insertions, 0 deletions