mirror of
https://gitlab.com/rensa-nix/devtools.git
synced 2026-02-02 07:15:08 +01:00
29 lines
524 B
Nix
29 lines
524 B
Nix
|
|
{
|
||
|
|
ntlib,
|
||
|
|
devshell,
|
||
|
|
...
|
||
|
|
}: let
|
||
|
|
module = ./process_compose.nix;
|
||
|
|
in {
|
||
|
|
suites."Process-Compose" = {
|
||
|
|
pos = __curPos;
|
||
|
|
tests = [
|
||
|
|
{
|
||
|
|
name = "basic";
|
||
|
|
type = "script";
|
||
|
|
script = let
|
||
|
|
shell = devshell.mkShell {
|
||
|
|
imports = [module];
|
||
|
|
process-compose.enable = true;
|
||
|
|
};
|
||
|
|
in
|
||
|
|
# sh
|
||
|
|
''
|
||
|
|
${ntlib.helpers.scriptHelpers}
|
||
|
|
assert "-f ${shell}/bin/pc" "/bin/pc should exist"
|
||
|
|
'';
|
||
|
|
}
|
||
|
|
];
|
||
|
|
};
|
||
|
|
}
|