mirror of
https://gitlab.com/TECHNOFAB/nixtest.git
synced 2025-12-12 02:00:18 +01:00
test: add drv test
This commit is contained in:
parent
4772c789d9
commit
27696c02bc
1 changed files with 10 additions and 0 deletions
10
flake.nix
10
flake.nix
|
|
@ -68,6 +68,16 @@
|
|||
type = "snapshot";
|
||||
actual = {hello = "world";};
|
||||
}
|
||||
{
|
||||
name = "test-drv";
|
||||
pos = __curPos;
|
||||
expected = {a = "b";};
|
||||
actualDrv = pkgs.runCommand "test-something" {} ''
|
||||
echo "Simulating taking some time"
|
||||
sleep 1
|
||||
echo '{"a":"b"}' > $out
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue