[Spice-devel] [PATCH spice-server v5 15/18] tests: Exclude tests that cannot work on Windows

Frediano Ziglio fziglio at redhat.com
Fri Mar 29 09:00:11 UTC 2019


test-stream test is passing file descriptor using Unix socket.
test-stat-file needs some porting work of mmap feature.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/tests/Makefile.am | 9 +++++++--
 server/tests/meson.build | 9 +++++++--
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/server/tests/Makefile.am b/server/tests/Makefile.am
index 7668739ff..c50826e62 100644
--- a/server/tests/Makefile.am
+++ b/server/tests/Makefile.am
@@ -53,11 +53,9 @@ check_PROGRAMS =				\
 	test-codecs-parsing			\
 	test-options				\
 	test-stat				\
-	test-stream				\
 	test-agent-msg-filter			\
 	test-loop				\
 	test-qxl-parsing			\
-	test-stat-file				\
 	test-leaks				\
 	test-vdagent				\
 	test-fail-on-null-core-interface	\
@@ -68,6 +66,13 @@ check_PROGRAMS =				\
 	test-record				\
 	$(NULL)
 
+if !OS_WIN32
+check_PROGRAMS +=				\
+	test-stream				\
+	test-stat-file				\
+	$(NULL)
+endif
+
 noinst_PROGRAMS =				\
 	test-display-no-ssl			\
 	test-display-streaming			\
diff --git a/server/tests/meson.build b/server/tests/meson.build
index 31febc6ac..b4269c58b 100644
--- a/server/tests/meson.build
+++ b/server/tests/meson.build
@@ -40,11 +40,9 @@ tests = [
   ['test-codecs-parsing', true],
   ['test-options', true],
   ['test-stat', true],
-  ['test-stream', true],
   ['test-agent-msg-filter', true],
   ['test-loop', true],
   ['test-qxl-parsing', true],
-  ['test-stat-file', true],
   ['test-leaks', true],
   ['test-vdagent', true],
   ['test-fail-on-null-core-interface', true],
@@ -65,6 +63,13 @@ if spice_server_has_sasl
   tests += [['test-sasl', true]]
 endif
 
+if host_machine.system() != 'windows'
+  tests += [
+    ['test-stream', true],
+    ['test-stat-file', true],
+  ]
+endif
+
 if spice_server_has_gstreamer
   tests += [['test-gst', false]]
   if get_option('extra-checks')
-- 
2.20.1



More information about the Spice-devel mailing list