mirror of
https://gitlab.com/rensa-nix/devtools.git
synced 2025-12-11 22:00:07 +01:00
28 lines
508 B
Nix
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"
|
|
'';
|
|
}
|
|
];
|
|
};
|
|
}
|