blob: af33c6c783162590cb4a4c1dfcfe9534279ee9db (
plain)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
{
package,
runTestOn,
}:
let
incusRunTest =
config:
runTestOn [ "x86_64-linux" "aarch64-linux" ] {
imports = [
./incus-tests-module.nix
./incus-tests.nix
];
tests.incus = {
inherit package;
}
// config;
};
in
{
# this is the main test which will test as much as possible
# run this for testing incus upgrades, also available in incus package tests
all = incusRunTest {
name = "all";
appArmor = true;
feature.user = true;
instances = {
c1 = {
type = "container";
};
vm1 = {
type = "virtual-machine";
};
};
network = {
ovs = true;
};
storage = {
lvm = true;
zfs = true;
};
};
channel = incusRunTest {
name = "channel";
instances.c1 = {
type = "container";
copyChannel = true;
};
};
# used in lxc tests to verify container functionality
container = incusRunTest {
name = "container";
instances.c1 = {
type = "container";
};
};
lvm = incusRunTest {
name = "lvm";
storage.lvm = true;
};
openvswitch = incusRunTest {
name = "openvswitch";
network.ovs = true;
};
ui = runTestOn [ "x86_64-linux" "aarch64-linux" ] {
imports = [ ./ui.nix ];
_module.args = { inherit package; };
};
virtual-machine = incusRunTest {
name = "virtual-machine";
instances = {
vm1 = {
type = "virtual-machine";
};
# disabled because never becomes available
# csm = {
# type = "virtual-machine";
# incusConfig.config = {
# "security.csm" = true;
# };
# };
};
};
zfs = incusRunTest {
name = "zfs";
storage.zfs = true;
};
}
|