aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fuzzy-test/fuzzytester.cpp
Commit message (Collapse)AuthorAgeFilesLines
* qt6: fix -Wformat warningsIvan Komissarov2021-02-161-2/+2
| | | | | Change-Id: Ia4107e6afdd94df06b4957317881768f4259c9d2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix Qt 5.15 deprecation warningsChristian Kandeler2020-06-161-1/+6
| | | | | Change-Id: I1d6968de823c43e42ca53eb68972ba5e69dc29ed Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Fix compiler warnings on macOSIvan Komissarov2019-11-201-1/+2
| | | | | | Change-Id: I865357bf74bdaf88eabae5681c70a6e5032e274d Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Use QStringLiteral more where it is possibleDenis Shienkov2019-02-251-12/+12
| | | | | | Change-Id: I7419cc3fbc1e8776de3943852dcedab4c95d1c32 Reviewed-by: Anton Kudryavtsev <antkudr@mail.ru> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Replace more loops with range-forJake Petroules2017-11-271-2/+2
| | | | | | | | ...or raw iterators for reverse iterations. Change-Id: I62a110ceeefaf70aaa41f6fb09d811f0eac05657 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Replace 'foreach' macro with range-based 'for'Denis Shienkov2017-11-241-2/+3
| | | | | Change-Id: I34479bc9673d0202363aeba5c7919efc8f0d7287 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Use nullptr to initialize the pointersDenis Shienkov2017-11-201-1/+1
| | | | | | Change-Id: I59d743f585410cb5c00d36a7b6f9a3e9d696d19e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* STL compatibility: use size() instead of count()Jake Petroules2017-11-151-3/+3
| | | | | | | This is a simple find and replace with manual sanity check. Change-Id: Ia733befe7885dc3c643d5c84e151312bfd86a3c6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Replace QQueue with std::queueJake Petroules2017-05-101-6/+7
| | | | | Change-Id: I97025241845a40128f94046d2715b166ddda392c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Change style of #includes of Qt headersJake Petroules2017-01-041-5/+5
| | | | | | | | | | | | | | | | By using q<lowercase>.h headers, we become more bootstrap-friendly, as no full syncqt is required any more. In the same go, prefix all includes with the module name. This helps grep-based analysis of which parts of Qt are used and where. It's also consistent with Qt's public headers (where syncqt enforces the style). Testdata and examples are excluded from the change, as they are not relevant for bootstrapping. Change-Id: I9539b1d795e87fca6e5fc6c91acbb775b79208d9 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Do not use fromLocal8Bit() for string literalsKai Koehne2016-11-081-8/+8
| | | | | | | | | | The current locale encoding does have nothing to do with string literals. Use fromLatin1(), which tends to be the fastest for ASCII. Change-Id: I9f1ff603f26812a63e5b23a413ba240c47d5ac23 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Update license headersIikka Eklund2016-08-291-16/+14
| | | | | | | | | | Patch-set 2 includes *.cpp *.c Every source file needs to have up-to-date license headers in order to pass ci. Change-Id: Ie6e493097af6f7dd6a8adff170eb856f496e689e Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Replace 'the Qt build suite' with 'Qbs' in copyright notices.Jake Petroules2016-06-061-1/+1
| | | | | | Change-Id: I885d94bb14b325dc36767a840ebdb0be1fb59dd2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* fuzzy tester: Cache information about build results.Christian Kandeler2015-05-071-7/+53
| | | | | | | | | | | | | We remember the information whether a clean build succeeded. This enables us to skip potentially expensive verification builds as well as finding a usable start commit. Note: This can lead to false positives or negatives if qbs or the build environment have changed in a way that leads to a formerly succeeding build failing or vice versa; however, this should be rare and easily spottable. Change-Id: I690f7a01fc1174fa50214775b0faa3b550168963 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* fuzzy tester: Add option to log debugging information.Christian Kandeler2015-05-061-13/+55
| | | | | | | | If a problem is not reproducible, the recorded debugging output can help to find out how we got into the problematic state. Change-Id: Ib067069dcb47038c1236649ddcca060c5c59a90e Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* remove Qt4 work-aroundsJoerg Bornemann2015-03-191-1/+1
| | | | | | | QStringList::join supports QLatin1Char arguments in Qt5. Change-Id: Ic840473f0cb54c8c2a781bec3356c3c3c8e113af Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* fuzzy-tester: Add ability to forward job count to qbs.Christian Kandeler2015-02-171-2/+7
| | | | | Change-Id: I45f275b448bd5660488faeed524c16085d2fa303 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* fuzzy tester: Allow to run for a given time span.Christian Kandeler2015-02-171-4/+19
| | | | | | | This is helpful e.g. for letting the tool run overnight. Change-Id: I03fc9942dff35b6f9c4f966ab6795fede49f0ee6 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Update LicenseEike Ziller2015-01-261-6/+6
| | | | | Change-Id: I092fca9f950de1ba38826c33b155f86feae2770b Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* complete license header updateJoerg Bornemann2014-10-161-7/+8
| | | | | Change-Id: I2c7ea3242e5ce244e8feee01c0f8a0b0651fa0d4 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Fuzzy tester: Print error message also for clean build failures.Christian Kandeler2014-04-221-5/+7
| | | | | | | This will help us find false positives (e.g. "disk full"). Change-Id: I5db9d333809f7067dc5dff81544e9e5f0206ee8c Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Fuzzy test: Use "rev-parse" instead of "describe".Christian Kandeler2014-02-281-1/+1
| | | | | | | This is what we really want. Change-Id: I3a95364390d788e3c3c2a3ceb3603b78ffa2f14c Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Make fuzzy test more thorough.Christian Kandeler2014-02-281-10/+28
| | | | | | | | "Successful" incremental builds can also be an error, if a clean build fails for the same project. Change-Id: I9f52d840fbda53a906c039e1ee0db2c656db6f8e Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Improvements to fuzzy test.Christian Kandeler2014-02-271-1/+9
| | | | | | | | | - When checking out a commit, also update the submodules. - Check for non-zero exit codes from git. - Print information when a faulty commit was detected. Change-Id: I8171a81899f97fbdaf76ffd49af42a2a46e1a62a Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Fuzzy test: Do "resolve" and "build" separately for incremental builds.Christian Kandeler2014-02-211-5/+11
| | | | | | | This should increase the likelihood of errors. Change-Id: I9a7b0fded12db05bc55e2f557d220a2614b73d62 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Fuzzy test: More verbose output, wait longer for git.Christian Kandeler2014-02-171-1/+5
| | | | | Change-Id: I19baf426bdf81b80d9a5f52adaf7b815d242c65a Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Introduce tool for fuzzy testing.Christian Kandeler2014-02-111-0/+155
Incremental builds are the likeliest source of problems, as well as the one that is the hardest to reproduce. This new tool turns a given project into a quasi-autotest by checking out random commits and doing incremental builds on them. In case of a build error that is not reproducible with a clean build, it aborts and reports the offending sequence of commits. Any qbs project that comes in a git repository is supported. Change-Id: I9f6f9172ce03140341ed25859092a8ed32d4a17d Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>