mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
cf3328e7e3
This is needed for cross-compilation.
22 lines
486 B
Nix
22 lines
486 B
Nix
# This test runs rabbitmq and checks if rabbitmq is up and running.
|
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "rabbitmq";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ eelco offline ];
|
|
};
|
|
|
|
machine = {
|
|
services.rabbitmq.enable = true;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
|
|
machine.wait_for_unit("rabbitmq.service")
|
|
machine.wait_until_succeeds(
|
|
'su -s ${pkgs.runtimeShell} rabbitmq -c "rabbitmqctl status"'
|
|
)
|
|
'';
|
|
})
|