diff options
author | Bruno Bigras <bigras.bruno@gmail.com> | 2021-10-06 23:36:02 -0400 |
---|---|---|
committer | Bruno Bigras <bigras.bruno@gmail.com> | 2021-10-14 07:01:56 -0400 |
commit | feb47656e4d36a355b4f889e6f9c4c14a8f255c4 (patch) | |
tree | c1ac64f25c2015230b4d406caa0c377c1cba765f /pkgs | |
parent | 2ceae2db61f6b60e56c3ee54ba38ff43f10574a6 (diff) |
nixos/tests/openresty-lua: test openresty with lua
related to #140655
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/http/nginx/generic.nix | 3 | ||||
-rw-r--r-- | pkgs/servers/http/openresty/default.nix | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index ecbf8071d611f..7465589d636e9 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/pkgs/servers/http/nginx/generic.nix @@ -21,6 +21,7 @@ , preConfigure ? "" , postInstall ? null , meta ? null +, passthru ? { tests = {}; } }: with lib; @@ -146,7 +147,7 @@ stdenv.mkDerivation { inherit (nixosTests) nginx nginx-auth nginx-etag nginx-pubhtml nginx-sandbox nginx-sso; variants = lib.recurseIntoAttrs nixosTests.nginx-variants; acme-integration = nixosTests.acme; - }; + } // passthru.tests; }; meta = if meta != null then meta else { diff --git a/pkgs/servers/http/openresty/default.nix b/pkgs/servers/http/openresty/default.nix index 3c30b2c3ed0a4..5c852de5b64aa 100644 --- a/pkgs/servers/http/openresty/default.nix +++ b/pkgs/servers/http/openresty/default.nix @@ -3,6 +3,7 @@ , lib , fetchurl , postgresql +, nixosTests , ... }@args: @@ -42,6 +43,10 @@ callPackage ../nginx/generic.nix args rec { ln -s $out/nginx/html $out/html ''; + passthru.tests = { + inherit (nixosTests) openresty-lua; + }; + meta = { description = "A fast web application server built on Nginx"; homepage = "https://openresty.org"; |