mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
nixosTests.nix-ld: migrate to runTest
https://github.com/NixOS/nixpkgs/issues/386873
This commit is contained in:
parent
bdc70ea03c
commit
84137f5adb
2 changed files with 11 additions and 18 deletions
|
@ -914,7 +914,7 @@ in
|
||||||
nifi = runTestOn [ "x86_64-linux" ] ./web-apps/nifi.nix;
|
nifi = runTestOn [ "x86_64-linux" ] ./web-apps/nifi.nix;
|
||||||
nitter = handleTest ./nitter.nix { };
|
nitter = handleTest ./nitter.nix { };
|
||||||
nix-config = handleTest ./nix-config.nix { };
|
nix-config = handleTest ./nix-config.nix { };
|
||||||
nix-ld = handleTest ./nix-ld.nix { };
|
nix-ld = runTest ./nix-ld.nix;
|
||||||
nix-misc = handleTest ./nix/misc.nix { };
|
nix-misc = handleTest ./nix/misc.nix { };
|
||||||
nix-upgrade = handleTest ./nix/upgrade.nix { inherit (pkgs) nixVersions; };
|
nix-upgrade = handleTest ./nix/upgrade.nix { inherit (pkgs) nixVersions; };
|
||||||
nix-required-mounts = runTest ./nix-required-mounts;
|
nix-required-mounts = runTest ./nix-required-mounts;
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
|
{ ... }:
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem,
|
name = "nix-ld";
|
||||||
config ? { },
|
|
||||||
pkgs ? import ../.. { inherit system config; },
|
nodes.machine =
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
|
|
||||||
shared =
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
(pkgs.runCommand "patched-hello" { } ''
|
(pkgs.runCommand "patched-hello" { } ''
|
||||||
install -D -m755 ${pkgs.hello}/bin/hello $out/bin/hello
|
install -D -m755 ${pkgs.hello}/bin/hello $out/bin/hello
|
||||||
|
@ -16,14 +14,9 @@ let
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
|
||||||
{
|
|
||||||
nix-ld = makeTest {
|
|
||||||
name = "nix-ld";
|
|
||||||
nodes.machine = shared;
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
start_all()
|
start_all()
|
||||||
machine.succeed("hello")
|
machine.succeed("hello")
|
||||||
'';
|
'';
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue