diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2022-06-19 16:04:48 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-07-08 01:58:23 -0400 |
| commit | e7d87b6f58c653c3962479f59867397ffc15c32f (patch) | |
| tree | 61e39ad22650fbe94d5bdb9c9b2edd263aa14dc3 /test cases/python | |
| parent | b89451847af56dc5f224a0e09605ad965d58aabe (diff) | |
| download | meson-e7d87b6f58c653c3962479f59867397ffc15c32f.tar.gz | |
implement the new preserve_path kwarg for install_data too
Primarily interesting to me because it is then available for the python
module's install_sources method.
Based on the new feature in install_headers.
Diffstat (limited to 'test cases/python')
9 files changed, 17 insertions, 0 deletions
diff --git a/test cases/python/7 install path/meson.build b/test cases/python/7 install path/meson.build index 4a7df7eca..5f0f7dfc6 100644 --- a/test cases/python/7 install path/meson.build +++ b/test cases/python/7 install path/meson.build @@ -8,3 +8,5 @@ project('install path', py = import('python').find_installation() py.install_sources('test.py') py.install_sources('test.py', pure: false) + +subdir('structured') diff --git a/test cases/python/7 install path/structured/alpha/one.py b/test cases/python/7 install path/structured/alpha/one.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test cases/python/7 install path/structured/alpha/one.py diff --git a/test cases/python/7 install path/structured/alpha/three.py b/test cases/python/7 install path/structured/alpha/three.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test cases/python/7 install path/structured/alpha/three.py diff --git a/test cases/python/7 install path/structured/alpha/two.py b/test cases/python/7 install path/structured/alpha/two.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test cases/python/7 install path/structured/alpha/two.py diff --git a/test cases/python/7 install path/structured/beta/one.py b/test cases/python/7 install path/structured/beta/one.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test cases/python/7 install path/structured/beta/one.py diff --git a/test cases/python/7 install path/structured/meson.build b/test cases/python/7 install path/structured/meson.build new file mode 100644 index 000000000..6c8558799 --- /dev/null +++ b/test cases/python/7 install path/structured/meson.build @@ -0,0 +1,9 @@ +py.install_sources( + 'one.py', + 'two.py', + 'alpha/one.py', + 'alpha/two.py', + 'alpha/three.py', + 'beta/one.py', + preserve_path: true, +) diff --git a/test cases/python/7 install path/structured/one.py b/test cases/python/7 install path/structured/one.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test cases/python/7 install path/structured/one.py diff --git a/test cases/python/7 install path/structured/two.py b/test cases/python/7 install path/structured/two.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test cases/python/7 install path/structured/two.py diff --git a/test cases/python/7 install path/test.json b/test cases/python/7 install path/test.json index f03ada809..9b05b6665 100644 --- a/test cases/python/7 install path/test.json +++ b/test cases/python/7 install path/test.json @@ -1,5 +1,11 @@ { "installed": [ + {"type": "file", "file": "pure/one.py"}, + {"type": "file", "file": "pure/two.py"}, + {"type": "file", "file": "pure/alpha/one.py"}, + {"type": "file", "file": "pure/alpha/two.py"}, + {"type": "file", "file": "pure/alpha/three.py"}, + {"type": "file", "file": "pure/beta/one.py"}, {"type": "file", "file": "plat/test.py"}, {"type": "file", "file": "pure/test.py"} ] |
