summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Change uses of toAscii to toLatin1v5.6.0-beta1Liang Qi2015-12-101-1/+1
| | | | | | | This ammends e19bbdf8. Change-Id: Idebb29cdbb6fb30ac446701ebc415a7944f48421 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
* Test suite: Streamline code in QPatternistSDK::DebugExpressionFactory.Friedemann Kleint2015-11-051-50/+32
| | | | | | | | | | | | | | Fix release mode compiler warnings: In member function 'virtual void QPatternistSDK::DebugExpressionFactory::processTemplateRule(const Ptr&, const Ptr&, const QXmlName&, QPatternist::ExpressionFactory::TemplateCompilationStage)': warning: 'title' may be used uninitialized in this function [-Wmaybe-uninitialized] In member function 'virtual void QPatternistSDK::DebugExpressionFactory::processNamedTemplate(const QXmlName&, const Ptr&, QPatternist::ExpressionFactory::TemplateCompilationStage)': warning: 'title' may be used uninitialized in this function [-Wmaybe-uninitialized] by rewriting the code to directly add to a QString. Change-Id: I23781b624e6b3fbc385d8b041a1923d49c291f51 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.5' into 5.6Liang Qi2015-10-284-1/+51
|\ | | | | | | Change-Id: I41beab20e4de378725e3e2efd929ddd83460d9d8
| * Can now specify which tests to skip with an environment variable5.5Jan Arve Saether2015-10-264-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | e.g. export XMLPATTERNSXQTS_TESTRANGE=42,49 will execute the tests from number 42 to number 49. The tests are numbered sequentially. This will allow us to not having to run through all the tests when testing for a specific testcase. Change-Id: I4c21158a4eada1b48eb809a887216a7160d73220 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
| * Skip tests that crashes.Jan Arve Saether2015-10-231-1/+28
| | | | | | | | | | | | Change-Id: I45ad981fa4d6d7302cf2e06429ea1134957034f3 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into 5.6Liang Qi2015-10-086-6/+19
|\ \ | |/ | | | | Change-Id: I9a379d34bf80344de9b6e9465e6f35fca7fd1a12
| * Add baseline file for literalsequence.xq autotest.Jan Arve Saether2015-10-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | d17eba9d34f412e592c3b049c6c14fd9ccada87b added literalsequence.xq, but forgot to add the baseline file. This probably passed in 5.5 because the test was run twice (because of flakyness): 1. The first pass it would fail (but generate the baseline). 2. The second pass it would succeed because the baseline was already there Change-Id: If40ee6c57e97cb4cffc959e0f6bb768e610a76d4 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
| * Update new Baseline.xmlJan Arve Saether2015-10-071-1/+1
| | | | | | | | | | | | | | | | | | Appararently, some new tests fail and other new tests started pass. I haven't digged into the reasons why, but the fact that the pass percentage is at 96%, this is better than not testing it at all. Change-Id: Id5e2710ebd3c17b65a2792245a073c676d116208 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
| * Compile fix for platforms without QProcess supportv5.5.15.5.1Pasi Petäjäjärvi2015-09-111-4/+4
| | | | | | | | | | Change-Id: Ied9eefcaff7c7a991cde483dc08c6905ba9ca421 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
| * Iterate Over the Items (Not the Operands) of a Literal SequenceDavid E. Narvaez2015-07-294-1/+9
| | | | | | | | | | | | | | | | | | | | The current code iterates over the (empty) list of operands of a Literal Sequence, ignoring any items in it, so Literal Sequences are always ignored in the ExpressionSequence. Task-number: QTBUG-35897 Change-Id: I60341ac21c8e3b77bf6d8dfeebdbafe010844406 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* | xmlpatterns test: Improve process handling.Friedemann Kleint2015-09-031-1/+13
| | | | | | | | | | | | | | | | Introduce a message when starting fails or timeouts occur and flip the order to check for timeouts first and then check the exit code. Change-Id: I293aa55888186f66c12cd86bcb8010802f521032 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | properly add testsuites submodulev5.6.0-alpha1Oswald Buddenhagen2015-08-132-1/+1
| | | | | | | | | | Change-Id: Iea043221b965bbbc05f9c98b8f58aa7870acadfe Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
* | Add qtxmlpatterns-testsuites as submodule and get XQTS from thereFrederik Gladhorn2015-08-071-2/+1
| | | | | | | | | | Change-Id: I9dda1a76e730dfe1790fe6771a6f9ccd63c5d13b Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* | xmlpatternsdiagnosticsts test: use correct baselineFrederik Gladhorn2015-08-012-2/+3
|/ | | | | | | | | At least on OS X, the test would use the baseline of xmlpatternsxqts since that's where tst_suitetest.h is. QFINDTESTDATA would then resolve Baseline.xml relative to that. Change-Id: I860d7e3143365b33901f721caed813d4d594f28d Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Prefixed all tokens with T_ to prevent collisions with macros.Erik Verbruggen2015-06-101-1/+1
| | | | | | | | Identifier names like "IN" and "AS" have a high probability of being defined by certain platforms as macros, esp. with Visual Studio. Change-Id: I1fbc0ae33f94387b83377181b6012683a418459a Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Skipped some tests that crashedv5.5.0-rc1v5.5.0-beta1v5.5.05.5.0Jan Arve Saether2015-04-171-0/+12
| | | | | | | | These tests crashed, and thus prevented us from getting the results from the ~19000 other test cases. Change-Id: I8fd2abcc68b545177f4baa912e9e0d5dbe931201 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Skip op-numeric-unary-minus-1 testcase because it crashes.Jan Arve Saether2015-04-151-0/+6
| | | | | | | | | It seems to require a larger refactoring in order to solve this, so we skip this for now in order for us to be able to run the remaining tests in CI. Change-Id: I2ae4860a92cdb7fb88ca89c4dd1f047bacbaaf9e Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Rename private header qdebug_p.h to qxmldebug_p.h.Friedemann Kleint2015-04-074-4/+4
| | | | | | | | | Avoid conflicts with the newly introduced qdebug_p.h of QtCore. Change-Id: I04b83e159900d9d36fa96ae5112eb4cdf75c0551 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Always summarize test results, even with unchanged baselineFrederik Gladhorn2015-03-251-0/+2
| | | | | | | | | | | | | | | | | | | | I currently have many failures (I assume through bad testsuite set up), they go by silently on the second run, instead now there will always be output: PASS : tst_XmlPatternsSchemaTS::runTestSuite() SUMMARY: Total: 39193 Failures: 39193 Passes: 0 Not tested: 0 Pass percentage(%): 0 Unexpected failures: 0 Unexpected passes: 0 Result was identical to the baseline, baseline was not updated. PASS : tst_XmlPatternsSchemaTS::checkTestSuiteResult() Change-Id: I4e11832ea711b8cb9feff088a09434122968d080 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Remove the old headersclean unit testThiago Macieira2015-03-252-4/+1
| | | | | | | We have configure -headersclean now Change-Id: Iaa084ece95cefd5264a34726d85d13ea7a65016d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* Remove macro DEBUG_CODE from Test SDK.Friedemann Kleint2015-03-181-11/+5
| | | | | | | | | It was used to disable code/variables referenced in Q_ASSERT_X. Since the macro is now expanded in release mode as well, this causes compilation errors. Change-Id: I5b90515c042f9d3e76be84cd5385eae081a037c8 Reviewed-by: Louai Al-Khanji <louai.al-khanji@theqtcompany.com>
* Merge "Merge remote-tracking branch 'origin/5.4' into 5.5" into refs/staging/5.5v5.5.0-alpha1Frederik Gladhorn2015-02-247-9048/+23155
|\
| * Merge remote-tracking branch 'origin/5.4' into 5.5Frederik Gladhorn2015-02-207-9048/+23155
| |\ | | | | | | | | | Change-Id: I1cac4b9b5fa2d07f5fc0b0336a90019844561ae0
| | * bic: Add/Replace 5.{0.1,2,3,4}.0 bic data for linux-gcc-amd64v5.4.25.4.2Sergio Ahumada2015-02-137-9048/+23155
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the ia32 data since there are no linux x86 machines in the CI system (which makes the data useless from an automated testing point of view) and most people use x64 these days anyway Change-Id: I70b1dbb239c9f4310908ede02822c6ca103ea291 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* | | Update copyright headersJani Heikkinen2015-02-17126-898/+890
|/ / | | | | | | | | | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I1dc468d4e08c2dfdc4643410220f18bc8ec450b9 Reviewed-by: Antti Kokko <antti.kokko@theqtcompany.com>
* | Fix broken QSourceLocation autotestKai Koehne2015-02-131-2/+2
|/ | | | | | | | The test relied on operator<<(QDebug, const QUrl &) adding unnecessary spaces. This got fixed in qtbase commit 868201155. Change-Id: I75f71a82f6426da396c1634cecce3b21e3ca8580 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Update license headers and add new license filesAntti Kokko2014-08-24125-2375/+1375
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: If9208b9c90bcea35bbfe6b9c10db7803e97767e0 Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* Make tests compile with the QExplicitlySharedDataPointer's static_castUlf Hermann2014-07-091-1/+1
| | | | | | | | We also need the static_casts there. Change-Id: I5e04109d2465e079909138152324820e931062cd Reviewed-by: Kevin Funk <kevin.funk@kdab.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Compile fix for platforms without process supportMaurice Kalinowski2014-07-072-1/+21
| | | | | Change-Id: Ie150bec62827b592d4b3f2df98a51862d3cc76ae Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
* Fix typov5.3.0-rc1v5.3.0release5.3.0Sergio Ahumada2014-04-011-1/+1
| | | | | Change-Id: I4754f1bc1f9fb3e099fc7c7135ca0a933d9b7475 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Fix some typosv5.3.0-beta1Sergio Ahumada2014-03-032-2/+2
| | | | | Change-Id: Ic387dac14f664fd01700142ca303d01d2fe09168 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Merge remote-tracking branch 'origin/stable' into devv5.3.0-alpha1Sergio Ahumada2014-02-112-3/+21
|\ | | | | | | Change-Id: I60405f79dbe590e2f598d57f80794364f415c566
| * test: Don't fail *all* tests if the network test server is not set upold/5.2Sergio Ahumada2014-02-112-3/+21
| | | | | | | | | | | | | | | | | | Since not all tests for tst_qxmlquery and tst_xmlpatterns depend on the network test server being set up, now we just fail those which really depend on it allowing the rest to be normally run. Change-Id: I0588cf986ffddea117cee680e07e1a8cc4d68436 Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
* | whitespace fixesOswald Buddenhagen2014-01-227-25/+25
|/ | | | | | | | remove trailing spaces & expand tabs Change-Id: Ic958087d8c50f3c51d767f5191e54c4079cc74a2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* make it possible to disable XML schema usagePeter Hartmann2013-11-151-4/+8
| | | | | | | | | | | | | | | | | | | | | | | Removing XML schema functionality reduces the size of libQt5XmlPatterns.so considerably: Linux desktop release mode: with XML schema: 4.3 MB without XML schema: 3.2 MB BlackBerry10 release mode: with XML schema: 2.6 MB without XML schema: 1.9 MB XML schema might not be used, especially on a mobile / embedded device, as opposed to the rest of xmlpatterns (e.g. XPath through QML XmlListModel). Task-number: QTBUG-28068 Change-Id: I5024a822179e7241e592f079efe3adef8f661c70 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Revert "Handle new QtTraceMsg type, fix warnings about unhandled enumeration ↵Kai Koehne2013-11-051-1/+2
| | | | | | | | | | value." This reverts commit bf49d9f0d41c3be802dbdd2c23dfe7c5fd86f4b0. QtTraceMsg was removed from QtCore for the moment, too. Change-Id: I1d6aaacf5e363f81272da4fbb0a4ff12337dd677 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Fix undefined behavior validating XSD substitution groupsMark Shroyer2013-10-024-0/+33
| | | | | | | | | | | | | | | | | | | | | A bug in XSD substitution group validation would result in an invalid cast of SchemaType::Ptr to XsdComplexType::Ptr, in which case evaluating complexType->prohibitedSubstitutions() exhibited undefined behavior. In practice this caused validation against XSD schemas containing substitution groups to fail on some machines, where ORing the checkSet mask against out of bounds memory could cause the function XsdSchemaHelper::substitutionGroupOkTransitive() to return a false negative. Minus the bug fix, the regression test added in this commit failed on (at least) Linux ARM when compiled with the Linaro toolchain 2013.01 g++ 4.7, with flags -marm -mcpu=cortex-a8 -O2. However, it did not fail on a Linux amd64 machine prior to the bug fix. Change-Id: Idd060a941a3bc0620f1fcc903375e43022bdcbdc Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Handle new QtTraceMsg type, fix warnings about unhandled enumeration value.Friedemann Kleint2013-09-261-2/+1
| | | | | Change-Id: Ia908aa03e0f6a0e4f92013ae84fc68ac73919d08 Reviewed-by: hjk <hjk121@nokiamail.com>
* Update QXmlQuery test result after default date format change.Jędrzej Nowacki2013-09-231-1/+1
| | | | | | | | | QTime is not showing milliseconds by default anymore, when converted to QString. Change-Id: Iba745919ee1f034aebc75628a96efad5546f03c1 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Merge branch 'stable' into devSergio Ahumada2013-08-051-2/+0
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I8472ccedaa829436aebf4424b64a3b7dd0adc173
| * test: Remove QSKIP from tst_xmlpatternsSergio Ahumada2013-07-261-2/+0
| | | | | | | | | | | | | | | | Tests are passing nowaways on OS X. Task-number: QTBUG-22556 Change-Id: I1c2c864c6a9d9c9195012291745750b0193f4d00 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-07-232-18/+18
|\ \ | |/ | | | | Change-Id: I746d5aa3e11e8c01c370db3786788270cdd7c685
| * Replace qt.nokia.com by www.qt-project.org in tests.Friedemann Kleint2013-07-152-18/+18
| | | | | | | | | | | | | | Task-number: QTBUG-32390 Change-Id: I8e3d0df9ff929490a288dca0a9da12751af6b851 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-07-112-0/+9048
|\ \ | |/ | | | | Change-Id: Ibc00a0629361eb26d2ad3b47e64620a2ad03717b
| * test: Add 5.0.0/5.1.0 bic data for linux-gcc-ia32Sergio Ahumada2013-07-102-0/+9048
| | | | | | | | | | | | | | | | The 5.0.0 data was missing from before, so taking the opportunity to add it now. Change-Id: I8d269fa735cfea9e50eeaf70c49c56aeb173b357 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* | Fix tst_QXmlQuery::evaluateToReceiver failure.Mitch Curtis2013-06-051-1/+1
|/ | | | | | | | | | This patch fixes a test failure introduced by 15da0a5af20fe6771bcb94ef8d46edbd5c8fb64c. Change the date format in allAtomics.ref file to include milliseconds. Change-Id: I8786e04976872da87cbc322d322c394cb0c62a67 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
* remove pointless INCLUDEPATHv5.1.0-beta1Oswald Buddenhagen2013-04-261-1/+0
| | | | | | | QT+=xmlpatterns-private in xmlpatterns.pri already handles that. Change-Id: Id276ff89cc3b315119ce23c654be24a9503e9001 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Remove old QtXmlPatterns.4.* dataSergio Ahumada2013-04-226-17789/+0
| | | | | Change-Id: I96304652faab35bdbb71bf814aab35be7dc68151 Reviewed-by: Janne Anttila <janne.anttila@digia.com>
* Fix exit crash in xmlpatternsvalidator.Friedemann Kleint2013-04-052-2/+32
| | | | | | | Clean up QNetworkAccessManager using qAddPostRoutine(). Change-Id: I6ee8b0bcccf09abf4e4b35e063f48f6d7a631bfe Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* XmlPatterns-Testsuite: Use GLOBAL_STATIC for network access manager.Friedemann Kleint2013-04-052-4/+4
| | | | | | | | Do not use global static variable, this causes warnings and hangs on Windows. Change-Id: Ic31c347b69ae7e97699a351834d34f7eda6695e2 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>