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
..
2021-06-29 14:53:21 -04:00
2021-03-06 11:41:48 +01:00
2019-12-15 00:34:05 +01:00
2020-07-05 03:15:08 +05:30
2021-01-04 23:54:16 +01:00
2020-07-05 16:07:59 +05:30
2021-06-29 14:53:21 -04:00
2020-12-09 22:25:17 +01:00
2020-04-17 23:36:47 +02:00
2021-01-04 23:54:16 +01:00
2021-01-04 23:54:16 +01:00
2021-04-12 18:42:22 +02:00
2021-06-24 23:43:05 +02:00
2020-12-19 23:25:01 +01:00
2021-05-11 12:49:53 +02:00
2021-06-14 18:35:18 +02:00
2021-06-29 00:00:13 +02:00