File: disable_test_session_info.patch

package info (click to toggle)
spice-vdagent 0.22.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,196 kB
  • sloc: ansic: 8,317; sh: 1,480; makefile: 191
file content (28 lines) | stat: -rw-r--r-- 1,016 bytes parent folder | download | duplicates (3)
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
From: Jeremy Bicha <jeremy.bicha@canonical.com>
Date: Thu, 24 Feb 2022 09:58:23 -0500
Subject: Disable test-session-info

Requires running systemd which we don't have during the build

TODO: Convert this into a build option so that we can run
it with autopkgtest instead

https://gitlab.freedesktop.org/spice/linux/vd_agent/-/issues/24
https://gitlab.freedesktop.org/spice/linux/vd_agent/-/merge_requests/32
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 9c30bae..d23cace 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -138,7 +138,7 @@ src_spice_vdagentd_SOURCES += src/vdagentd/systemd-login.c
 tests_test_session_info_CFLAGS += $(LIBSYSTEMD_LOGIN_CFLAGS)
 tests_test_session_info_LDADD += $(LIBSYSTEMD_LOGIN_LIBS)
 tests_test_session_info_SOURCES += src/vdagentd/systemd-login.c
-check_PROGRAMS += tests/test-session-info
+# check_PROGRAMS += tests/test-session-info
 else
 src_spice_vdagentd_SOURCES += src/vdagentd/dummy-session-info.c
 endif