| 1 | # What is tested, and where each test's logic lives. |
| 2 | # |
| 3 | # One file per subject, each returning the checks for it. A check's shell |
| 4 | # body is never here: it is a script under checks/, and a check definition |
| 5 | # is only what builds it, what it is given, and why it exists. |
| 6 | # |
| 7 | # hosts.nix the eval-only host declarations the module checks share |
| 8 | # host-module.nix module-eval — what the NixOS module renders from a |
| 9 | # declaration, and what it must refuse |
| 10 | # schema.nix cue-vet, attest-schema — the schemas against the |
| 11 | # examples they accept and the ones they must reject |
| 12 | # knowledge.nix knowledge-lint and its consumer and rejection forms, |
| 13 | # prose-format — the graph and the prose |
| 14 | # attest.nix attest-conformance, attest-e2e — the written form as a |
| 15 | # fixed contract, and the helper driven end to end |
| 16 | # integrator.nix integrator-unit, integrator-e2e — the verdict rules, |
| 17 | # and the controller over real repositories |
| 18 | # hooks.nix mirror-e2e, bus-e2e, protect-e2e — the hooks the module |
| 19 | # renders, run against real git |
| 20 | # cli.nix valley-cli, review-notes, policy-deriver — bin/valley |
| 21 | # |
| 22 | # Fixtures live with the thing they are fixtures of: host declarations, |
| 23 | # attestations, events, graphs and policies under examples/, attestation |
| 24 | # vectors under attest/, the integrator's scenarios under integrator/e2e/. |
| 25 | { |
| 26 | pkgs, |
| 27 | lib, |
| 28 | self, |
| 29 | system, |
| 30 | packages, |
| 31 | }: |
| 32 | let |
| 33 | hosts = import ./checks/hosts.nix { |
| 34 | inherit |
| 35 | pkgs |
| 36 | lib |
| 37 | self |
| 38 | system |
| 39 | ; |
| 40 | }; |
| 41 | args = { |
| 42 | inherit |
| 43 | pkgs |
| 44 | lib |
| 45 | self |
| 46 | system |
| 47 | packages |
| 48 | hosts |
| 49 | ; |
| 50 | }; |
| 51 | in |
| 52 | import ./checks/host-module.nix args |
| 53 | // import ./checks/schema.nix args |
| 54 | // import ./checks/knowledge.nix args |
| 55 | // import ./checks/attest.nix args |
| 56 | // import ./checks/integrator.nix args |
| 57 | // import ./checks/hooks.nix args |
| 58 | // import ./checks/cli.nix args |