|
1 | 1 | {
|
2 | 2 | system,
|
3 | 3 | pkgs,
|
4 |
| - |
5 | 4 | # Projects the test configuration into a the desired value; usually
|
6 | 5 | # the test runner: `config: config.test`.
|
7 | 6 | callTest,
|
8 |
| - |
9 | 7 | }:
|
10 | 8 | # The return value of this function will be an attrset with arbitrary depth and
|
11 | 9 | # the `anything` returned by callTest at its test leaves.
|
|
14 | 12 | # where said tests are unsupported.
|
15 | 13 | # Example callTest that just extracts the derivation from the test:
|
16 | 14 | # callTest = t: t.test;
|
17 |
| - |
18 | 15 | with pkgs.lib;
|
19 |
| - |
20 | 16 | let
|
21 | 17 | discoverTests =
|
22 | 18 | val:
|
|
36 | 32 | else
|
37 | 33 | val;
|
38 | 34 |
|
39 |
| - /** |
| 35 | + /* |
| 36 | + * |
40 | 37 | Evaluate a test and return a derivation that runs the test as its builder.
|
41 | 38 |
|
42 | 39 | This function is deprecated in favor of runTest and runTestOn, which works
|
|
74 | 71 | */
|
75 | 72 | handleTest = path: args: discoverTests (import path ({ inherit system pkgs; } // args));
|
76 | 73 |
|
77 |
| - /** |
| 74 | + /* |
| 75 | + * |
78 | 76 | See handleTest
|
79 | 77 | */
|
80 | 78 | handleTestOn =
|
@@ -113,11 +111,13 @@ let
|
113 | 111 | findTests r;
|
114 | 112 | runTestOn = systems: arg: if elem system systems then runTest arg else { };
|
115 | 113 | })
|
116 |
| - /** |
| 114 | + /* |
| 115 | + * |
117 | 116 | See https://nixos.org/manual/nixos/unstable/#sec-calling-nixos-tests
|
118 | 117 | */
|
119 | 118 | runTest
|
120 |
| - /** |
| 119 | + /* |
| 120 | + * |
121 | 121 | See https://nixos.org/manual/nixos/unstable/#sec-calling-nixos-tests
|
122 | 122 | */
|
123 | 123 | runTestOn
|
|
140 | 140 | _class = "nixosTest";
|
141 | 141 | node.pkgs = pkgs.pkgsLinux;
|
142 | 142 | };
|
143 |
| - |
144 | 143 | in
|
145 | 144 | {
|
146 |
| - |
147 | 145 | # Testing the test driver
|
148 | 146 | nixos-test-driver = {
|
149 | 147 | extra-python-packages = handleTest ./nixos-test-driver/extra-python-packages.nix { };
|
|
737 | 735 | listmonk = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./listmonk.nix { };
|
738 | 736 | litellm = runTest ./litellm.nix;
|
739 | 737 | litestream = handleTest ./litestream.nix { };
|
| 738 | + lk-jwt-service = runTest ./matrix/lk-jwt-service.nix; |
740 | 739 | lldap = handleTest ./lldap.nix { };
|
741 | 740 | localsend = handleTest ./localsend.nix { };
|
742 | 741 | locate = handleTest ./locate.nix { };
|
|
0 commit comments