Test case for environment prepend/append acting like set

pull/13296/head
Nils Werner 5 months ago committed by Eli Schwartz
parent 2a9f40ff7a
commit 1570289acf
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 12
      test cases/common/41 test args/meson.build

@ -33,3 +33,15 @@ testfilect = custom_target('testfile',
build_by_default : true,
command : [copy, '@INPUT@', '@OUTPUT@'])
test('custom target arg', tester, args : testfilect, env : env_array)
# https://github.com/mesonbuild/meson/issues/12327
env = environment()
env.append('PATH', 'something')
bash = find_program('bash')
custompathtgt = custom_target('testpathappend',
output : 'nothing.txt',
build_always : true,
command : [bash, '-c', 'env'],
env : env)

Loading…
Cancel
Save