tests.writers: also expose path via passthru

This commit is contained in:
sternenseemann 2021-07-13 15:22:34 +02:00
parent 52acca72bf
commit 6bd0c16f89
2 changed files with 3 additions and 1 deletions

View file

@ -193,7 +193,7 @@ let
'';
in runCommand "test-writers" {
passthru = { inherit writeTest bin simple; };
passthru = { inherit writeTest bin simple path; };
meta.platforms = lib.platforms.all;
} ''
${lib.concatMapStringsSep "\n" (test: writeTest "success" test.name "${test}/bin/${test.name}") (lib.attrValues bin)}

View file

@ -10,11 +10,13 @@ let
writeTest
bin
simple
path
;
in
runCommand "test-haskell-writers" {} ''
${writeTest "success" "test-haskell-bin-writer" "${bin.haskell}/bin/${bin.haskell.name}"}
${writeTest "success" "test-haskell-simple-writer" simple.haskell}
${writeTest "success" "test-haskell-path-writer" path.haskell}
touch $out
''