Kaydet (Commit) 23339ec7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

In flatpak build, disable problematic test using gpg for now

...which fails as documented in
solenv/flatpak-disable-gpgconf-socketdir-test.patch, presumably because the gpg
software in org.freedesktop.Sdk//1.6 (which has e.g. "gpgconf (GnuPG)
2.1.14-unknown") doesn't shut down a started gpg daemon again.  Lets see if this
will get fixed by
<https://github.com/flathub/org.libreoffice.LibreOffice/issues/54> "Build
against org.freedesktop.Platform 18.08" (where org.freedesktop.Sdk//18.08 has
e.g. "gpgconf (GnuPG) 2.2.9").

Change-Id: I9c7ad326ff8f2278ec58ee484d088f6fba97694d
üst c4d6fb74
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
--- a/xmlsecurity/qa/unit/signing/signing.cxx
+++ b/xmlsecurity/qa/unit/signing/signing.cxx
@@ -45,6 +45,51 @@
#include <documentsignaturemanager.hxx>
#include <certificate.hxx>
+// org.freedesktop.Sdk//1.6 contains "gpgconf (GnuPG) 2.1.14-unknown" and fails
+// CppunitTest_xmlsecurity_signing with
+//
+// [...]
+// SigningTest::testODFBrokenStreamGPG finished in: 257ms
+// gpgconf: error removing '/run/user/1000/gnupg/d.ddj1dwjpi9iofkpjnicqebif': Directory not empty
+// gpgconf: fatal error (exit status 1)
+// /run/build/libreoffice/xmlsecurity/qa/unit/signing/signing.cxx:235:SigningTest::testODFBrokenDsigGPG
+// tearDown() failed
+// - equality assertion failed
+// - Expected: 0
+// - Actual : 256
+// - LD_LIBRARY_PATH=/app/lib:/usr/lib/sdk/gcc7/lib:/usr/lib/GL/nvidia-410-66/lib:/usr/lib/ffmpeg/lib GNUPGHOME=/run/build/libreoffice/workdir/CppunitTest/xmlsecurity_signing.test.user /usr/bin/gpgconf --remove-socketdir
+//
+// SigningTest::testODFBrokenDsigGPG finished in: 1265ms
+// gpgconf: error removing '/run/user/1000/gnupg/d.ddj1dwjpi9iofkpjnicqebif': Directory not empty
+// gpgconf: fatal error (exit status 1)
+// /run/build/libreoffice/xmlsecurity/qa/unit/signing/signing.cxx:235:SigningTest::testODFEncryptedGPG
+// tearDown() failed
+// - equality assertion failed
+// - Expected: 0
+// - Actual : 256
+// - LD_LIBRARY_PATH=/app/lib:/usr/lib/sdk/gcc7/lib:/usr/lib/GL/nvidia-410-66/lib:/usr/lib/ffmpeg/lib GNUPGHOME=/run/build/libreoffice/workdir/CppunitTest/xmlsecurity_signing.test.user /usr/bin/gpgconf --remove-socketdir
+//
+// SigningTest::testODFEncryptedGPG finished in: 447ms
+// signing.cxx:235:Assertion
+// Test name: SigningTest::testODFBrokenDsigGPG
+// tearDown() failed
+// - equality assertion failed
+// - Expected: 0
+// - Actual : 256
+// - LD_LIBRARY_PATH=/app/lib:/usr/lib/sdk/gcc7/lib:/usr/lib/GL/nvidia-410-66/lib:/usr/lib/ffmpeg/lib GNUPGHOME=/run/build/libreoffice/workdir/CppunitTest/xmlsecurity_signing.test.user /usr/bin/gpgconf --remove-socketdir
+//
+// signing.cxx:235:Assertion
+// Test name: SigningTest::testODFEncryptedGPG
+// tearDown() failed
+// - equality assertion failed
+// - Expected: 0
+// - Actual : 256
+// - LD_LIBRARY_PATH=/app/lib:/usr/lib/sdk/gcc7/lib:/usr/lib/GL/nvidia-410-66/lib:/usr/lib/ffmpeg/lib GNUPGHOME=/run/build/libreoffice/workdir/CppunitTest/xmlsecurity_signing.test.user /usr/bin/gpgconf --remove-socketdir
+//
+// Failures !!!
+// Run: 28 Failure total: 2 Failures: 2 Errors: 0
+#undef HAVE_GPGCONF_SOCKETDIR
+
using namespace com::sun::star;
namespace
......@@ -76,6 +76,10 @@
"branch": "@BRANCH@",
"disable-fsckobjects": true
},
{
"type": "patch",
"path": "flatpak-disable-gpgconf-socketdir-test.patch"
},
{
"type": "archive",
"url": "https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.2-bin.tar.xz",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment