[neon/extras/kstars/Neon/release] debian: disable TestKSPaths::testKStarsInstallation tests
Pino Toscano
null at kde.org
Tue Nov 1 11:10:31 GMT 2022
Git commit 4c8b076190d7df6a4f96ce51569d0e39b96a2cb1 by Pino Toscano.
Committed on 16/09/2021 at 19:56.
Pushed by jriddell into branch 'Neon/release'.
disable TestKSPaths::testKStarsInstallation tests
M +2 -0 debian/changelog
M +1 -0 debian/patches/series
A +24 -0 debian/patches/skip-installed-tests.diff
https://invent.kde.org/neon/extras/kstars/commit/4c8b076190d7df6a4f96ce51569d0e39b96a2cb1
diff --git a/debian/changelog b/debian/changelog
index ab33d8e..1f65230 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -30,6 +30,8 @@ kstars (5:3.5.5-0r1) UNRELEASED; urgency=medium
* CI: disable the blhc job.
* Disable the TestSkyPoint::testUpdateCoords() test for now, as it seems to
fail; patch skip-skypoint-test.diff.
+ * Disable the TestKSPaths::testKStarsInstallation tests for now, as they
+ check installed files; patch skip-installed-tests.diff.
* Drop the breaks/replaces for versions older than Debian Buster.
* Drop the removal of conffiles for versions older than Debian Buster.
* Use the ${misc:Pre-Depends} substvar in kstars.
diff --git a/debian/patches/series b/debian/patches/series
index 483da20..8cbadc0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
skip-skypoint-test.diff
+skip-installed-tests.diff
diff --git a/debian/patches/skip-installed-tests.diff b/debian/patches/skip-installed-tests.diff
new file mode 100644
index 0000000..9ebe31f
--- /dev/null
+++ b/debian/patches/skip-installed-tests.diff
@@ -0,0 +1,24 @@
+Author: Pino Toscano <pino at debian.org>
+Description: Disable tests that assume installed files
+ The test suite is run on the uninstalled built sources, so a test that checks
+ for installed files cannot work (and partially it does not make sense).
+Forwarded: no
+Last-Update: 2021-09-16
+
+--- a/Tests/auxiliary/testkspaths.cpp
++++ b/Tests/auxiliary/testkspaths.cpp
+@@ -120,6 +120,7 @@ void TestKSPaths::testStandardPaths()
+ #endif
+ }
+
++#if 0
+ void TestKSPaths::testKStarsInstallation_data()
+ {
+ #if QT_VERSION < 0x050900
+@@ -158,5 +159,6 @@ void TestKSPaths::testKStarsInstallation
+ QVERIFY(!KSPaths::locateAll(TYPE, FILE).isEmpty());
+ #endif
+ }
++#endif
+
+ QTEST_GUILESS_MAIN(TestKSPaths)
More information about the Neon-commits
mailing list