[pygobject/benzea/gio-asyncio] test



commit b51e07274fe0f840879e73976ff234453e1f7938
Author: Benjamin Berg <bberg redhat com>
Date:   Wed Nov 17 21:05:28 2021 +0100

    test

 .gitlab-ci.yml    | 104 +++++++++++++++++++++++++++---------------------------
 tests/meson.build |   1 +
 tests/runtests.py |   5 +++
 3 files changed, 58 insertions(+), 52 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index de9d9b0b..ba852c19 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -52,35 +52,35 @@ pages:
   only:
     - master
 
-mingw32:
-  variables:
-    MSYSTEM: "MINGW32"
-  <<: *mingw-defaults
-
-mingw64:
-  variables:
-    MSYSTEM: "MINGW64"
-  <<: *mingw-defaults
+#mingw32:
+#  variables:
+#    MSYSTEM: "MINGW32"
+#  <<: *mingw-defaults
+#
+#mingw64:
+#  variables:
+#    MSYSTEM: "MINGW64"
+#  <<: *mingw-defaults
 
 python3.6:
   variables:
     PYENV_VERSION: "3.6.12"
   <<: *defaults
 
-python3.7:
-  variables:
-    PYENV_VERSION: "3.7.9-debug"
-  <<: *defaults
-
-python3.8:
-  variables:
-    PYENV_VERSION: "3.8.5-debug"
-  <<: *defaults
-
-python3.9:
-  variables:
-    PYENV_VERSION: "3.9.0-debug"
-  <<: *defaults
+#python3.7:
+#  variables:
+#    PYENV_VERSION: "3.7.9-debug"
+#  <<: *defaults
+#
+#python3.8:
+#  variables:
+#    PYENV_VERSION: "3.8.5-debug"
+#  <<: *defaults
+#
+#python3.9:
+#  variables:
+#    PYENV_VERSION: "3.9.0-debug"
+#  <<: *defaults
 
 pypy3.6:
   allow_failure: true
@@ -88,32 +88,32 @@ pypy3.6:
     PYENV_VERSION: "pypy3.6-7.3.1"
   <<: *defaults
 
-old-i386-py3:
-  stage: build_and_test
-  image: registry.gitlab.gnome.org/gnome/pygobject/old:v4
-  artifacts:
-    paths:
-      - coverage/
-  script:
-   - bash -x ./.gitlab-ci/test-docker-old.sh
-
-gnome-master:
-  allow_failure: true
-  stage: build_and_test
-  image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
-  tags:
-    - flatpak
-  script:
-    - xvfb-run -a flatpak run --filesystem=host --share=network --socket=x11 --command=bash 
org.gnome.Sdk//master -x .gitlab-ci/test-flatpak.sh
-
-gnome-master-gtk4:
-  allow_failure: true
-  stage: build_and_test
-  image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
-  tags:
-    - flatpak
-  script:
-    - xvfb-run -a flatpak run --filesystem=host --share=network --socket=x11 --command=bash 
org.gnome.Sdk//master -x .gitlab-ci/test-flatpak-gtk4.sh
-  artifacts:
-    paths:
-      - coverage/
\ No newline at end of file
+#old-i386-py3:
+#  stage: build_and_test
+#  image: registry.gitlab.gnome.org/gnome/pygobject/old:v4
+#  artifacts:
+#    paths:
+#      - coverage/
+#  script:
+#   - bash -x ./.gitlab-ci/test-docker-old.sh
+#
+#gnome-master:
+#  allow_failure: true
+#  stage: build_and_test
+#  image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
+#  tags:
+#    - flatpak
+#  script:
+#    - xvfb-run -a flatpak run --filesystem=host --share=network --socket=x11 --command=bash 
org.gnome.Sdk//master -x .gitlab-ci/test-flatpak.sh
+#
+#gnome-master-gtk4:
+#  allow_failure: true
+#  stage: build_and_test
+#  image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
+#  tags:
+#    - flatpak
+#  script:
+#    - xvfb-run -a flatpak run --filesystem=host --share=network --socket=x11 --command=bash 
org.gnome.Sdk//master -x .gitlab-ci/test-flatpak-gtk4.sh
+#  artifacts:
+#    paths:
+#      - coverage/
\ No newline at end of file
diff --git a/tests/meson.build b/tests/meson.build
index 6a25688e..0ca46fd4 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -126,6 +126,7 @@ if pycairo_dep.found() and pycairo_dep.type_name() == 'internal'
 endif
 envdata.append('PYTHONPATH', python_paths)
 envdata.append('TESTS_BUILDDIR', meson.current_build_dir())
+envdata.append('PYGI_TEST_VERBOSE', '1')
 
 test('pygobject-test-suite', python,
   args : [join_paths(meson.current_source_dir(), 'runtests.py')],
diff --git a/tests/runtests.py b/tests/runtests.py
index 721b5d80..6eb4c8a8 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -6,6 +6,11 @@ import sys
 
 import pytest
 
+# Try to generate backtrace if meson kills as with SIGTERM:
+# will not work if the mainloop is overriding SIGTERM
+def r(*args):
+    raise KeyboardInterrupt()
+signal.signal(signal.SIGTERM, r)
 
 def main(argv):
     if '--help' in argv:


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