at 17.09-beta 458 B view raw
1import ./make-test.nix ({ pkgs, ... }: { 2 name = "mathics"; 3 meta = with pkgs.stdenv.lib.maintainers; { 4 maintainers = [ benley ]; 5 }; 6 7 nodes = { 8 machine = { config, pkgs, ... }: { 9 services.mathics.enable = true; 10 services.mathics.port = 8888; 11 }; 12 }; 13 14 testScript = '' 15 startAll; 16 $machine->waitForUnit("mathics.service"); 17 $machine->waitForOpenPort(8888); 18 $machine->succeed("curl http://localhost:8888/"); 19 ''; 20})