blob: c8bd4158af5be47fb842341f9f936d96c30ee7cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{
lib,
pkgs,
...
}:
{
name = "slipshow presentation test";
meta.maintainers = with lib.maintainers; [ ethancedwards8 ];
containers.machine = {
environment.systemPackages = with pkgs; [ slipshow ];
environment.etc."slipshow".source = pkgs.fetchFromGitHub {
owner = "meithecatte";
repo = "bbslides";
rev = "ce1c08cafa71ae36dda8cc581956548b8386ae16";
hash = "sha256-sOydmvtDeMhNejDkwlsXdrbwtqN6lcNnzTnGzBVRFxA=";
};
};
testScript =
{ nodes, ... }:
''
start_all()
# it may take around a minute to compile the file and serve it
machine.succeed("slipshow serve -p 6000 /etc/slipshow/bbslides.md &>/dev/null &")
machine.wait_for_open_port(6000)
machine.succeed("curl -i 0.0.0.0:6000")
'';
}
|