tests.writers: also expose path via passthru
This commit is contained in:
parent
52acca72bf
commit
6bd0c16f89
|
@ -193,7 +193,7 @@ let
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in runCommand "test-writers" {
|
in runCommand "test-writers" {
|
||||||
passthru = { inherit writeTest bin simple; };
|
passthru = { inherit writeTest bin simple path; };
|
||||||
meta.platforms = lib.platforms.all;
|
meta.platforms = lib.platforms.all;
|
||||||
} ''
|
} ''
|
||||||
${lib.concatMapStringsSep "\n" (test: writeTest "success" test.name "${test}/bin/${test.name}") (lib.attrValues bin)}
|
${lib.concatMapStringsSep "\n" (test: writeTest "success" test.name "${test}/bin/${test.name}") (lib.attrValues bin)}
|
||||||
|
|
|
@ -10,11 +10,13 @@ let
|
||||||
writeTest
|
writeTest
|
||||||
bin
|
bin
|
||||||
simple
|
simple
|
||||||
|
path
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
|
|
||||||
runCommand "test-haskell-writers" {} ''
|
runCommand "test-haskell-writers" {} ''
|
||||||
${writeTest "success" "test-haskell-bin-writer" "${bin.haskell}/bin/${bin.haskell.name}"}
|
${writeTest "success" "test-haskell-bin-writer" "${bin.haskell}/bin/${bin.haskell.name}"}
|
||||||
${writeTest "success" "test-haskell-simple-writer" simple.haskell}
|
${writeTest "success" "test-haskell-simple-writer" simple.haskell}
|
||||||
|
${writeTest "success" "test-haskell-path-writer" path.haskell}
|
||||||
touch $out
|
touch $out
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue