parent
a2429cffa3
commit
85bf23bb12
@ -1,4 +1,4 @@
|
|||||||
import ./make-test.nix ({ pkgs, ...} : {
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
||||||
name = "smokeping";
|
name = "smokeping";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ cransom ];
|
maintainers = [ cransom ];
|
||||||
@ -22,12 +22,12 @@ import ./make-test.nix ({ pkgs, ...} : {
|
|||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
startAll;
|
start_all()
|
||||||
$sm->waitForUnit("smokeping");
|
sm.wait_for_unit("smokeping")
|
||||||
$sm->waitForUnit("thttpd");
|
sm.wait_for_unit("thttpd")
|
||||||
$sm->waitForFile("/var/lib/smokeping/data/Local/LocalMachine.rrd");
|
sm.wait_for_file("/var/lib/smokeping/data/Local/LocalMachine.rrd")
|
||||||
$sm->succeed("curl -s -f localhost:8081/smokeping.fcgi?target=Local");
|
sm.succeed("curl -s -f localhost:8081/smokeping.fcgi?target=Local")
|
||||||
$sm->succeed("ls /var/lib/smokeping/cache/Local/LocalMachine_mini.png");
|
sm.succeed("ls /var/lib/smokeping/cache/Local/LocalMachine_mini.png")
|
||||||
$sm->succeed("ls /var/lib/smokeping/cache/index.html");
|
sm.succeed("ls /var/lib/smokeping/cache/index.html")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user