Martchus
f444574cb8
Require at least Boost 1.75
...
Apparently 1.66 is broken as it does not invoke the `on_exit` handler when
the process finishes. When switching from 1.66 to 1.75 on Leap 15.4 the
problem is not reproducible. Maybe this was already fixed in an earlier
version than 1.75 but 1.75 was the next version available on Leap 15.4 to
test with.
2023-01-28 20:19:28 +01:00
Martchus
14c4aa618b
Remove redundant `META_PUBLIC_QT_MODULES`
2022-08-09 11:08:27 +02:00
Martchus
3b50d78f1e
Use resource lock to avoid concurrent execution of tests requiring Syncthing test instance
...
This is likely the cleaner approach compared to just enforcing a serial run
for the CLI test.
2021-10-13 00:14:35 +02:00
Martchus
c3182ff256
Apply cmake-format
2021-10-07 18:28:13 +02:00
Julianne420
ddefa35daa
Add zh_CN translation
2021-10-07 01:20:24 +08:00
Hannah Rittich
2968898195
Allow finding of packages in namespaces
2021-10-03 02:07:18 +02:00
Martchus
0ef3b80447
Fix typos found via `codespell --skip .git -w`
2021-07-03 19:29:49 +02:00
Martchus
17f394c118
Add missing library ws2_32 required by Boost.Asio under Windows
2021-06-27 18:54:43 +02:00
Martchus
eac3b31727
Link against threading library when using Boost.Process
2021-06-21 17:44:43 +02:00
Martchus
1bc52ebb0f
Improve Boost.Process-based SyncthingProcess
...
* Implement member functions required to run tests
* Add documentation
* Add minor tweaks
2021-06-17 20:32:40 +02:00
Martchus
9ce9b11ba4
Use Boost.Process for launcher to cope with further sub processes
...
* Use a process group / job object via Boost.Process to be able to
terminate sub processes as well
* Do not try to stop the process gracefully under Windows by posting
WM_CLOSE because this has no effect on Syncthing anyways
* See https://github.com/Martchus/syncthingtray/issues/94
2021-06-16 22:44:48 +02:00
Martchus
62e7797558
Allow enabling logging of libsyncthingconnector at runtime
...
* Remove compile-time switches to enable logging
* Enable logging if certain environment variables are set
* Allow logging all API responses
2021-05-18 18:21:48 +02:00
Martchus
b2ba8c01ea
Use header-only target of qtutilities
...
See the commit message of the corresponding commit in c++utilities
(9fb3bbe179698fb10339d4911b98531b0847cfa1) and also the related commit in
reflective-rapidjson (5c49a438ade5ae4253ae978e3a22cf88bd7cb2e2).
2021-01-01 18:50:46 +01:00
Martchus
49bbebd1ad
Allow configuring package suffix for qtutilities individually
2020-10-23 17:03:57 +02:00
Martchus
0b5fb14931
Remove overspecification of Qt version in documentation and comments
2020-09-04 01:13:46 +02:00
Martchus
3b49e9e312
Support Qt 6 (commit 174154b)
2020-09-04 01:09:18 +02:00
Martchus
1d0888a621
Reformat CMakeLists.txt with cmake-format 0.6.11
2020-08-11 23:15:41 +02:00
Martchus
ccb2ac3144
Clear recent changes when re-connecting (to other instance)
2020-03-17 18:55:50 +01:00
Martchus
c152152b67
Improve comments in build scripts
2020-03-05 19:04:55 +01:00
Martchus
cb0d414018
Use std::unordered_map consistently and support legacy Qt
2020-03-02 15:38:38 +01:00
Martchus
bafdb22c47
Compute the sync state for remote devices
...
See https://github.com/Martchus/syncthingtray/issues/62
2020-03-01 22:04:30 +01:00
Martchus
a9abeea8e3
Apply cmake-format 0.6.8
2020-02-02 19:50:35 +01:00
Martchus
4b5a8efa3e
Apply cmake-format v0.6.0
2019-11-30 18:24:19 +01:00
Martchus
cf5faeca51
Apply cmake-format
2019-09-08 18:12:05 +02:00
p-bo
cd0e5fee74
Added Czech localization
2019-08-20 22:13:00 +02:00
Martchus
7e46096feb
Log directory/device list renewal when event logging enabled
...
This is useful for debugging to track (unnecessary) renewal of those
lists.
2019-07-25 18:27:38 +02:00
Martchus
56e1e98493
Apply cmake-format
2019-06-16 16:58:52 +02:00
Martchus
d88df866d2
Adapt to c++utilities v5
2019-05-04 21:05:21 +02:00
Martchus
326f03b604
Apply cmake-format
2019-02-06 17:36:14 +01:00
Martchus
2370fe1ef5
Let CMake generate code for test application
2019-01-13 22:16:23 +01:00
Martchus
cdd78fb026
Fix typo in code for mocked service configuration
2018-12-23 19:42:17 +01:00
Martchus
dcbc19cf8c
Adapt mocking to latest changes
...
* Cover all required requests so the connection can be
established without errors
* Add more events to test error handling
* Fix definition of LIB_SYNCTHING_CONNECTOR_CONNECTION_MOCKED
after syncthingconnection.cpp split
2018-11-03 20:44:11 +01:00
Martchus
32b2907e67
Split syncthingconnection.cpp
...
* Move methods for specific requests to its own file
2018-10-28 15:37:25 +01:00
Martchus
f380732068
Don't use std::function for handlers in testcode
...
Just use the lambdas directly and make if(handler) check
only if possible.
2018-10-21 21:07:43 +02:00
Martchus
8dde95fc82
Don't override defines when configuring optional behavior
2018-10-18 23:23:47 +02:00
Martchus
e410991012
Allow logging all API calls
2018-10-14 22:48:52 +02:00
Martchus
00e0b58c86
Allow logging POSTs
2018-10-12 00:20:15 +02:00
Martchus
7166f6532a
Display overall status info in CLI
2018-07-05 17:39:35 +02:00
Martchus
082eaa29b6
Allow mocking SyncthingService
2018-04-20 23:00:56 +02:00
Martchus
278ba521d9
Fix warning for SYNCTHING_CONNECTION_LOG_SYNCTHING_EVENTS
2018-04-11 23:13:02 +02:00
Martchus
d74738a8a4
Enable event logging for debugging purposes
2018-03-31 19:48:27 +02:00
Martchus
841b250680
Add SyncthingNotifier class
...
First step of refactoring compution of high-level
notifications to prevent code duplication for compution
of "disconnected" and "sync complete" events.
2017-12-30 00:28:03 +01:00
Martchus
fe0688cb27
Only add helpers for mocked SyncthingConnection if required
2017-09-05 00:35:54 +02:00
Martchus
2747ce76ff
Allow compiling connector with mocked SyncthingConnection
2017-09-05 00:22:52 +02:00
Martchus
c843548baa
Disable systemd support by default under MacOS
2017-08-06 00:38:30 +02:00
Martchus
6e7873e114
Add Qt Network as public dependency of connector
2017-08-06 00:37:49 +02:00
Martchus
f95ad68a3a
Link testhelper against connector, remove global includes
2017-07-11 22:53:45 +02:00
Martchus
2845f5883d
Fix compiling tests under 32-bit arch
2017-06-01 11:11:38 +02:00
Martchus
675c1fb669
Use DateTime::unixEpochStart()
2017-04-19 22:09:47 +02:00
Martchus
40b8713ba6
Move test helper to separate library
...
Allows to share common test helper code
between tests for different components
2017-04-01 16:56:36 +02:00