Commit Graph

33 Commits

Author SHA1 Message Date
A. Wilcox 26e069d6cd
Tests: Fix backend loading for tests
Using $<TARGET_FILE> we receive the entire plugin file path, leading to
errors such as:

kf.coreaddons: no metadata found in "kpmcore//home/awilcox/Code/KDE/kpmcore/bin/kpmcore/pmdummybackendplugin.so" "The shared library was not found."

Using $<TARGET_FILE_NAME> instead we are able to have just the plugin
name, which does load properly.  The tests now pass.
2022-06-12 16:14:51 -05:00
Andrius Štikonas 73de1709e2 Port to Qt6. 2022-01-16 00:17:46 +00:00
Friedrich W. H. Kossebau 2bf69932d1 testhelpers: link kpmcore to get the include directories from the interface 2020-11-16 20:56:57 +00:00
Andrius Štikonas 296f281ffb WIP: cleanup polkit port: licenses, dead code and kauth removal, add TODO about signals. 2020-10-12 20:18:55 +01:00
Andrius Štikonas fc826690b9 SPDX licenses for tests and CMakeLists.txt. 2020-09-17 02:15:16 +01:00
Yuri Chornoivan 62aaa90a29
Fix minor EBN issues 2020-03-21 11:22:15 +00:00
Yuri Chornoivan 1a7b673792 Fix minor issues found by EBN 2019-11-22 15:45:12 +02:00
Andrius Štikonas 660aa6a55e Fix a failing test. 2019-11-07 22:28:01 +00:00
Andrius Štikonas 1c771436d4 Merge branch '4.0' 2019-11-07 22:13:39 +00:00
Andrius Štikonas c9a08a593b Remove broken smart unit test.
BUG: 413853
2019-11-07 22:12:00 +00:00
Shubham Jangra 7af8045f32 Add unit test for Device
Reviewers: stikonas, cjlcarvalho

Reviewed By: stikonas

Differential Revision: https://phabricator.kde.org/D22629
2019-07-23 11:59:40 +05:30
Shubham Jangra 41b3b83335 Cleanup and constantify 2019-05-23 16:35:27 +05:30
Andrius Štikonas 6f8e6403f8 Remove trailing whitespace. 2019-05-18 20:34:59 +01:00
Shubham Jangra 54f0c98dc0 Comment out 2019-05-19 01:01:05 +05:30
Shubham Jangra 3675a199bf Comment out 2019-05-19 00:51:15 +05:30
Albert Astals Cid 7f6fa41bce Mark override members as such 2019-02-16 00:17:48 +01:00
Andrius Štikonas 3df5acb9e3
Add scanDevices function that uses flags instead of bools.
Add and option to scan for loopback devices.
2019-02-09 15:40:06 +00:00
Andrius Štikonas 145f54f18c Move KAuth helper setup code to ExternalCommand class.
Delay helper startup until it is actually required.
2018-04-14 23:55:05 +03:00
Andrius Štikonas 231bfbd331 Cryptographically sign copyblocks and exit KAuth helper calls. 2018-04-13 14:24:05 +03:00
Andrius Štikonas 622def3b56 Convert more enums to scoped enums. 2018-04-09 15:14:34 +01:00
Andrius Štikonas 1062766e36 Fix spelling mistake. 2018-03-31 16:44:00 +01:00
Andrius Štikonas 738842799a Make kpmcore link libraries private. 2018-03-31 16:30:53 +01:00
Andrius Štikonas 00cb2c85d9 d-pointerize CoreBackendManager 2018-03-31 13:07:35 +01:00
Andrius Štikonas c09f6fb9fa Add a function to stop KAuth helper daemon. 2018-03-21 20:44:07 +01:00
Andrius Štikonas bd54ba7c5d Convert copyblocks code from KAuth to DBus calls to helper daemon. 2018-03-21 18:01:40 +01:00
Caio Carvalho a3d43e159f Removing LIBKPMCORE_EXPORT from SmartParser and adding SMART support dependencies to testsmart in cmake 2018-01-21 01:41:59 -03:00
Caio Carvalho 49c0c39f4b - Including SMART support test
- Adding export macro to SmartParser
2018-01-20 21:56:10 -03:00
Andrius Štikonas 47429dd1bf Proof of concept attempt to implement KAuth. 2017-12-10 17:36:39 +00:00
Andrius Štikonas 2d7a27e066 Add a test for KPMcore device scanner. 2017-10-03 20:03:35 +01:00
Andrius Štikonas e02160d025 Fix qAsConst usage. 2017-10-03 11:19:07 +01:00
Adriaan de Groot 63b501f41d Tests: simple listing of attached devices 2017-10-03 05:56:16 -04:00
Adriaan de Groot 12ee62d393 Tests: fixup license headers, code style 2017-10-02 17:17:03 +02:00
Adriaan de Groot f1dee86084 Tests: initial test in initializing lib and loading a backend
- The default backend test will generally fail because
   the backend isn't installed
 - Test known backends if they are built, by passing full path
2017-10-02 16:15:01 +02:00