test: add drv test

This commit is contained in:
technofab 2025-05-03 22:22:39 +02:00
parent 4772c789d9
commit 27696c02bc

View file

@ -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
'';
}
];
};