summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@redhat.com>2022-08-29 12:50:15 -0500
committerMarge Bot <marge-bot@gnome.org>2022-08-29 21:05:40 +0000
commit98464595adc94b4db3665cc32e3a0a96e59b9a7b (patch)
tree5f9424055d98ee9d6cf9418ab12cb598ddf2ae9e
parent419f4b8a3850d00b5a951c45dfeac2e32146fea4 (diff)
downloadglib-networking-98464595adc94b4db3665cc32e3a0a96e59b9a7b.tar.gz
Propagate GIO_PROXY_TEST_NAME to installed tests
Otherwise, the test has no way to test the proxy resolver that it claims to test. Part-of: <https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/222>
-rw-r--r--proxy/tests/meson.build1
-rw-r--r--template.test.in2
-rw-r--r--tls/tests/meson.build1
3 files changed, 3 insertions, 1 deletions
diff --git a/proxy/tests/meson.build b/proxy/tests/meson.build
index 6af5ee6..ce0d8d0 100644
--- a/proxy/tests/meson.build
+++ b/proxy/tests/meson.build
@@ -2,6 +2,7 @@ foreach program: proxy_test_programs
test_conf = configuration_data()
test_conf.set('installed_tests_dir', installed_tests_execdir)
test_conf.set('program', program[0])
+ test_conf.set('environment', 'GIO_PROXY_TEST_NAME=' + program[1])
test_name = program[0]
if program[0] != program[1]
diff --git a/template.test.in b/template.test.in
index f701627..d364ef4 100644
--- a/template.test.in
+++ b/template.test.in
@@ -1,3 +1,3 @@
[Test]
Type=session
-Exec=@installed_tests_dir@/@program@
+Exec=env @environment@ @installed_tests_dir@/@program@
diff --git a/tls/tests/meson.build b/tls/tests/meson.build
index 0dc2571..4afcc81 100644
--- a/tls/tests/meson.build
+++ b/tls/tests/meson.build
@@ -52,6 +52,7 @@ foreach backend: backends
test_conf = configuration_data()
test_conf.set('installed_tests_dir', installed_tests_execdir)
test_conf.set('program', program_name)
+ test_conf.set('environment', '')
if enable_installed_tests
configure_file(