nixosTests.chrony: handleTest -> runTest
This commit is contained in:
parent
1fe7725039
commit
4f26991b9f
@ -311,7 +311,7 @@ in
|
|||||||
charliecloud = runTest ./charliecloud.nix;
|
charliecloud = runTest ./charliecloud.nix;
|
||||||
chromadb = runTest ./chromadb.nix;
|
chromadb = runTest ./chromadb.nix;
|
||||||
chromium = (handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./chromium.nix { }).stable or { };
|
chromium = (handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./chromium.nix { }).stable or { };
|
||||||
chrony = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./chrony.nix { };
|
chrony = runTestOn [ "aarch64-linux" "x86_64-linux" ] ./chrony.nix;
|
||||||
chrony-ptp = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./chrony-ptp.nix { };
|
chrony-ptp = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./chrony-ptp.nix { };
|
||||||
cinnamon = runTest ./cinnamon.nix;
|
cinnamon = runTest ./cinnamon.nix;
|
||||||
cinnamon-wayland = runTest ./cinnamon-wayland.nix;
|
cinnamon-wayland = runTest ./cinnamon-wayland.nix;
|
||||||
|
@ -1,29 +1,23 @@
|
|||||||
import ./make-test-python.nix (
|
{ lib, ... }:
|
||||||
{ lib, ... }:
|
{
|
||||||
{
|
name = "chrony";
|
||||||
name = "chrony";
|
|
||||||
|
|
||||||
meta = {
|
meta.maintainers = with lib.maintainers; [ fpletz ];
|
||||||
maintainers = with lib.maintainers; [ fpletz ];
|
|
||||||
|
nodes.machine = {
|
||||||
|
services.chrony.enable = true;
|
||||||
|
|
||||||
|
specialisation.hardened.configuration = {
|
||||||
|
services.chrony.enableMemoryLocking = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nodes = {
|
testScript = ''
|
||||||
machine = {
|
machine.start()
|
||||||
services.chrony.enable = true;
|
machine.wait_for_unit('multi-user.target')
|
||||||
|
machine.succeed('systemctl is-active chronyd.service')
|
||||||
specialisation.hardened.configuration = {
|
machine.succeed('/run/booted-system/specialisation/hardened/bin/switch-to-configuration test')
|
||||||
services.chrony.enableMemoryLocking = true;
|
machine.succeed('systemctl restart chronyd.service')
|
||||||
};
|
machine.wait_for_unit('chronyd.service')
|
||||||
};
|
'';
|
||||||
};
|
}
|
||||||
|
|
||||||
testScript = ''
|
|
||||||
machine.start()
|
|
||||||
machine.wait_for_unit('multi-user.target')
|
|
||||||
machine.succeed('systemctl is-active chronyd.service')
|
|
||||||
machine.succeed('/run/booted-system/specialisation/hardened/bin/switch-to-configuration test')
|
|
||||||
machine.succeed('systemctl restart chronyd.service')
|
|
||||||
machine.wait_for_unit('chronyd.service')
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user