okteta: update to 0.26.4, support testing
This commit is contained in:
parent
6c5fd196f0
commit
7099779627
2 changed files with 40 additions and 4 deletions
36
srcpkgs/okteta/patches/cmake.testing.working_dir.patch
Normal file
36
srcpkgs/okteta/patches/cmake.testing.working_dir.patch
Normal file
|
@ -0,0 +1,36 @@
|
|||
fix https://invent.kde.org/utilities/okteta/-/issues/1
|
||||
|
||||
--- kasten/controllers/CMakeLists.txt.ORIG 2020-07-28 23:41:01.000000000 +0200
|
||||
+++ kasten/controllers/CMakeLists.txt 2020-11-01 11:15:35.947523996 +0100
|
||||
@@ -583,14 +583,29 @@
|
||||
test/scriptvalueconvertertest.cpp
|
||||
test/osdparsertest.cpp
|
||||
test/commonparsertest.cpp
|
||||
- test/jsparsertest.cpp
|
||||
- test/customtostringtest.cpp
|
||||
test/locktooffsettest.cpp
|
||||
|
||||
NAME_PREFIX structures-
|
||||
LINK_LIBRARIES structureview-tested-srcs Qt5::Test poddecoder-typeeditors
|
||||
)
|
||||
|
||||
+ #these tests are using QFINDTESTDATA, that does not work since managed by
|
||||
+ #CMake from this parent directory: WORKING_DIRECTORY must be set accordindly
|
||||
+ add_executable(jsparsertest test/jsparsertest.cpp)
|
||||
+ add_test(
|
||||
+ NAME structures-jsparsertest
|
||||
+ COMMAND jsparsertest
|
||||
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/test
|
||||
+ )
|
||||
+ target_link_libraries(jsparsertest structureview-tested-srcs Qt5::Test poddecoder-typeeditors)
|
||||
+ add_executable(customtostringtest test/customtostringtest.cpp)
|
||||
+ add_test(
|
||||
+ NAME structures-customtostringtest
|
||||
+ COMMAND customtostringtest
|
||||
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/test
|
||||
+ )
|
||||
+ target_link_libraries(customtostringtest structureview-tested-srcs Qt5::Test poddecoder-typeeditors)
|
||||
+
|
||||
#replace tool unit tests
|
||||
ecm_add_test(
|
||||
view/search/searchjob.cpp
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'okteta'
|
||||
pkgname=okteta
|
||||
reverts="4.14.3_1"
|
||||
version=0.26.3
|
||||
version=0.26.4
|
||||
revision=1
|
||||
build_style=cmake
|
||||
hostmakedepends="extra-cmake-modules gettext python qt5-qmake qt5-host-tools
|
||||
|
@ -9,16 +9,16 @@ hostmakedepends="extra-cmake-modules gettext python qt5-qmake qt5-host-tools
|
|||
makedepends="qt5-devel qt5-script-devel qca-qt5-devel kbookmarks-devel
|
||||
kcodecs-devel kcompletion-devel kconfigwidgets-devel kcrash-devel
|
||||
kcmutils-devel knewstuff-devel kparts-devel"
|
||||
checkdepends="AppStream"
|
||||
short_desc="Hexadecimal editor for binary files"
|
||||
maintainer="yopito <pierre.bourgin@free.fr>"
|
||||
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
||||
homepage="https://kde.org/applications/utilities/org.kde.okteta"
|
||||
distfiles="${KDE_SITE}/okteta/${version}/src/okteta-${version}.tar.xz"
|
||||
checksum=29dc30fd71dfc5337c7d2f814feed1ced5799337c5b1fb5098539ba30941a490
|
||||
checksum=ef22b096c4d8a682b5467ee7d8e9e05ede44cde116daef804312745c4bfd0f03
|
||||
|
||||
pre_check() {
|
||||
#this one requires xserver running
|
||||
sed -i /parts/d build/CTestTestfile.cmake
|
||||
export QT_QPA_PLATFORM=offscreen
|
||||
}
|
||||
|
||||
okteta-devel_package() {
|
||||
|
|
Loading…
Reference in a new issue