diff options
author | Marek Mahut <marek.mahut@gmail.com> | 2019-11-03 17:24:22 +0100 |
---|---|---|
committer | Marek Mahut <marek.mahut@gmail.com> | 2019-11-03 17:24:22 +0100 |
commit | e71b1e3363831a1ae0ded2963142a853cc1e926f (patch) | |
tree | 794db72455c8e6e1265073a8141169cf7d9113f3 /nixos/tests/trac.nix | |
parent | f3b8d9bae3589e2c6a6804295b9fc6d21eaac0db (diff) | |
download | nixpkgs-e71b1e3363831a1ae0ded2963142a853cc1e926f.tar nixpkgs-e71b1e3363831a1ae0ded2963142a853cc1e926f.tar.gz nixpkgs-e71b1e3363831a1ae0ded2963142a853cc1e926f.tar.bz2 nixpkgs-e71b1e3363831a1ae0ded2963142a853cc1e926f.tar.lz nixpkgs-e71b1e3363831a1ae0ded2963142a853cc1e926f.tar.xz nixpkgs-e71b1e3363831a1ae0ded2963142a853cc1e926f.tar.zst nixpkgs-e71b1e3363831a1ae0ded2963142a853cc1e926f.zip |
tests: adding trac
Diffstat (limited to 'nixos/tests/trac.nix')
-rw-r--r-- | nixos/tests/trac.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/trac.nix b/nixos/tests/trac.nix new file mode 100644 index 00000000000..643095d947e --- /dev/null +++ b/nixos/tests/trac.nix @@ -0,0 +1,19 @@ +import ./make-test.nix ({ pkgs, ... }: { + name = "trac"; + meta = with pkgs.stdenv.lib.maintainers; { + maintainers = [ mmahut ]; + }; + + nodes = { + machine = { ... }: { + services.trac.enable = true; + }; + }; + + testScript = '' + startAll; + $machine->waitForUnit("trac.service"); + $machine->waitForOpenPort(8000); + $machine->waitUntilSucceeds("curl -L http://localhost:8000/ | grep 'Trac Powered'"); + ''; +}) |