Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
26 lines
586 B
Nix
26 lines
586 B
Nix
import ./make-test-python.nix (
|
|
{ lib, pkgs, ... }:
|
|
{
|
|
name = "nginx-mime";
|
|
meta.maintainers = with pkgs.lib.maintainers; [ izorkin ];
|
|
|
|
nodes = {
|
|
server =
|
|
{ pkgs, ... }:
|
|
{
|
|
services.nginx = {
|
|
enable = true;
|
|
virtualHosts."localhost" = { };
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
server.start()
|
|
server.wait_for_unit("nginx")
|
|
# Check optimal size of types_hash
|
|
server.fail("journalctl --unit nginx --grep 'could not build optimal types_hash'")
|
|
server.shutdown()
|
|
'';
|
|
}
|
|
)
|