Martchus
96e92f13a3
Avoid relying on symlink for include directories
...
Symlinks aren't working very well with Git under Windows so better avoid
them.
2023-02-27 18:27:33 +01:00
Martchus
5f44e2b49e
Avoid relying on symlink to share testfiles between connector and cli
...
Symlinks aren't working very well with Git under Windows so better avoid
them.
2023-02-27 18:02:58 +01:00
Martchus
98852bacc5
Avoid unconditional use of platform-specific header `unistd.h`
...
* Also avoid use of platform-specific tempdir
* Use functions from the C++ standard library instead
* Improve error handling of related function calls
2023-02-11 15:55:45 +01:00
Martchus
c4eee6bc27
Adapt syncthingctl tests to latest changes
2023-01-28 20:40:00 +01:00
Martchus
4d96f791b6
Apply clang-format
2023-01-28 20:19:43 +01:00
Martchus
818b40801a
Allow referencing directories by their labels in syncthingctl
2023-01-28 17:17:34 +01:00
Martchus
f865d1ffbc
Use folder label as "caption" in syncthingctl instead of ID
...
This makes it easier to identify folders when one is not using
human-readable folder IDs and is more consistent with other UIs.
2023-01-28 17:05:49 +01:00
Martchus
256e90a0cb
Avoid warning about unqualified std cast
2022-11-04 16:51:01 +01:00
Martchus
a90e79b78f
Enable virtual terminal processing or disable ANSI escape codes
...
See https://github.com/Martchus/syncthingtray/issues/132
2022-06-07 16:52:17 +02:00
Martchus
e81166cd79
Fix several warnings when building against Qt 6
2021-11-04 00:16:27 +01: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
6c23bb6e82
Avoid running CLI and connector tests in parallel
...
* Fix the test execution when parallel ctest jobs are configured
via e.g. `CTEST_PARALLEL_LEVEL`
* See https://github.com/Martchus/syncthingtray/issues/116
2021-10-12 23:40:35 +02: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
695696bb00
Add linebreak before Syncthing's output in `syncthingctl` test
2021-07-01 17:25:45 +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
239f750028
Improve timestamp parsing/handling
...
* Use local time consistently for timestamps which might get displayed
within the UI, e.g. the dir status was in one case set to the local time
and in other cases GMT was used which could lead to discarding status
updates
* Print warning when timestamp parsing fails (instead of ignoring it
silently)
* Set directory status from folder status response even when parsing the
timestamp fails
* Catch possible exception when printing log timestamps in syncthingctl
2021-05-18 00:08:21 +02:00
Martchus
f75966aadc
Fix warnings
2021-03-20 22:39:40 +01:00
Martchus
975e86c895
Allow backend libraries to be used from other projects
...
So far the backend libraries' include paths were relative within this
repository. This means the header files could not be used at their
installed location.
This change replaces them with "<>" includes to fix that problem and adds
a new include directory so building everything at once still works.
With this change it should be easier to actually split some parts into
another repository if this one would become too big.
2021-01-25 19:48:11 +01:00
Martchus
b350aaf879
cli: Mark RelevantDir as explicit and ~Application() as override
2021-01-11 18:50:28 +01:00
Martchus
2eaddb0464
cli: Print own device always on top to fix test failures
...
* Otherwise tests fail when the name of the own device preceeds the other
device names
* See https://github.com/Martchus/PKGBUILDs/issues/102
2021-01-11 18:49:35 +01: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
da911c6350
Refactor overall status compution
...
* Allow configuring the information to consider for computing the overall
status via SyncthingStatusComputionFlags
* Add flag to allow considering the status of remote devices for
https://github.com/Martchus/syncthingtray/issues/74
* Show only plain "idle" status when no flags are present for
https://github.com/Martchus/syncthingtray/issues/76
* Set the default flags to keep the default behavior as-is
2020-12-31 02:48:18 +01:00
Martchus
49bbebd1ad
Allow configuring package suffix for qtutilities individually
2020-10-23 17:03:57 +02:00
Martchus
3b49e9e312
Support Qt 6 (commit 174154b)
2020-09-04 01:09:18 +02:00
Martchus
bcb2b49b72
Don't use lower-case Qt macros
2020-03-08 13:50:32 +01:00
Martchus
6497f74046
Use override in test fixtures
2019-10-13 18:28:32 +02:00
Martchus
5271a56397
Adapt syncthingctl test to changed logging behavior
2019-08-08 22:36:47 +02:00
Martchus
dc7d9b815f
Adapt to changes in c++utilities
2019-06-14 19:15:26 +02:00
Martchus
64473df5ba
Adapt to changes in c++utilities
2019-06-10 22:48:26 +02:00
Martchus
d88df866d2
Adapt to c++utilities v5
2019-05-04 21:05:21 +02:00
Martchus
c34db3eb1c
Fix building CLI tests when JavaScript provider disabled
2019-04-10 20:37:29 +02:00
Martchus
646d9363da
Don't show stats for pause dirs in CLI
2019-02-16 00:34:18 +01:00
Martchus
326f03b604
Apply cmake-format
2019-02-06 17:36:14 +01:00
Martchus
bb513c0a61
Prevent waiting forever also in CLI tests
2019-01-13 23:39:37 +01:00
Martchus
2370fe1ef5
Let CMake generate code for test application
2019-01-13 22:16:23 +01:00
Martchus
047050ac8f
Re-enable all CLI tests
...
the issue should be fixed now
2018-10-26 14:08:47 +02:00
Martchus
049234286c
Improve startup of CLI tests
2018-10-25 18:23:37 +02:00
Martchus
b9a65ef113
Remove redundant poll interval defaults
2018-10-25 18:23:37 +02:00
Martchus
fbad874471
Revert "cli: Ignore that version might be missing"
...
This reverts commit 7ba6afba74
.
2018-10-25 01:00:01 +02:00
Martchus
7ba6afba74
cli: Ignore that version might be missing
2018-10-21 00:05:01 +02:00
Martchus
703225b410
Fix/improve CLI tests
...
* Adapt to interleaved output previously enabled in SyncthingTestInstance
* Make it work when verbose output for debugging is enabled
* Show which status line didn't match in case of an failure
* Disable flaky rescan tests in release mode
2018-10-20 23:48:24 +02:00
Martchus
1c6bd37b9d
cli: Take --no-color into account when displaying status
2018-10-20 23:42:18 +02:00
Martchus
a2dd7a7e7e
Use timeout factor also when waiting for GUI startup
2018-10-20 22:26:53 +02:00
Martchus
2e67e6b2de
Use signals for logAvailable() and qrCodeAvailable()
2018-10-20 22:08:25 +02:00
Martchus
f0a2d60906
cli: Abort editing config if nothing has changed
2018-09-15 18:42:14 +02:00
Martchus
3731933c37
Show file system watcher delay in CLI
2018-09-15 18:28:44 +02:00
Martchus
de9259e545
Show whether filesystem watcher active
2018-09-15 18:25:02 +02:00
Martchus
45ef2518e8
Apply clang-format
2018-08-04 15:47:43 +02:00
Martchus
f3e7b5fe8b
cli: Show more overall information
2018-07-30 23:01:04 +02:00