aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/nixos/tests/mathics.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/tests/mathics.nix')
-rw-r--r--nixpkgs/nixos/tests/mathics.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/mathics.nix b/nixpkgs/nixos/tests/mathics.nix
new file mode 100644
index 00000000000..fcbeeb18a72
--- /dev/null
+++ b/nixpkgs/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 = { ... }: {
+ services.mathics.enable = true;
+ services.mathics.port = 8888;
+ };
+ };
+
+ testScript = ''
+ startAll;
+ $machine->waitForUnit("mathics.service");
+ $machine->waitForOpenPort(8888);
+ $machine->succeed("curl http://localhost:8888/");
+ '';
+})