nixos/tests/robustirc-bridge: init
This commit is contained in:
parent
9376dd8516
commit
2bd6f0744f
|
@ -298,6 +298,7 @@ in
|
|||
redis = handleTest ./redis.nix {};
|
||||
redmine = handleTest ./redmine.nix {};
|
||||
restic = handleTest ./restic.nix {};
|
||||
robustirc-bridge = handleTest ./robustirc-bridge.nix {};
|
||||
roundcube = handleTest ./roundcube.nix {};
|
||||
rspamd = handleTest ./rspamd.nix {};
|
||||
rss2email = handleTest ./rss2email.nix {};
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
import ./make-test-python.nix ({ pkgs, ... }:
|
||||
|
||||
{
|
||||
name = "robustirc-bridge";
|
||||
meta = with pkgs.stdenv.lib.maintainers; {
|
||||
maintainers = [ hax404 ];
|
||||
};
|
||||
|
||||
nodes =
|
||||
{ bridge =
|
||||
{ services.robustirc-bridge = {
|
||||
enable = true;
|
||||
extraFlags = [
|
||||
"-listen localhost:6667"
|
||||
"-network example.com"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
testScript =
|
||||
''
|
||||
start_all()
|
||||
|
||||
bridge.wait_for_unit("robustirc-bridge.service")
|
||||
bridge.wait_for_open_port(1080)
|
||||
bridge.wait_for_open_port(6667)
|
||||
'';
|
||||
})
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
||||
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "robustirc-bridge";
|
||||
|
@ -17,6 +17,8 @@ buildGoModule rec {
|
|||
install -D robustirc-bridge.1 $out/share/man/man1/robustirc-bridge.1
|
||||
'';
|
||||
|
||||
passthru.tests.robustirc-bridge = nixosTests.robustirc-bridge;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Bridge to robustirc.net-IRC-Network";
|
||||
homepage = "https://robustirc.net/";
|
||||
|
|
Loading…
Reference in New Issue