feat: initial support for e2e tests

This commit is contained in:
Jaka Hudoklin 2019-02-20 09:34:15 +01:00
parent b1319684c7
commit 3549610e0e
No known key found for this signature in database
GPG key ID: 6A08896BFD32BD95
5 changed files with 147 additions and 11 deletions

View file

@ -1,8 +1,10 @@
{ lib, ... }:
{ lib, config, pkgs, ... }:
with lib;
{
let
cfg = config.test;
in {
options.test = {
name = mkOption {
description = "Test name";
@ -43,5 +45,16 @@ with lib;
succeed, along with associated error messages for the user.
'';
};
extraCheckInputs = mkOption {
description = "Extra check inputs";
type = types.listOf types.package;
};
check = mkOption {
description = "Script to run as part testing";
type = types.nullOr types.lines;
default = null;
};
};
}