tests.concat: added empty case

This commit is contained in:
Pasquale 2022-01-04 23:14:50 +01:00
parent 5187d2cd8f
commit 86e2880d11
No known key found for this signature in database
GPG key ID: 13160FFB4CEB03F2

View file

@ -1,4 +1,4 @@
{ callPackage, lib, pkgs, runCommand, concatText, writeText, hello }: { callPackage, lib, pkgs, runCommand, concatText, writeText, hello, emptyFile }:
let let
stri = writeText "pathToTest"; stri = writeText "pathToTest";
txt1 = stri "abc"; txt1 = stri "abc";
@ -7,5 +7,6 @@ let
in in
runCommand "test-concatPaths" { } '' runCommand "test-concatPaths" { } ''
diff -U3 <(cat ${txt1} ${txt2}) ${res} diff -U3 <(cat ${txt1} ${txt2}) ${res}
diff -U3 ${concatText "void" []} ${emptyFile}
touch $out touch $out
'' ''