Ivailo Monev
63dcefb9cd
kdecore: do not rely on compiler feature to detect null output
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-10 12:17:39 +02:00
Ivailo Monev
366c36f02a
kdecore: remove unused KDebug block feature
...
fix expected output in test while at it, test now passes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-10 12:16:48 +02:00
Ivailo Monev
49031117da
kdecore: remove RPATH settings override
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-07 23:34:05 +02:00
Ivailo Monev
d2c5598a0f
generic: DragonFly BSD build fixes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2020-12-25 00:14:07 +00:00
Ivailo Monev
5d2d39e853
generic: drop support for operating systems Katie does not support
...
replace internal definitions with Q_OS_<OS> alternatives checks while at it
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-25 04:48:18 +02:00
Ivailo Monev
cb045b2d9f
kdecore: call kbuildsycoca via non-static QProcess::start()
...
since QProcess::execute() is static it is possible to call it with object
but it does not do what one expects (failure in API design). it creates a
new process but any other methods calls have no effect on that.
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-21 19:22:04 +00:00
Ivailo Monev
478ca250a2
generic: replace installation paths with KDE4_ prefixed
...
this is TODO from issue #9 . CPack and CTest configs will not be
supported. most of the changes done to other repisitories is automated
via:
find -type f -exec sed -i -e 's|${INSTALL_DIR}|${KDE4_INSTALL_DIR}|g' \
-e 's|${EXEC_INSTALL_PREFIX}|${KDE4_EXEC_INSTALL_PREFIX}|g' \
-e 's|${SHARE_INSTALL_PREFIX}|${KDE4_SHARE_INSTALL_PREFIX}|g' \
-e 's|${BIN_INSTALL_DIR}|${KDE4_BIN_INSTALL_DIR}|g' \
-e 's|${SBIN_INSTALL_DIR}|${KDE4_SBIN_INSTALL_DIR}|g' \
-e 's|${LIB_INSTALL_DIR}|${KDE4_LIB_INSTALL_DIR}|g' \
-e 's|${LIBEXEC_INSTALL_DIR}|${KDE4_LIBEXEC_INSTALL_DIR}|g' \
-e 's|${INCLUDE_INSTALL_DIR}|${KDE4_INCLUDE_INSTALL_DIR}|g' \
-e 's|${PLUGIN_INSTALL_DIR}|${KDE4_PLUGIN_INSTALL_DIR}|g' \
-e 's|${IMPORTS_INSTALL_DIR}|${KDE4_IMPORTS_INSTALL_DIR}|g' \
-e 's|${CONFIG_INSTALL_DIR}|${KDE4_CONFIG_INSTALL_DIR}|g' \
-e 's|${DATA_INSTALL_DIR}|${KDE4_DATA_INSTALL_DIR}|g' \
-e 's|${ICON_INSTALL_DIR}|${KDE4_ICON_INSTALL_DIR}|g' \
-e 's|${KCFG_INSTALL_DIR}|${KDE4_KCFG_INSTALL_DIR}|g' \
-e 's|${LOCALE_INSTALL_DIR}|${KDE4_LOCALE_INSTALL_DIR}|g' \
-e 's|${MIME_INSTALL_DIR}|${KDE4_MIME_INSTALL_DIR}|g' \
-e 's|${SERVICES_INSTALL_DIR}|${KDE4_SERVICES_INSTALL_DIR}|g' \
-e 's|${SERVICETYPES_INSTALL_DIR}|${KDE4_SERVICETYPES_INSTALL_DIR}|g' \
-e 's|${SOUND_INSTALL_DIR}|${KDE4_SOUND_INSTALL_DIR}|g' \
-e 's|${TEMPLATES_INSTALL_DIR}|${KDE4_TEMPLATES_INSTALL_DIR}|g' \
-e 's|${WALLPAPER_INSTALL_DIR}|${KDE4_WALLPAPER_INSTALL_DIR}|g' \
-e 's|${AUTOSTART_INSTALL_DIR}|${KDE4_AUTOSTART_INSTALL_DIR}|g' \
-e 's|${XDG_APPS_INSTALL_DIR}|${KDE4_XDG_APPS_INSTALL_DIR}|g' \
-e 's|${XDG_DIRECTORY_INSTALL_DIR}|${KDE4_XDG_DIRECTORY_INSTALL_DIR}|g' \
-e 's|${XDG_MIME_INSTALL_DIR}|${KDE4_XDG_MIME_INSTALL_DIR}|g' \
-e 's|${SYSCONF_INSTALL_DIR}|${KDE4_SYSCONF_INSTALL_DIR}|g' \
-e 's|${MAN_INSTALL_DIR}|${KDE4_MAN_INSTALL_DIR}|g' \
-e 's|${INFO_INSTALL_DIR}|${KDE4_INFO_INSTALL_DIR}|g' \
-e 's|${DBUS_INTERFACES_INSTALL_DIR}|${KDE4_DBUS_INTERFACES_INSTALL_DIR}|g' \
-e 's|${DBUS_SERVICES_INSTALL_DIR}|${KDE4_DBUS_SERVICES_INSTALL_DIR}|g' \
-e 's|${DBUS_SYSTEM_SERVICES_INSTALL_DIR}|${KDE4_DBUS_SYSTEM_SERVICES_INSTALL_DIR}|g' \
-e 's|${KAUTH_HELPER_PLUGIN_DIR}|${KDE4_KAUTH_HELPER_PLUGIN_DIR}|g' \
-e 's|${KAUTH_BACKEND_PLUGIN_DIR}|${KDE4_KAUTH_BACKEND_PLUGIN_DIR}|g' {} +
note that if you execute this command you may corrupt the git repository
files so move the .git directory out of the way. you can also verify
that there are no other reference to the compatibility installation
paths via:
git grep \
-e INSTALL_DIR \
-e EXEC_INSTALL_PREFIX \
-e SHARE_INSTALL_PREFIX \
-e BIN_INSTALL_DIR \
-e SBIN_INSTALL_DIR \
-e LIB_INSTALL_DIR \
-e LIBEXEC_INSTALL_DIR \
-e INCLUDE_INSTALL_DIR \
-e PLUGIN_INSTALL_DIR \
-e IMPORTS_INSTALL_DIR \
-e CONFIG_INSTALL_DIR \
-e DATA_INSTALL_DIR \
-e ICON_INSTALL_DIR \
-e KCFG_INSTALL_DIR \
-e LOCALE_INSTALL_DIR \
-e MIME_INSTALL_DIR \
-e SERVICES_INSTALL_DIR \
-e SERVICETYPES_INSTALL_DIR \
-e SOUND_INSTALL_DIR \
-e TEMPLATES_INSTALL_DIR \
-e WALLPAPER_INSTALL_DIR \
-e AUTOSTART_INSTALL_DIR \
-e XDG_APPS_INSTALL_DIR \
-e XDG_DIRECTORY_INSTALL_DIR \
-e XDG_MIME_INSTALL_DIR \
-e SYSCONF_INSTALL_DIR \
-e MAN_INSTALL_DIR \
-e INFO_INSTALL_DIR \
-e DBUS_INTERFACES_INSTALL_DIR \
-e DBUS_SERVICES_INSTALL_DIR \
-e DBUS_SYSTEM_SERVICES_INSTALL_DIR \
-e KAUTH_HELPER_PLUGIN_DIR \
-e KAUTH_BACKEND_PLUGIN_DIR | grep -v KDE4_
this change should make default installation Filesystem Hierarchy
Standard (FHS) compliant and packaging easier since library suffix (e.g.
64 for x86_64 hosts) will not have to be specified explicitly, it may
solve possible conflicts with installation path variables from other
projects which use custom installation paths aswell
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:46:43 +00:00
Ivailo Monev
15c1305965
kdecore: remove redundant util check and kmemtest
...
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-03 18:54:37 +00:00
Ivailo Monev
38c049bb36
kdecore: use QDir::exists() to check for directory existence from tests
...
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-02 22:38:07 +00:00
Ivailo Monev
246fa5b377
kdecore: remove kde4- prefix from services lookup in KServiceTest
...
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-02 18:31:03 +00:00
Ivailo Monev
c82efdb5d9
kdecore: adjust expected data of KLocaleTest::languages() test case
...
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-02 02:26:52 +00:00
Ivailo Monev
597a84c0ef
kdecore: rework KCharsetsTest test
...
the static initializer was removed since Katie does not require it
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-02 01:48:40 +00:00
Ivailo Monev
459f9d1b7a
kdecore: fix process output capturing in KDebugTest::testNoMainComponentData()
...
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-02 01:25:17 +00:00
Ivailo Monev
6c67e5adf8
generic: make use of QHostInfo::localHostName()
...
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-21 19:56:58 +00:00
Ivailo Monev
aede58befc
generic: reimplement KDirWatch
...
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-29 12:18:09 +00:00
Ivailo Monev
42b418eca5
kdecore: namespaced Qt4/Katie build fixes
...
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-29 11:42:39 +00:00
Ivailo Monev
bc28637562
generic: get rid of KLocalSocket and KTcpSocket
...
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-04 19:49:49 +00:00
Ivailo Monev
61333c4671
generic: namespaced Qt4/Katie build fixes
...
most of the changes were done trought Katie's namefsck script which
convertes forward class declarations to include directives, however
other fixes here and there were needed as well as some questionable
changes to Q_DECLARE_TYPEINFO() macro calls because they most likely
have to do the namespacing themselfs (QT_BEGIN/END_NAMESPACE, and
probably will be in Katie) meaning that some of the changes may be
temporary and reverted later.
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2017-08-04 09:24:39 +00:00
Ivailo Monev
c70564040b
generic: get rid of kdefakes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2017-08-02 04:38:42 +00:00
Ivailo Monev
055f2e8331
kdecore: make use of thread_local
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-10-24 06:24:11 +00:00
Ivailo Monev
43252a56fc
kdecore: fix hang in kglobaltest
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-20 16:03:18 +00:00
Ivailo Monev
1e26bf4a5d
generic: build system cleanups
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-03 00:05:54 +00:00
Ivailo Monev
2b452705c8
generic: adjust some tests to recent changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-05-15 10:45:42 +00:00
Ivailo Monev
6ad8959836
generic: fix some tests build after 1f34f5ad
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-05-03 01:14:03 +00:00
Ivailo Monev
cd1ca7c87e
generic: replace KProcess with QProcess where feasable
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-30 06:09:02 +00:00
Ivailo Monev
3d12c6d2e8
generic: use QFilesystemWatcher instead of inotify directly
...
this allows for less complexity and more abstraction offloaded to
Qt itself which supports dnotify, inotify, kqueue and fsevents.
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-29 15:28:27 +00:00
Ivailo Monev
eefd1b6b66
kdecore: fix klocale test
...
there are no en_US translations
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-29 14:58:06 +00:00
Ivailo Monev
d147517cd5
generic: remove redudndant kdelnk checks
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-21 20:13:10 +00:00
Ivailo Monev
dec5dfe89f
kdecore: adjust kservice test to recent changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-08 01:44:31 +00:00
Ivailo Monev
aceeceb7e4
generic: remove unused KBugReport
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-06 06:52:45 +00:00
Ivailo Monev
c6f33f23aa
generic: get rid of KImageCache and KSharedDataCache
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-05 03:48:27 +00:00
Ivailo Monev
196d29abf1
generic: remove kascii
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-01 05:32:45 +00:00
Ivailo Monev
b4a354b74b
generic: use QCryptographicHash instead of KMD5
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-01 04:32:22 +00:00
Ivailo Monev
d41a40607a
kdecore: adjust tests to recent changes
...
23081b4d08
a8a54f0484
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-31 18:42:12 +00:00
Ivailo Monev
225eb7a170
generic: remove Java and image plugins for khtml
...
the Java applet viewer has not been touch for a long time and I
suppose nobody will. the image plugin is useless when gwenview is
installed which is the image viewer for KDE.
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-03 03:52:19 +02:00
Ivailo Monev
eac889a328
kdecore: fix kdebug test
...
also define KDEBINDIR for the tests as it turns out that running
the tests from test target in directory other than the top-level
one (e.g. make -C kdecore/ test) breaks the logic/expectaions in
some tests thus using the full paths to the test tools.
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-08 18:25:20 +02:00
Ivailo Monev
4e24ac5d73
kdecore: fix resource type test
...
the data that was used for the tests is long gone as it was part
of kdoctools
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-08 17:56:45 +02:00
Ivailo Monev
c5e5536470
kdecore: fix kstandarddirs test, kconf_update is not longer supported
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-03 06:31:20 +02:00
Ivailo Monev
d2a5236cd7
generic: build system cleanups
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-10-31 12:01:45 +02:00
Ivailo Monev
4a7e7dacad
kdecore: remove deprecated kshared typedef
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-10-30 15:04:08 +02:00
Ivailo Monev
d721a8ddf3
kdecore: fix build of kstandarddirs test
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-10-29 18:21:24 +02:00
Ivailo Monev
a4996f3d49
generic: misc cleanups
2015-10-01 07:46:47 +03:00
Ivailo Monev
5731f1690c
kdecore: adjust kdebug and kdesktopfile tests
2015-10-01 06:07:16 +03:00
Ivailo Monev
d6d3906a71
kdecore: minor karchive test cleanup, test still hangs
...
for some reason the group is not what the test expects, it may
not fail if the tests are run as root user but I doubt someone
will do that (I do not for one)
2015-09-23 04:11:05 +00:00
Ivailo Monev
e7133114e1
generic: misc cleanups
2015-09-05 05:16:46 +00:00
Ivailo Monev
e1c89a39e7
generic: misc cleanups
2015-09-04 01:57:47 +00:00
Ivailo Monev
4f4db96f84
kdecore: disable karchivetest for now
2015-08-27 18:30:17 +03:00
Ivailo Monev
fee99b1a9a
kdecore: fix kservice test
2015-08-27 04:14:09 +03:00
Ivailo Monev
3d5edf4880
kdecore: fix kservice test
2015-08-27 03:43:41 +03:00
Ivailo Monev
a3ec7d5356
generic: misc cleanups
2015-08-25 22:10:31 +03:00