nixosTests.cntr: handleTest -> runTest
This commit is contained in:
parent
501fabc856
commit
9b445d3596
@ -321,7 +321,13 @@ in
|
|||||||
cloud-init = runTest ./cloud-init.nix;
|
cloud-init = runTest ./cloud-init.nix;
|
||||||
cloud-init-hostname = runTest ./cloud-init-hostname.nix;
|
cloud-init-hostname = runTest ./cloud-init-hostname.nix;
|
||||||
cloudlog = runTest ./cloudlog.nix;
|
cloudlog = runTest ./cloudlog.nix;
|
||||||
cntr = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./cntr.nix { };
|
cntr = import ./cntr.nix {
|
||||||
|
inherit (pkgs) lib;
|
||||||
|
runTest = runTestOn [
|
||||||
|
"aarch64-linux"
|
||||||
|
"x86_64-linux"
|
||||||
|
];
|
||||||
|
};
|
||||||
cockpit = runTest ./cockpit.nix;
|
cockpit = runTest ./cockpit.nix;
|
||||||
cockroachdb = handleTestOn [ "x86_64-linux" ] ./cockroachdb.nix { };
|
cockroachdb = handleTestOn [ "x86_64-linux" ] ./cockroachdb.nix { };
|
||||||
code-server = runTest ./code-server.nix;
|
code-server = runTest ./code-server.nix;
|
||||||
|
@ -1,28 +1,19 @@
|
|||||||
# Test for cntr tool
|
# Test for cntr tool
|
||||||
{
|
|
||||||
system ? builtins.currentSystem,
|
{ runTest, lib }:
|
||||||
config ? { },
|
|
||||||
pkgs ? import ../.. { inherit system config; },
|
|
||||||
lib ? pkgs.lib,
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
|
|
||||||
|
|
||||||
mkOCITest =
|
mkOCITest =
|
||||||
backend:
|
backend:
|
||||||
makeTest {
|
runTest {
|
||||||
name = "cntr-${backend}";
|
name = "cntr-${backend}";
|
||||||
|
|
||||||
meta = {
|
meta.maintainers = with lib.maintainers; [
|
||||||
maintainers = with lib.maintainers; [
|
|
||||||
sorki
|
sorki
|
||||||
mic92
|
mic92
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
|
||||||
nodes = {
|
nodes.${backend} =
|
||||||
${backend} =
|
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = [ pkgs.cntr ];
|
environment.systemPackages = [ pkgs.cntr ];
|
||||||
@ -35,7 +26,6 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
start_all()
|
start_all()
|
||||||
@ -53,18 +43,16 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
mkContainersTest = makeTest {
|
mkContainersTest = runTest {
|
||||||
name = "cntr-containers";
|
name = "cntr-containers";
|
||||||
|
|
||||||
meta = with pkgs.lib.maintainers; {
|
meta.maintainers = with lib.maintainers; [
|
||||||
maintainers = [
|
|
||||||
sorki
|
sorki
|
||||||
mic92
|
mic92
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
|
||||||
nodes.machine =
|
nodes.machine =
|
||||||
{ lib, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = [ pkgs.cntr ];
|
environment.systemPackages = [ pkgs.cntr ];
|
||||||
containers.test = {
|
containers.test = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user