lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

slipshow: init nixos test (#434423)

authored by

Paul Haerle and committed by
GitHub
5ae2d4f4 7f8011dd

+41 -1
+1
nixos/tests/all-tests.nix
··· 1345 1345 simple = runTest ./simple.nix; 1346 1346 sing-box = runTest ./sing-box.nix; 1347 1347 slimserver = runTest ./slimserver.nix; 1348 + slipshow = runTest ./slipshow.nix; 1348 1349 slurm = runTest ./slurm.nix; 1349 1350 snmpd = runTest ./snmpd.nix; 1350 1351 smokeping = runTest ./smokeping.nix;
+35
nixos/tests/slipshow.nix
··· 1 + { 2 + lib, 3 + pkgs, 4 + ... 5 + }: 6 + { 7 + name = "slipshow presentation test"; 8 + 9 + meta.maintainers = with lib.maintainers; [ ethancedwards8 ]; 10 + 11 + nodes.machine = { 12 + environment.systemPackages = with pkgs; [ slipshow ]; 13 + 14 + environment.etc."slipshow".source = pkgs.fetchFromGitHub { 15 + owner = "meithecatte"; 16 + repo = "bbslides"; 17 + rev = "ce1c08cafa71ae36dda8cc581956548b8386ae16"; 18 + hash = "sha256-sOydmvtDeMhNejDkwlsXdrbwtqN6lcNnzTnGzBVRFxA="; 19 + }; 20 + }; 21 + 22 + testScript = 23 + { nodes, ... }: 24 + '' 25 + start_all() 26 + 27 + # it may take around a minute to compile the file and serve it 28 + machine.succeed("slipshow serve /etc/slipshow/bbslides.md &>/dev/null &") 29 + 30 + # slipshow serves defaultly on :8080 and unfortunately cannot 31 + # be changed currently 32 + machine.wait_for_open_port(8080) 33 + machine.succeed("curl -i 0.0.0.0:8080") 34 + ''; 35 + }
+5 -1
pkgs/by-name/sl/slipshow/package.nix
··· 3 3 ocamlPackages, 4 4 fetchFromGitHub, 5 5 versionCheckHook, 6 + nixosTests, 6 7 nix-update-script, 7 8 }: 8 9 ··· 49 50 versionCheckProgramArg = "--version"; 50 51 doInstallCheck = true; 51 52 52 - passthru.updateScript = nix-update-script { }; 53 + passthru = { 54 + tests = { inherit (nixosTests) slipshow; }; 55 + updateScript = nix-update-script { }; 56 + }; 53 57 54 58 meta = { 55 59 description = "Engine for displaying slips, the next-gen version of slides";