mirror of
https://gitlab.com/TECHNOFAB/nixtest.git
synced 2026-02-02 19:35:11 +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";
|
type = "snapshot";
|
||||||
actual = {hello = "world";};
|
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