mirror of
https://gitlab.com/rensa-nix/devtools.git
synced 2025-12-12 06:10:06 +01:00
chore: initial commit
This commit is contained in:
commit
db488d8f41
26 changed files with 1077 additions and 0 deletions
28
lib/modules/cocogitto_test.nix
Normal file
28
lib/modules/cocogitto_test.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
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"
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue