mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
tests.makeBinaryWrapper: avoid lib.fileset
This commit is contained in:
parent
f6ce575a03
commit
6ff076b1b1
33 changed files with 1 additions and 10 deletions
|
@ -20,16 +20,7 @@ let
|
||||||
runCommand "make-binary-wrapper-test-${testname}" env ''
|
runCommand "make-binary-wrapper-test-${testname}" env ''
|
||||||
mkdir -p tmp/foo # for the chdir test
|
mkdir -p tmp/foo # for the chdir test
|
||||||
|
|
||||||
source=${
|
source=${./${testname}}
|
||||||
lib.fileset.toSource {
|
|
||||||
root = ./.;
|
|
||||||
fileset = lib.fileset.unions [
|
|
||||||
(./. + "/${testname}.cmdline")
|
|
||||||
(./. + "/${testname}.c")
|
|
||||||
(lib.fileset.maybeMissing (./. + "/${testname}.env"))
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
params=$(<"$source/${testname}.cmdline")
|
params=$(<"$source/${testname}.cmdline")
|
||||||
eval "makeCWrapper /send/me/flags $params" > wrapper.c
|
eval "makeCWrapper /send/me/flags $params" > wrapper.c
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue