[Spice-commits] 2 commits - .gitlab-ci.yml tests/Makefile.am

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 17 12:19:31 UTC 2018


 .gitlab-ci.yml    |   16 ++++++++++++++++
 tests/Makefile.am |    1 +
 2 files changed, 17 insertions(+)

New commits:
commit 7f4da3ff365b1d10e37db738a81285d035ef435c
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Sun Dec 16 16:04:25 2018 +0000

    ci: Run tests on Windows using wine
    
    As spice-common is used by spice-gtk which should run on Windows
    even spice-common should compile and run on Windows so check it
    with CI.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0919cc3..92df9b5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,3 +26,19 @@ meson-makecheck:
     meson build -Dextra-checks=true -Dcelt051=enabled || (cat build/meson-logs/meson-log.txt && exit 1)
   - ninja -C build
   - (cd build && meson test) || (cat build/meson-logs/testlog.txt && exit 1)
+
+make-win:
+  script:
+  - >
+    dnf install mingw64-gcc mingw64-pkg-config mingw64-pixman mingw64-openssl
+    mingw64-opus mingw64-spice-protocol mingw64-glib2 mingw64-glib-networking mingw64-gdk-pixbuf
+    'wine-core(x86-64)'
+    -y
+  - NOCONFIGURE=yes ./autogen.sh
+  - >
+    PYTHON=python3
+    CFLAGS='-O2 -pipe -g -fsanitize=address -fno-omit-frame-pointer -Wframe-larger-than=40920'
+    LDFLAGS='-fsanitize=address -lasan'
+    mingw64-configure --enable-extra-checks --disable-celt051
+  - make
+  - make LOG_COMPILER=wine check || (cat tests/test-suite.log && exit 1)
commit c01a4a6fc37f5f4d4719434484042d2acb7b2dcc
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Sun Dec 16 10:52:30 2018 +0000

    test-region: Add missing dependencies
    
    The test uses both GLib and pixman libraries.
    This does not seem to affect Linux but make the test fails under Windows.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Uri Lublin <uril at redhat.com>

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 926ac99..f54e394 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -63,6 +63,7 @@ test_region_CFLAGS =			\
 	$(NULL)
 test_region_LDADD =					\
 	$(top_builddir)/common/libspice-common.la	\
+	$(SPICE_COMMON_LIBS)				\
 	$(NULL)
 
 # Avoid need for python(pyparsing) by end users


More information about the Spice-commits mailing list