Commit Graph

21 Commits

Author SHA1 Message Date
Martchus c153173545 Fix compiling tests when systemd support is disabled 2023-02-26 20:01:53 +01:00
Martchus 3e0fc09869 Allow to keep connection/launcher config as-is in wizard 2023-02-11 18:28:59 +01:00
Martchus 704f98e2b1 Fix race condition in wizard tests
The first test really needs to wait until Syncthing is listening. It is not
strictly required for testing the wizard's behavior. However, the next test
for connecting to a running Syncthing instance relies on Syncthing being
ready and listening.
2023-01-30 16:28:53 +01:00
Martchus 000b453790 Add further checks to wizard tests to also check options are hidden correctly 2023-01-30 15:19:44 +01:00
Martchus e67f40ca18 Enable verbose logging for tests and dump Syncthing config at the end
This is not very verbose but hopefully it'll help debugging test failures
more easily.
2023-01-30 15:19:08 +01:00
Martchus 4d56e1775e Remove test check for timeout again; we might run into it without systemd 2023-01-12 23:45:55 +01:00
Martchus f04c482538 Allow overriding timeout of wizard's setup detection and log during test 2023-01-11 19:43:46 +01:00
Martchus c81bb178a7 Check whether setup detection has not timed out in wizard tests 2023-01-11 19:21:58 +01:00
Martchus 9fe89aa82f Disconnect lambda in wizard test 2023-01-11 19:18:37 +01:00
Martchus 4f29c2daba Add debugging output in wizard test 2022-12-17 20:39:03 +01:00
Martchus e5ffffcaec Avoid messing with user config when running wizard test 2022-11-08 20:35:52 +01:00
Martchus 8f4961d1b9 Set Syncthing's home dir via CLI arg in wizard tests instead of relying on env variable 2022-11-05 14:08:06 +01:00
Martchus 10ddc79382 Move code for configuring setup detection in wizard tests into separate function 2022-11-05 13:59:59 +01:00
Martchus 521567f235 Log Syncthing's output during the wizard test for better debugging 2022-11-03 21:36:02 +01:00
Martchus 0ab21657c4 Mock locating config file for wizard tests to be independent of Qt's behavior
Maybe overriding `HOME` is not sufficient for faking a different home dir
to be picked up by `QStandardPaths`. So this change makes
`LIB_SYNCTHING_CONNECTOR_SYNCTHING_CONFIG_DIR` a hard override and uses it
in tests to fake a different path independently from the behavior of
`QStandardPaths`.
2022-11-03 21:35:03 +01:00
Martchus 0ca1fd1638 Don't make altering config dependend on present port
To workaround the same problem mentioned in the previous commit.
2022-11-03 00:19:18 +01:00
Martchus ad81c29a1d Remove check for Syncthing's port as it doesn't work when 8384 is already used 2022-11-02 23:55:45 +01:00
Martchus 992e754dd7 Enable wizard without WIP flag
The wizard likely still needs improvement but it is time to get more
feedback.
2022-10-27 19:23:56 +02:00
Martchus a3e5825217 Improve wizard tests
* Allow setting Syncthing path and port like it is possible with other
  tests
* Test configuring currently running instance
* Avoid race condition; one must subscribe to `settingsChanged` before
  applying changes
2022-10-16 18:10:14 +02:00
Martchus b6df8be85a Extend wizard tests to actualy apply launcher settings 2022-10-16 16:10:50 +02:00
Martchus 9f92e340b9 Add basic tests for wizard 2022-10-16 15:08:29 +02:00