2019-11-05 00:36:18 +01:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
2018-03-18 18:21:24 +01:00
|
|
|
name = "transmission";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ coconnor ];
|
|
|
|
};
|
|
|
|
|
2018-07-20 22:56:59 +02:00
|
|
|
machine = { ... }: {
|
2018-03-18 18:21:24 +01:00
|
|
|
imports = [ ../modules/profiles/minimal.nix ];
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 9091 ];
|
|
|
|
|
|
|
|
services.transmission.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
2019-11-05 00:36:18 +01:00
|
|
|
start_all()
|
|
|
|
machine.wait_for_unit("transmission")
|
|
|
|
machine.shutdown()
|
2018-03-18 18:21:24 +01:00
|
|
|
'';
|
|
|
|
})
|