2024-10-18 09:44:59 +01:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
lib,
|
|
|
|
helpers,
|
|
|
|
...
|
|
|
|
}:
|
2023-12-06 13:09:26 +01:00
|
|
|
{
|
|
|
|
perSystem =
|
2024-05-05 19:39:35 +02:00
|
|
|
{
|
2023-12-06 13:09:26 +01:00
|
|
|
pkgs,
|
tests/test-derivation: allow tests to be modules
Use `mkTestDerivationFromNixvimModule` instead of `mkTestDerivation`,
allowing "proper" modules to be used instead of plain attr configs.
This is useful for more complex tests that wish to use `config` or
`options` arguments, e.g:
```nix
{config, options, ...}: {
/* some cool test */
}
```
To allow `tests.dontRun` to be defined on such a test, the module is
allowed to be nested as `module`, e.g:
```nix
{
tests.dontRun = true;
module = {config, options, ...}: {
/* a disabled test */
};
}
```
Also ended up doing some general cleanup, removing an unused function,
etc.
2024-06-29 20:16:16 +01:00
|
|
|
pkgsUnfree,
|
2024-01-06 17:53:31 +01:00
|
|
|
system,
|
2023-12-06 13:09:26 +01:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2024-10-18 09:44:59 +01:00
|
|
|
checks = import ../tests {
|
|
|
|
inherit
|
|
|
|
helpers
|
|
|
|
lib
|
|
|
|
pkgs
|
|
|
|
pkgsUnfree
|
|
|
|
self
|
|
|
|
system
|
|
|
|
;
|
|
|
|
};
|
2024-01-06 17:57:24 +01:00
|
|
|
};
|
2023-12-06 13:09:26 +01:00
|
|
|
}
|