forked from mirrors/nixpkgs
cri-o: add NixOS test via critest
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
parent
cedef0c6c7
commit
1c551f9778
|
@ -72,6 +72,7 @@ in
|
||||||
convos = handleTest ./convos.nix {};
|
convos = handleTest ./convos.nix {};
|
||||||
corerad = handleTest ./corerad.nix {};
|
corerad = handleTest ./corerad.nix {};
|
||||||
couchdb = handleTest ./couchdb.nix {};
|
couchdb = handleTest ./couchdb.nix {};
|
||||||
|
cri-o = handleTestOn ["x86_64-linux"] ./cri-o.nix {};
|
||||||
deluge = handleTest ./deluge.nix {};
|
deluge = handleTest ./deluge.nix {};
|
||||||
dhparams = handleTest ./dhparams.nix {};
|
dhparams = handleTest ./dhparams.nix {};
|
||||||
dnscrypt-proxy2 = handleTestOn ["x86_64-linux"] ./dnscrypt-proxy2.nix {};
|
dnscrypt-proxy2 = handleTestOn ["x86_64-linux"] ./dnscrypt-proxy2.nix {};
|
||||||
|
|
19
nixos/tests/cri-o.nix
Normal file
19
nixos/tests/cri-o.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# This test runs CRI-O and verifies via critest
|
||||||
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
|
name = "cri-o";
|
||||||
|
maintainers = with pkgs.stdenv.lib.maintainers; teams.podman.members;
|
||||||
|
|
||||||
|
nodes = {
|
||||||
|
crio = {
|
||||||
|
virtualisation.cri-o.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
start_all()
|
||||||
|
crio.wait_for_unit("crio.service")
|
||||||
|
crio.succeed(
|
||||||
|
"critest --ginkgo.focus='Runtime info' --runtime-endpoint unix:///var/run/crio/crio.sock"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
})
|
Loading…
Reference in a new issue