nixosTests.chrony: handleTest -> runTest
This commit is contained in:
parent
1fe7725039
commit
4f26991b9f
@ -311,7 +311,7 @@ in
|
||||
charliecloud = runTest ./charliecloud.nix;
|
||||
chromadb = runTest ./chromadb.nix;
|
||||
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 { };
|
||||
cinnamon = runTest ./cinnamon.nix;
|
||||
cinnamon-wayland = runTest ./cinnamon-wayland.nix;
|
||||
|
@ -1,29 +1,23 @@
|
||||
import ./make-test-python.nix (
|
||||
{ lib, ... }:
|
||||
{
|
||||
name = "chrony";
|
||||
{ lib, ... }:
|
||||
{
|
||||
name = "chrony";
|
||||
|
||||
meta = {
|
||||
maintainers = with lib.maintainers; [ fpletz ];
|
||||
meta.maintainers = with lib.maintainers; [ fpletz ];
|
||||
|
||||
nodes.machine = {
|
||||
services.chrony.enable = true;
|
||||
|
||||
specialisation.hardened.configuration = {
|
||||
services.chrony.enableMemoryLocking = true;
|
||||
};
|
||||
};
|
||||
|
||||
nodes = {
|
||||
machine = {
|
||||
services.chrony.enable = true;
|
||||
|
||||
specialisation.hardened.configuration = {
|
||||
services.chrony.enableMemoryLocking = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
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')
|
||||
'';
|
||||
}
|
||||
)
|
||||
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