1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-13 05:56:03 +01:00

Make functional tests depend on nix binary so they auto recompile

With this I'm able to do a fresh config + meson test with all dependencies
correctly propagated.

Co-authored-by: Sergei Zimmerman <sergei@zimmerman.foo>
This commit is contained in:
Farid Zakaria 2025-07-24 20:42:40 -07:00 committed by Sergei Zimmerman
parent 241420a788
commit bf320465ae
No known key found for this signature in database
5 changed files with 21 additions and 6 deletions

View file

@ -16,8 +16,9 @@ nix_perl_scripts = files(
'Utils.pm',
)
nix_perl_scripts_copy_tgts = []
foreach f : nix_perl_scripts
fs.copyfile(f)
nix_perl_scripts_copy_tgts += fs.copyfile(f)
endforeach

View file

@ -191,6 +191,6 @@ if get_option('tests').enabled()
yath,
args : [ 'test' ],
workdir : meson.current_build_dir(),
depends : [ nix_perl_store_lib ],
depends : [ nix_perl_store_lib ] + nix_perl_tests_copy_tgts + nix_perl_scripts_copy_tgts,
)
endif

View file

@ -9,7 +9,7 @@ nix_perl_tests = files(
'init.t',
)
nix_perl_tests_copy_tgts = []
foreach f : nix_perl_tests
fs.copyfile(f)
nix_perl_tests_copy_tgts += fs.copyfile(f)
endforeach