devtools/lib/modules/cocogitto_test.nix
2025-09-17 11:59:53 +02:00

28 lines
508 B
Nix

{
ntlib,
devshell,
...
}: let
module = ./cocogitto.nix;
in {
suites."Cocogitto" = {
pos = __curPos;
tests = [
{
name = "basic";
type = "script";
script = let
shell = devshell.mkShell {
imports = [module];
cocogitto.enable = true;
};
in
# sh
''
${ntlib.helpers.scriptHelpers}
assert "-f ${shell}/bin/cog" "/bin/cog should exist"
'';
}
];
};
}