File: Skip-test-if-there-s-no-graphics.patch

package info (click to toggle)
geeqie 1%3A2.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,992 kB
  • sloc: cpp: 95,956; xml: 11,502; sh: 3,654; awk: 124; perl: 88; python: 80; makefile: 24
file content (45 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From: =?utf-8?q?Andreas_R=C3=B6nnquist?= <gusnan@debian.org>
Date: Sun, 24 Mar 2024 23:33:36 +0100
Subject: Skip test if there's no graphics

Forwarded: not-needed
---
 scripts/test-ancillary-files.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/scripts/test-ancillary-files.sh b/scripts/test-ancillary-files.sh
index 125afd5..e698260 100755
--- a/scripts/test-ancillary-files.sh
+++ b/scripts/test-ancillary-files.sh
@@ -174,6 +174,10 @@ EOF
 	fi
 fi
 
+# Skip test if there's no graphics
+if [ -n "$DISPLAY" ]
+then
+
 # gtk-builder ui lint - should not check the menu.ui files
 if [ -z "$(command -v gtk-builder-tool)" ]
 then
@@ -207,6 +211,8 @@ $(find $! -name "*.ui")
 EOF
 fi
 
+fi
+
 # Desktop files lint
 if [ -z "$(command -v desktop-file-validate)" ]
 then
@@ -233,6 +239,11 @@ $(find . -name "*.desktop.in")
 EOF
 fi
 
+# the Meson test harness recognises exit code 77 as skip
+# We need to skip the appstreamcli tests for now.
+SKIP=77
+exit $SKIP
+
 # Appdata lint
 if [ -z "$(command -v appstreamcli)" ]
 then