[libsoup] build: When tests disabled treat autobahn as disabled



commit 9b017240ff19bd29d46acccb7364148aae936b22
Author: Patrick Griffis <pgriffis igalia com>
Date:   Thu Apr 22 13:04:37 2021 -0500

    build: When tests disabled treat autobahn as disabled
    
    You may still explicitly enable autobahn even with tests disabled

 meson.build | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 3881d7c7..5935a942 100644
--- a/meson.build
+++ b/meson.build
@@ -283,7 +283,11 @@ if have_apache
   endif
 endif
 
-have_autobahn = find_program('wstest', required: get_option('autobahn')).found()
+if get_option('autobahn').auto() and not get_option('tests')
+  have_autobahn = false
+else
+  have_autobahn = find_program('wstest', required: get_option('autobahn')).found()
+endif
 
 if not have_apache or not have_autobahn
   warning('Some regression tests will not be compiled due to missing libraries or modules. Please check the 
logs for more details.')
@@ -412,6 +416,7 @@ summary({
     'All tests' : get_option('tests'),
     'Tests requiring Apache' : have_apache,
     'Fuzzing tests' : get_option('fuzzing').enabled(),
+    'Autobahn tests' : have_autobahn,
     'Install tests': get_option('installed_tests'),
     'Unix sockets' : unix_socket_dep.found(),
   },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]