mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
29 lines
708 B
Nix
29 lines
708 B
Nix
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "novacomd";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ dtzWill ];
|
|
};
|
|
|
|
machine = { ... }: {
|
|
services.novacomd.enable = true;
|
|
};
|
|
|
|
testScript = ''
|
|
startAll;
|
|
|
|
$machine->waitForUnit("novacomd.service");
|
|
|
|
# Check status and try connecting with novacom
|
|
$machine->succeed("systemctl status novacomd.service >&2");
|
|
$machine->succeed("novacom -l");
|
|
|
|
# Stop the daemon, double-check novacom fails if daemon isn't working
|
|
$machine->stopJob("novacomd");
|
|
$machine->fail("novacom -l");
|
|
|
|
# And back again for good measure
|
|
$machine->startJob("novacomd");
|
|
$machine->succeed("novacom -l");
|
|
'';
|
|
})
|