gunk-dev/the-valley

checks.nix

sourceaf7923c49b21main's published tip history
2.0 KiB
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, init-e2e — the hooks
19# the module renders, run against real git, and the init
20# script that wires them
21# cli.nix valley-cli, review-notes, policy-deriver — bin/valley
22#
23# Fixtures live with the thing they are fixtures of: host declarations,
24# attestations, events, graphs and policies under examples/, attestation
25# vectors under attest/, the integrator's scenarios under integrator/e2e/.
26{
27 pkgs,
28 lib,
29 self,
30 system,
31 packages,
32}:
33let
34 hosts = import ./checks/hosts.nix {
35 inherit
36 pkgs
37 lib
38 self
39 system
40 ;
41 };
42 args = {
43 inherit
44 pkgs
45 lib
46 self
47 system
48 packages
49 hosts
50 ;
51 };
52in
53import ./checks/host-module.nix args
54// import ./checks/schema.nix args
55// import ./checks/knowledge.nix args
56// import ./checks/attest.nix args
57// import ./checks/integrator.nix args
58// import ./checks/hooks.nix args
59// import ./checks/cli.nix args