cue: add tests.cue-validation to tests

This commit is contained in:
éclairevoyant
2026-05-07 02:45:09 -04:00
parent 5902512fe6
commit e5cea90ef0
+8 -1
View File
@@ -5,6 +5,7 @@
stdenv,
installShellFiles,
testers,
tests,
callPackage,
}:
@@ -41,10 +42,16 @@ buildGoModule (finalAttrs: {
passthru =
let
cue = finalAttrs.finalPackage;
writeCueValidator = callPackage ./validator.nix { inherit cue; };
in
{
writeCueValidator = callPackage ./validator.nix { inherit cue; };
inherit writeCueValidator;
tests = {
validation = tests.cue-validation.override {
callPackage = (path: attrs: callPackage path (attrs // { inherit writeCueValidator; }));
};
test-001-all-good = callPackage ./tests/001-all-good.nix { inherit cue; };
version = testers.testVersion {
package = cue;