Commit Graph

112 Commits

Author SHA1 Message Date
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
Martchus ad3c8b5240 Don't meld 'unshared' into the status
Just deal with it like with the paused flag. This will
hopefully solve the issue that dirs are wrongly shown as
unshared till the next status update.
2018-07-22 22:09:18 +02:00
Martchus 0acfdd7002 Use "rescan disabled" instead of "0 s" 2018-07-05 17:40:36 +02:00
Martchus 7166f6532a Display overall status info in CLI 2018-07-05 17:39:35 +02:00
Martchus 489ee36f63 Adjust expected status for CLI test to new type handling 2018-05-13 00:22:18 +02:00
Martchus 2fcc94f567 Handle new folder types
See https://github.com/syncthing/syncthing/pull/4942
2018-05-12 23:08:57 +02:00
Martchus cfa27390f6 Apply clang-format 2018-05-08 00:38:49 +02:00
Martchus ab57b34b69 Fix usage of enable_if with GCC 8
Seems like the trick with the three dots isn't working
with GCC 8 anymore. So let's make it a default template
parameter then.

Not sure whether GCC 8 is here correct and whether this
workaround causes further trouble.
2018-05-07 23:28:11 +02:00
Martchus 473933528b Remove specific host-name from expected status in syncthingctl tests 2018-05-01 01:35:13 +02:00
Martchus 134ab0e34a Improve syncthingctl test 2018-05-01 01:32:27 +02:00
Martchus 72e1377c43 Add tests for syncthingctl 2018-05-01 01:16:20 +02:00