From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D4D00138351 for ; Thu, 12 Mar 2020 23:33:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 00BFAE0BF4; Thu, 12 Mar 2020 23:33:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6359DE0BF4 for ; Thu, 12 Mar 2020 23:33:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2B46F34EFBB for ; Thu, 12 Mar 2020 23:33:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A26F12B for ; Thu, 12 Mar 2020 23:33:53 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1584055999.afc59a3c8ee5e8638a848dc70ba56d7e03e5fa00.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/okular/files/ X-VCS-Repository: proj/kde X-VCS-Files: kde-apps/okular/files/okular-20.03.70-tests.patch X-VCS-Directories: kde-apps/okular/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: afc59a3c8ee5e8638a848dc70ba56d7e03e5fa00 X-VCS-Branch: master Date: Thu, 12 Mar 2020 23:33:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a31277b7-e532-406f-927b-eb6d9306cf30 X-Archives-Hash: e739e279a31077f6b65171d805f05953 commit: afc59a3c8ee5e8638a848dc70ba56d7e03e5fa00 Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Mar 12 22:56:24 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Mar 12 23:33:19 2020 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=afc59a3c kde-apps/okular: Rebase ${PN}-20.03.70-tests.patch on top of HEAD Necessary after upstream commit 4019ec56e Thanks-to: Duncan <1i5t5.duncan cox.net> Closes: https://bugs.gentoo.org/712218 Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner gentoo.org> kde-apps/okular/files/okular-20.03.70-tests.patch | 46 ++++++++++++++++++++--- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/kde-apps/okular/files/okular-20.03.70-tests.patch b/kde-apps/okular/files/okular-20.03.70-tests.patch index db7ec3993d..d906e2a00f 100644 --- a/kde-apps/okular/files/okular-20.03.70-tests.patch +++ b/kde-apps/okular/files/okular-20.03.70-tests.patch @@ -1,4 +1,4 @@ -From 5f093fa9798ad30cda115cea573d18296696a0a9 Mon Sep 17 00:00:00 2001 +From c675ba8bed1e792f351fabf3ba040a86138f9f84 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Thu, 12 Oct 2017 14:09:09 +0200 Subject: [PATCH] Move tests into existing (auto)tests subdirectories @@ -7,11 +7,14 @@ Subject: [PATCH] Move tests into existing (auto)tests subdirectories generators/chm/CMakeLists.txt | 12 +++--------- generators/chm/autotests/CMakeLists.txt | 8 ++++++++ generators/chm/autotests/chmgeneratortest.cpp | 2 +- + generators/comicbook/CMakeLists.txt | 10 +++------- + generators/comicbook/autotests/CMakeLists.txt | 6 ++++++ generators/kimgio/CMakeLists.txt | 6 +----- generators/kimgio/tests/CMakeLists.txt | 5 +++++ generators/kimgio/tests/kimgiotest.cpp | 2 +- - 6 files changed, 19 insertions(+), 16 deletions(-) + 8 files changed, 28 insertions(+), 23 deletions(-) create mode 100644 generators/chm/autotests/CMakeLists.txt + create mode 100644 generators/comicbook/autotests/CMakeLists.txt create mode 100644 generators/kimgio/tests/CMakeLists.txt diff --git a/generators/chm/CMakeLists.txt b/generators/chm/CMakeLists.txt @@ -52,7 +55,7 @@ index 000000000..59753ca45 + +target_compile_definitions(chmgeneratortest PRIVATE -DGENERATOR_PATH="$") diff --git a/generators/chm/autotests/chmgeneratortest.cpp b/generators/chm/autotests/chmgeneratortest.cpp -index 6b0b8efc7..25fd6631a 100644 +index 9245a736f..5a2c487b4 100644 --- a/generators/chm/autotests/chmgeneratortest.cpp +++ b/generators/chm/autotests/chmgeneratortest.cpp @@ -34,7 +34,7 @@ void ChmGeneratorTest::initTestCase() @@ -64,6 +67,39 @@ index 6b0b8efc7..25fd6631a 100644 QMimeDatabase db; const QMimeType mime = db.mimeTypeForFile( testFile ); QCOMPARE( m_document->openDocument(testFile, QUrl(), mime), Okular::Document::OpenSuccess ); +diff --git a/generators/comicbook/CMakeLists.txt b/generators/comicbook/CMakeLists.txt +index 9a07c7183..316c93152 100644 +--- a/generators/comicbook/CMakeLists.txt ++++ b/generators/comicbook/CMakeLists.txt +@@ -29,13 +29,9 @@ if (KArchive_HAVE_LZMA) + target_compile_definitions(okular_comicbook PRIVATE -DWITH_K7ZIP=1) + endif() + +-########### autotests ############### +- +-add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/" ) +-ecm_add_test(autotests/comicbooktest.cpp +- TEST_NAME "comicbooktest" +- LINK_LIBRARIES Qt5::Test KF5::CoreAddons okularcore okular_comicbook +-) ++if(BUILD_TESTING) ++ add_subdirectory(autotests) ++endif() + + ########### install files ############### + install( FILES okularComicbook.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) +diff --git a/generators/comicbook/autotests/CMakeLists.txt b/generators/comicbook/autotests/CMakeLists.txt +new file mode 100644 +index 000000000..aaacb341a +--- /dev/null ++++ b/generators/comicbook/autotests/CMakeLists.txt +@@ -0,0 +1,6 @@ ++add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/../" ) ++ ++ecm_add_test(comicbooktest.cpp ++ TEST_NAME "comicbooktest" ++ LINK_LIBRARIES Qt5::Test KF5::CoreAddons okularcore okular_comicbook ++) diff --git a/generators/kimgio/CMakeLists.txt b/generators/kimgio/CMakeLists.txt index b8cac76df..49f893bc1 100644 --- a/generators/kimgio/CMakeLists.txt @@ -95,7 +131,7 @@ index 000000000..f31bf3fe8 +ecm_add_test(${kimgiotest_SRCS} TEST_NAME "kimgiotest" LINK_LIBRARIES okularcore okularpart Qt5::Svg Qt5::Test) +target_compile_definitions(kimgiotest PRIVATE -DGENERATOR_PATH="$") diff --git a/generators/kimgio/tests/kimgiotest.cpp b/generators/kimgio/tests/kimgiotest.cpp -index b3039a6bb..78608df9d 100644 +index f2e50641d..a24f7af80 100644 --- a/generators/kimgio/tests/kimgiotest.cpp +++ b/generators/kimgio/tests/kimgiotest.cpp @@ -9,7 +9,7 @@ @@ -108,5 +144,5 @@ index b3039a6bb..78608df9d 100644 #include #include -- -2.14.2 +2.25.1