Commit Graph

23 Commits

Author SHA1 Message Date
Martchus 93ecee3e71 Fix version constraint for `qputenv` usage
The QByteArray overload has only been removed since Qt 6.5 and without the removal
a QByteArray is attempted to be instantiated.
2024-02-16 19:18:02 +01:00
Martchus 2fab93a00a Fix compiling tests against Qt 5 2023-09-01 21:51:58 +02:00
Martchus 652497d06e Allow running CLI tests under Windows 2023-08-19 19:15:09 +02:00
Martchus 66a8dda244 Improve test setup
* Improve code for reading environment variables
* Make tests work when the temp directory is not `/tmp` because e.g. `TEMP`
  has been set or tests are executed under Windows
2023-08-02 17:36:26 +02: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 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 f75966aadc Fix warnings 2021-03-20 22:39:40 +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 64473df5ba Adapt to changes in c++utilities 2019-06-10 22:48:26 +02:00
Martchus c34db3eb1c Fix building CLI tests when JavaScript provider disabled 2019-04-10 20:37:29 +02: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 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 a2dd7a7e7e Use timeout factor also when waiting for GUI startup 2018-10-20 22:26:53 +02:00
Martchus de9259e545 Show whether filesystem watcher active 2018-09-15 18:25:02 +02:00
Martchus 0acfdd7002 Use "rescan disabled" instead of "0 s" 2018-07-05 17:40:36 +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