summaryrefslogtreecommitdiff
path: root/test cases/python
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/python')
-rw-r--r--test cases/python/7 install path/meson.build4
-rw-r--r--test cases/python/7 install path/target/meson.build3
2 files changed, 7 insertions, 0 deletions
diff --git a/test cases/python/7 install path/meson.build b/test cases/python/7 install path/meson.build
index 1075c1bac..22e33c653 100644
--- a/test cases/python/7 install path/meson.build
+++ b/test cases/python/7 install path/meson.build
@@ -17,4 +17,8 @@ py_plat.install_sources('test.py', pure: true, subdir: 'kwrevert')
install_data('test.py', install_dir: py_plat.get_install_dir() / 'kw/data')
install_data('test.py', install_dir: py_plat.get_install_dir(pure: true) / 'kwrevert/data')
+if get_option('backend') == 'none'
+ subdir('target')
+endif
+
subdir('structured')
diff --git a/test cases/python/7 install path/target/meson.build b/test cases/python/7 install path/target/meson.build
new file mode 100644
index 000000000..178ae0224
--- /dev/null
+++ b/test cases/python/7 install path/target/meson.build
@@ -0,0 +1,3 @@
+testcase expect_error('Install-only backend cannot generate target rules, try using `--backend=ninja`.')
+ import('fs').copyfile('../test.py')
+endtestcase