diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2020-04-29 13:00:41 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2020-04-30 10:01:14 -0700 |
| commit | c239ce31f55579cfe1e29b769a8bda97deca2166 (patch) | |
| tree | 662fd0261ff22bc0856a0f0ad6e249526f96de64 /test cases | |
| parent | 2c0eaf5c4f4493146355eeb8521c17a3c2ef5acd (diff) | |
| download | meson-c239ce31f55579cfe1e29b769a8bda97deca2166.tar.gz | |
allow postconf and dist scripts to use Files, ExternalPrograms, and
ConfigureFiles
These things are all known to be ready when these scripts are run, and
thus they can safely consume them.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/common/104 postconf with args/meson.build | 7 | ||||
| -rw-r--r-- | test cases/unit/35 dist script/meson.build | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test cases/common/104 postconf with args/meson.build b/test cases/common/104 postconf with args/meson.build index 8510c5b81..a34502c33 100644 --- a/test cases/common/104 postconf with args/meson.build +++ b/test cases/common/104 postconf with args/meson.build @@ -1,5 +1,10 @@ project('postconf script', 'c') -meson.add_postconf_script('postconf.py', '5', '33') +conf = configure_file( + configuration : configuration_data(), + output : 'out' +) + +meson.add_postconf_script(find_program('postconf.py'), '5', '33', conf) test('post', executable('prog', 'prog.c')) diff --git a/test cases/unit/35 dist script/meson.build b/test cases/unit/35 dist script/meson.build index fd672a9b8..2ae943845 100644 --- a/test cases/unit/35 dist script/meson.build +++ b/test cases/unit/35 dist script/meson.build @@ -5,3 +5,4 @@ exe = executable('comparer', 'prog.c') test('compare', exe) meson.add_dist_script('replacer.py', '"incorrect"', '"correct"') +meson.add_dist_script(find_program('replacer.py'), '"incorrect"', '"correct"') |
