Commit Graph

28 Commits

Author SHA1 Message Date
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 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 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 407514289a Fix typo infos -> info 2018-10-18 23:34:02 +02:00
Martchus 545465b52a testutils: Check first for failure 2018-10-18 23:25:24 +02:00
Martchus c249414411 Improve SyncthingTestInstance
* Show Syncthing's output interleaved with the test output
  by default
* Show Syncthing start parameter
2018-10-14 22:48:52 +02:00
Martchus db6c8af414 Debug Syncthing crashes during testruns 2018-10-12 00:09:02 +02:00
Martchus 7611ad1c8e Propose use of SYNCTHING_TEST_TIMEOUT_FACTOR 2018-09-06 22:04:22 +02:00
Martchus 7e2eea8523 tests: Increase timeouts, use timeout factor everywhere 2018-08-05 15:20:21 +02:00
Martchus 72e1377c43 Add tests for syncthingctl 2018-05-01 01:16:20 +02:00
Martchus 754cd0c2e1 Allow printing current config 2018-04-01 20:21:51 +02:00
Martchus 914aac6e39 Make bash completion faster by requesting only config 2018-02-19 03:22:47 +01:00
Martchus 26c8af598e Flag the test for testhelper as manual test
So it is not executed on eg. `make check`.
2018-01-27 23:58:46 +01:00
Martchus 2f26543acf Add app to automatically setup basic env for manual testing 2018-01-27 16:47:10 +01:00
Martchus 13b5dbea18 Prevent including HelperMacros.h when using testhelper for CLI 2017-10-07 22:44:58 +02:00
Martchus a302bf8abf testhelper: Fix documentation 2017-09-30 18:51:50 +02:00
Martchus 30347f1845 Make testhelper usable for the CLI
TODO: Generalize wait... methods and move them to
qtutilities.
2017-09-30 18:46:27 +02:00
Martchus 69ffaeb1f3 Apply tidy after updating to clang-format 5.0.0
The behavior of clang-format slightly changed in Clang 5.0.0:
http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
2017-09-17 21:48:15 +02:00
Martchus 1ed4905139 tests: Allow specifying timeout factor
The timeout factor is read from environment
variable SYNCTHING_TEST_TIMEOUT_FACTOR
2017-07-14 16:23:32 +02:00
Martchus 2c3ad1d932 test helper: Fix including syncthingprocess.h 2017-07-11 22:57:35 +02:00
Martchus f95ad68a3a Link testhelper against connector, remove global includes 2017-07-11 22:53:45 +02:00
Martchus e4a382e4e8 Improve connector tests
Region coverage now by 74.4417%
2017-07-09 23:34:43 +02:00
Martchus da8f6f7353 Apply tidy 2017-07-02 22:08:30 +02:00
Martchus 55757b1e57 connector: Refactor and improve tests 2017-07-02 21:47:59 +02:00
Martchus b1d9df73d1 Apply clang-format 2017-05-04 22:48:45 +02:00
Martchus 732a5fdd8d Apply clang-format 2017-05-01 03:34:43 +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