37539e7768
Previously, after the version bump to v247, we broke journalctl --grep as libpcre2 was lazily loaded during runtime using dlopen(3). This ensures that we have a test case that alerts us when it fails again.
22 lines
505 B
Nix
22 lines
505 B
Nix
import ./make-test-python.nix ({ pkgs, ... }:
|
|
|
|
{
|
|
name = "systemd-journal";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ lewo ];
|
|
};
|
|
|
|
machine = { pkgs, lib, ... }: {
|
|
services.journald.enableHttpGateway = true;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("multi-user.target")
|
|
|
|
machine.succeed("journalctl --grep=systemd")
|
|
|
|
machine.succeed(
|
|
"${pkgs.curl}/bin/curl -s localhost:19531/machine | ${pkgs.jq}/bin/jq -e '.hostname == \"machine\"'"
|
|
)
|
|
'';
|
|
})
|