]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
deckard: abort if sendmmsg/recvmmsg are in use
authorPetr Špaček <petr.spacek@nic.cz>
Tue, 31 Mar 2020 09:43:00 +0000 (11:43 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Tue, 31 Mar 2020 09:45:40 +0000 (11:45 +0200)
Deckard does not support these and it leads to confusing errors.
In long term we need to migrate Deckard to different network backend:
https://gitlab.labs.nic.cz/knot/deckard/issues/42

tests/integration/deckard
tests/meson.build

index 947858cb649a4d477c93441ca96d894f0e545e4a..62a1736bebb41232055950ee27c7f27efe5708e7 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 947858cb649a4d477c93441ca96d894f0e545e4a
+Subproject commit 62a1736bebb41232055950ee27c7f27efe5708e7
index c33166404e9107d297bfad9efe20ffe4adb96c34..8aa1e95aa460f804e574db52476138ca16df7cbf 100644 (file)
@@ -37,11 +37,14 @@ if build_extra_tests
   python3 = find_program('python3')
   py3_deps = []
 
+  libuv_before_sendmmsg = dependency('libuv', version: '<1.35', required: false)
   subdir('pytests')
-  if not sendmmsg
-    subdir('integration')
+  if sendmmsg
+    warning('Integration tests do not work with sendmmsg, disable sendmmsg using meson configure -Dsendmmsg=disabled builddir')
+  elif not libuv_before_sendmmsg.found()
+    warning('Integration tests do not work with libuv >= 1.35 because it internally uses sendmmsg which is not supported by Deckard, use an older version of libuv')
   else
-    warning('Integration tests do not work with sendmmsg, disable sendmmsg first!')
+    subdir('integration')
   endif
 
   foreach py3_dep : py3_deps