nixosTests.chrony-ptp: handleTest -> runTest
This commit is contained in:
parent
4f26991b9f
commit
950a25abb6
@ -312,7 +312,7 @@ in
|
|||||||
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 = runTestOn [ "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 = runTestOn [ "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;
|
||||||
cjdns = runTest ./cjdns.nix;
|
cjdns = runTest ./cjdns.nix;
|
||||||
|
@ -1,32 +1,24 @@
|
|||||||
import ./make-test-python.nix (
|
{ lib, ... }:
|
||||||
{ lib, ... }:
|
{
|
||||||
{
|
name = "chrony-ptp";
|
||||||
name = "chrony-ptp";
|
|
||||||
|
|
||||||
meta = {
|
meta.maintainers = with lib.maintainers; [ gkleen ];
|
||||||
maintainers = with lib.maintainers; [ gkleen ];
|
|
||||||
|
nodes.qemuGuest = {
|
||||||
|
boot.kernelModules = [ "ptp_kvm" ];
|
||||||
|
|
||||||
|
services.chrony = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
refclock PHC /dev/ptp_kvm poll 2 dpoll -2 offset 0 stratum 3
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nodes = {
|
testScript = ''
|
||||||
qemuGuest =
|
start_all()
|
||||||
{ lib, ... }:
|
|
||||||
{
|
|
||||||
boot.kernelModules = [ "ptp_kvm" ];
|
|
||||||
|
|
||||||
services.chrony = {
|
qemuGuest.wait_for_unit('multi-user.target')
|
||||||
enable = true;
|
qemuGuest.succeed('systemctl is-active chronyd.service')
|
||||||
extraConfig = ''
|
'';
|
||||||
refclock PHC /dev/ptp_kvm poll 2 dpoll -2 offset 0 stratum 3
|
}
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
testScript = ''
|
|
||||||
start_all()
|
|
||||||
|
|
||||||
qemuGuest.wait_for_unit('multi-user.target')
|
|
||||||
qemuGuest.succeed('systemctl is-active chronyd.service')
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user