Commit e6221640 authored by Profpatsch's avatar Profpatsch

build-support/package-test: withTests assert derivation

parent 99ee0143
......@@ -41,6 +41,7 @@ let
* derivation and should result in failure if
* the functionality is not as expected. */
withTests = tests: drv:
assert lib.isDerivation drv; # drv needs to be a derivation!
let testDrvs = lib.mapAttrsToList
(name: testScript:
runCommand "${}-test-${name}" {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment