summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com>2021-11-01 17:33:35 +0100
committerGitHub <noreply@github.com>2021-11-01 17:33:35 +0100
commit8ca411c7490c3252835d557fad412e97c5a4af11 (patch)
treeecfb3dc84776494864767def1ad96d4f343ae153 /var
parent888de2721005359f54205b16d8a1670596afadd9 (diff)
downloadspack-8ca411c7490c3252835d557fad412e97c5a4af11.tar.gz
spack-8ca411c7490c3252835d557fad412e97c5a4af11.tar.bz2
spack-8ca411c7490c3252835d557fad412e97c5a4af11.tar.xz
spack-8ca411c7490c3252835d557fad412e97c5a4af11.zip
glib: skip tests which we cannot make pass (#26693)
glib has a few tests which have external dependencies or try to access the X server. We cannot run those. Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/glib/package.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/glib/package.py b/var/spack/repos/builtin/packages/glib/package.py
index c7536922e6..5180973e26 100644
--- a/var/spack/repos/builtin/packages/glib/package.py
+++ b/var/spack/repos/builtin/packages/glib/package.py
@@ -94,6 +94,18 @@ class Glib(Package):
url = 'http://ftp.gnome.org/pub/gnome/sources/glib'
return url + '/%s/glib-%s.tar.xz' % (version.up_to(2), version)
+ def patch(self):
+ """A few glib tests have external dependencies / try to access the X server"""
+ # Surgically disable tests which we cannot make pass in a spack build
+ gio_tests = FileFilter('gio/tests/meson.build')
+ gio_tests.filter('if not glib_have_cocoa', 'if false')
+ gio_tests.filter("'contenttype' : {},", '')
+ gio_tests.filter("'file' : {},", '')
+ gio_tests.filter("'gdbus-peer'", "'file'")
+ gio_tests.filter("'gdbus-address-get-session' : {},", '')
+ filter_file("'mkenums.py',*", '', 'gobject/tests/meson.build')
+ filter_file("'fileutils' : {},", '', 'glib/tests/meson.build')
+
@property
def libs(self):
return find_libraries(['libglib*'], root=self.prefix, recursive=True)