1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Wed, 5 Mar 2025 22:13:12 +0100
Subject: [PATCH] tests: Don't install runner scripts without installed_tests
Fixes: 9f18bb625811f649e5363d65dc6b4390f92d37b7
---
tests/lib/meson.build | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/tests/lib/meson.build b/tests/lib/meson.build
index 25990a48150f..9e7ca405278d 100644
--- a/tests/lib/meson.build
+++ b/tests/lib/meson.build
@@ -2,14 +2,16 @@
# Copyright 2025 Simon McVittie
# SPDX-License-Identifier: LGPL-2.1-or-later
-install_data(
- files(
- 'taptestrunner.py',
- 'testprogramrunner.py',
- ),
- install_dir: installed_tests_execdir,
- install_tag: 'tests',
-)
+if installed_tests_enabled
+ install_data(
+ files(
+ 'taptestrunner.py',
+ 'testprogramrunner.py',
+ ),
+ install_dir: installed_tests_execdir,
+ install_tag: 'tests',
+ )
+endif
tests_conf = configuration_data()
tests_conf.set('gir_suffix', gir_suffix)
|