diff options
Diffstat (limited to 'nixos/tests/mathics.nix')
-rw-r--r-- | nixos/tests/mathics.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nixos/tests/mathics.nix b/nixos/tests/mathics.nix new file mode 100644 index 000000000000..310b751b4d84 --- /dev/null +++ b/nixos/tests/mathics.nix @@ -0,0 +1,20 @@ +import ./make-test.nix ({ pkgs, ... }: { + name = "mathics"; + meta = with pkgs.stdenv.lib.maintainers; { + maintainers = [ benley ]; + }; + + nodes = { + machine = { config, pkgs, ... }: { + services.mathics.enable = true; + services.mathics.port = 8888; + }; + }; + + testScript = '' + startAll; + $machine->waitForUnit("mathics.service"); + $machine->waitForOpenPort(8888); + $machine->succeed("curl http://localhost:8888/"); + ''; +}) |