-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.nix
83 lines (76 loc) · 2.24 KB
/
release.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{ nixpkgs ? <nixpkgs>
, system ? builtins.currentSystem
} :
let
handleTest = t: (import "${nixpkgs}/nixos/tests/make-test-python.nix") (import t);
pkgs = (import nixpkgs) {
overlays = [ (import ./default.nix) ];
config.allowUnfree = true;
};
inherit (pkgs) lib;
#nixosTests = import "${nixpkgs}/nixos/tests/all-tests.nix" {
# inherit pkgs system;
# callTest = t: pkgs.lib.hydraJob t.test;
#};
in rec {
# Evaluate overlay packages
inherit (pkgs)
enroot
nhc
target-isns
ipdeny-zones
slurm-spank-stunnel
slurm-spank-pyxis
redfishtool;
# beegfs-client = pkgs.linuxPackages.beegfs;
# Tests
tests = {
infiniband = handleTest ./tests/infiniband.nix {};
nfs-ganesha = handleTest ./tests/nfs-ganesha.nix {};
banner = handleTest ./tests/banner.nix {};
iscsi = handleTest ./tests/iscsi.nix {};
iscsiBoot = handleTest ./tests/iscsiBoot.nix {};
isns = handleTest ./tests/isns.nix {};
kea = handleTest ./tests/kea.nix {};
networkmap = handleTest ./tests/networkmap.nix {};
machine-info = handleTest ./tests/machine-info.nix {};
geoblocking = handleTest ./tests/geoblocking.nix {};
sshCA = handleTest ./tests/sshCA.nix {};
zfsAttrs = handleTest ./tests/zfs-attr.nix {};
userInit = handleTest ./tests/userInit.nix {};
macsec-psk = handleTest ./tests/macsec-psk.nix {};
hostapd-radius = handleTest ./tests/hostapd-radius.nix {};
vxlan = handleTest ./tests/vxlan.nix {};
netboot = import ./tests/netboot.nix { inherit lib pkgs; };
# slurm = handleTest ./tests/slurm.nix {};
};
upstreamTests = {
inherit (pkgs.nixosTests)
borgbackup
influxdb
moosefs
redmine
slurm
telegraf;
grafana = pkgs.nixosTests.grafana.basic;
};
tested = pkgs.releaseTools.aggregate {
name = "tests";
constituents = [
"tests.nfs-ganesha"
"tests.banner"
"tests.sshCA"
# "tests.networkmap"
"tests.zfsAttrs"
# essential upstream tests
"upstreamTests.borgbackup"
"upstreamTests.influxdb"
"upstreamTests.grafana"
"upstreamTests.moosefs"
"upstreamTests.redmine.mysql"
"upstreamTests.redmine.pgsql"
"upstreamTests.slurm"
"upstreamTests.telegraf"
];
};
}