diff options
author | Benjamin Staffin <benley@gmail.com> | 2015-09-08 00:17:21 -0700 |
---|---|---|
committer | Benjamin Staffin <bstaffin@fitbit.com> | 2016-01-02 14:34:55 -0800 |
commit | fe8498f609d2053f1bd835859ebaad0c5363cdfe (patch) | |
tree | 646f4f24fb95919035b6ad7a82072a693f07fde6 /nixos/tests/mathics.nix | |
parent | 92a0140ff83d4622861b0cdbfafe0295ae1afcda (diff) | |
download | nixpkgs-fe8498f609d2053f1bd835859ebaad0c5363cdfe.tar nixpkgs-fe8498f609d2053f1bd835859ebaad0c5363cdfe.tar.gz nixpkgs-fe8498f609d2053f1bd835859ebaad0c5363cdfe.tar.bz2 nixpkgs-fe8498f609d2053f1bd835859ebaad0c5363cdfe.tar.lz nixpkgs-fe8498f609d2053f1bd835859ebaad0c5363cdfe.tar.xz nixpkgs-fe8498f609d2053f1bd835859ebaad0c5363cdfe.tar.zst nixpkgs-fe8498f609d2053f1bd835859ebaad0c5363cdfe.zip |
nixos/mathics: New service and test
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 00000000000..310b751b4d8 --- /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/"); + ''; +}) |