Maxime Devos 5532371a3a
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>
2021-06-30 13:53:00 +02:00
..
2020-12-21 17:47:35 +01:00
2020-06-05 22:54:06 +02:00
2020-06-05 22:54:06 +02:00
2021-06-03 13:05:18 +02:00
2021-03-06 11:41:48 +01:00
2020-12-09 22:25:17 +01:00
2021-04-12 18:42:22 +02:00
2021-06-29 14:53:21 -04:00
2021-05-16 23:28:11 +02:00
2021-03-06 11:41:48 +01:00
2021-02-03 12:41:28 +01:00