summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Change all QString("foo") constructions to use QStringLiteralUlf Hermann2021-07-016-22/+33
| | | | | | | | You should not construct QStrings directly from C string literals. Change-Id: I4185376ab62d19c26864afe656e4d7236d20d44c Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* CMake: Disable usage of CMake API compatibility wrappersJoerg Bornemann2021-05-258-21/+21
| | | | | | | | | | Setting the QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS variable in the project ensures we ported away from old API calls. Task-number: QTBUG-86815 Change-Id: I58d7107f556e2f06ecf5b47fab65ccec7d929b6d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Remove qmake project filesJoerg Bornemann2021-05-0315-268/+0
| | | | | | | Task-number: QTBUG-88742 Change-Id: I6ff996f29cb57d08983920080e2c0dee5caee3a5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* open62541: Use the async API for most service callsJannis Voelker2021-02-021-2/+11
| | | | | | | | | | | | | | | | - Read / Write - Browse - TranslateBrowsePathsToNodeIDs - Call - AddNodes / DeleteNodes - AddReferences / DeleteReferences This fixes the disconnect of the open62541 backend when a service call mentioned in the list above takes longer than the default timeout of 5 seconds. Change-Id: Ib991b8bb90651969a138fd70523aaac960d7715f Task-number: QTBUG-86360 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Fix race condition in declarative OpcUaNodeJannis Voelker2021-02-011-0/+5
| | | | | | | | This change fixes a race condition where an update from the old node was signalled after the cache had been invalidated. Change-Id: I6c8a3e092b10b4cd08917cdfeff1e7e01f0028be Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Run open62541-testserver without Qt event loopJannis Voelker2021-02-014-38/+25
| | | | | | | | This makes the server more responsive and increases the time it can spend waiting for select() calls. Change-Id: Ib6005a1e3f1b075fc87299ca700a235234ed164f Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Update autogenerated license list in documentationMartin Klos2021-01-271-1/+1
| | | | | Change-Id: I2b166fdcda856882b26ee50a94011bcbeb5f0ac0 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Fix open62541 specific flags for the arm64 buildJannis Voelker2021-01-271-1/+1
| | | | | | | | -Wno-format is removed for open62541.c, but -Wformat-security is still present. This trips the c compiler for the arm64 platform. Change-Id: I1128d053faf7009699a2fe30d3f13dfc8ada8fe8 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Refactor deprecated QVariant usage in testsMartin Klos2021-01-071-54/+54
| | | | | Change-Id: Ia23a896c1eaecb2fdf9ca35732fd2af21e086d9c Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Add the /permissive flag when building open62541 with MSVCJannis Voelker2020-11-201-1/+1
| | | | | | | | Also, need to turn of some values when compiling 3rd party dependency. Change-Id: I10a1edad14e40904c2d467406f153e3fc34580a4 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Fix build against latest devMaurice Kalinowski2020-11-061-2/+10
| | | | | | | | | | | | | Includes need to be updated for example. Furthermore, after latest update to MSVC2019, compilation tries to expand to _Static_assert where macro expansion fails. On Linux, the build system switches to strict C99, which is not available on MSVC. Instead, compile Open62541 as C++. Fixes: QTBUG-88194 Change-Id: Id0b1ceceeaab90d380e8c1dc78feca01231c096d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Port the open62541 plugin to OpenSSLJannis Voelker2020-09-088-6/+22
| | | | | | | | | | | | | | | Open62541 v1.1 has been extended with an OpenSSL based security plugin. This change removes the mbedTLS dependency for the CMake build of the open62541 plugin and uses FindWrapOpenSSL.cmake to detect security support. The bundled open62541 amalgamation build contains the changes from https://github.com/open62541/open62541/pull/3876 [ChangeLog][open62541 plugin] Security support now uses OpenSSL instead of mbedTLS Change-Id: I29a15c08a67593219a6c637116f84d27c0702db5 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Update dependenciesJannis Voelker2020-08-312-14/+14
| | | | | | | | | | | QList now has the functionality of QVector and QVector is an alias for QList. The behavior of QCOMPARE has changed when comparing QVariant with literal values Change-Id: I50ba48666037c56a78828ef1e8bc3c411d776d05 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Use QList instead of QVector in qtopcuaSona Kurazyan2020-08-318-60/+60
| | | | | | Task-number: QTBUG-84469 Change-Id: I18303d5f04b9820885412c6447541b7db0ebcaeb Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Fix auto.pro and regenerate CMake filesJannis Voelker2020-08-244-4/+6
| | | | | Change-Id: I10c894f6c559f004ce219a43f283c5881e7987b8 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Add event monitoring auto testJannis Voelker2020-08-248-305/+217
| | | | | | | | | | Open62541 v1.1 now allows to create an amalgamation build with server-side event support without building the entire namespace 0. The manual test is removed. Change-Id: I8e21f1100846e822d3812b0b5aeffc6e13b45387 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Port to open62541 v1.1Jannis Voelker2020-08-245-17/+8
| | | | | | | | | | - open62541 now generates more types, so the value converter had to be updated - The open62541 client now has automatic reconnect and the state callback has changed - The background connectivity check doesn't trigger the state callback, the inactivity callback is required - There is a new function for connecting with username and password Change-Id: I8e4b6200f6ae7da6267445036ff8c4f90bd53b15 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Use QString::fromUtf8() for node id constructionJannis Voelker2020-08-192-0/+43
| | | | | | | | | | This change also adds an unit tests which browses a node with special characters in the node id and uses the returned child node id for a subsequent read operation. Change-Id: I514bb4f07c75a75143e4c379233457aa4ca688b1 Pick-to: 5.15 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* cmake: Fix combination of uacpp and building testsJannis Voelker2020-08-171-1/+1
| | | | | Change-Id: Iaa820793d3b32f6b3e8d37aa137bd1b7de2d8cc3 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* CMake: Fix CMake build for open62541Jannis Voelker2020-08-073-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | Fix -Wno flags to be assigned to the correct property as a list of values. Remove unnecessary Q_DECLARE_METATYPE because the type is already registered automatically somewhere. Fix standalone example using private API and not having the C language enabled. Remove optimization flags for open62541.c like the qmake project does, to circumvent some miscompilation on MSVC which makes the test server not start, and thus hangs CI integrations. We do this for the test and example, but not the plugin, just to be safe for now. It's done by a public OpcUA function called qt_opcua_disable_optimizations_in_current_dir. Regenerate some projects that used old APIs. Task-number: QTBUG-85939 Change-Id: I2aea0e64371e99da3e2330f477c754728a8a5dd5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
* CMake: Fix open62541-testserver for macOSJannis Voelker2020-06-051-1/+5
| | | | | Change-Id: Ib4a2cd2cd6c3656add7b519f55df3b2eae78bf3f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Update CMakeLists.txt with changes from .pro filesJannis Voelker2020-06-056-1/+153
| | | | | | Change-Id: I44964fc900b9748fdde074de9c53ddf5736257c9 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* CMake: Add specific path for the test serverJannis Voelker2020-06-0510-5/+34
| | | | | | | | The CMake build does not create the debug / release directories and the test applications can't find open62541-testserver. Change-Id: I63cb38ada6c1ce22773d5fb3fc741dbd24ec196c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Fix windows specific conditions for CMakeJannis Voelker2020-06-051-4/+4
| | | | | Change-Id: I9fc14c1a93d255bd0e865dafe80ad16941568efd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Fix test buildMaurice Kalinowski2020-06-041-2/+2
| | | | | | | clientSetupInCpp requires qmltest Change-Id: I6fef1c4c62c3530accfa37951518fdf86ddbc232 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Add CMake support for building Qt OPC UAJannis Voelker2020-06-0416-2/+431
| | | | | Change-Id: I1cf9c7f4914a665d7a057950eb6528929034e039 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Add configuration switch for GDS supportJannis Voelker2020-06-021-1/+3
| | | | | | | | GDS support is enabled by default and can be disabled via -no-feature-gds. Change-Id: I40b12433689a47674a27977f7acbb978927302cb Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Merge remote-tracking branch 'origin/5.15' into devQt Forward Merge Bot2020-04-211-0/+0
|\ | | | | | | Change-Id: I24f6e65f4b0390aea6a0b9709e562ac7735d2d44
| * Update certificate and private key for the opcuaviewer exampleJannis Voelker2020-04-171-0/+0
| | | | | | | | | | | | | | The old certificate was expired, the new certificate is valid until april 2030. Change-Id: I118d669b904f79a4632339f0ae260f182ea257d4 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* | Merge remote-tracking branch 'origin/5.15' into devQt Forward Merge Bot2020-04-145-5/+5
|\| | | | | | | Change-Id: I0128ad6bd83b1d0d1ff8218924127e5e4db1b136
| * Revert "Prospective build fix for MinGW"Maurice Kalinowski2020-03-165-5/+5
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 58a4d5b54968bdcd042113a1a5200db7e6f7547b. The design changes for MinGW caused some regressions, which needed to be reverted. The same applies for this patch. Task-number: QTBUG-82868 Change-Id: I11ede47795e019037927fe5a0966e791ba5fe82f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | Merge remote-tracking branch 'origin/5.15' into devQt Forward Merge Bot2019-12-107-3/+625
|\| | | | | | | Change-Id: Iaeed3b0e4f701994c2d2876886e148b4f732230c
| * GDS client supportRainer Keller2019-11-153-0/+340
| | | | | | | | | | Change-Id: Ic71663684a51f15835bc1ea541a1ea751bf02099 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
| * Do not build manual testsRainer Keller2019-11-141-2/+1
| | | | | | | | | | | | | | | | If they are built together with the autotests they are also going to be executed, which is not what manual tests are designed for. Change-Id: I2c0355627fe6b900983b54a192576f014023f33d Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
| * Add support for generating X509 Certificate Signing RequestsRainer Keller2019-11-123-1/+284
| | | | | | | | | | Change-Id: I6e69d38ff9285a3b7f84b7470fdd7a80505c4f2b Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* | Merge remote-tracking branch 'origin/5.15' into devQt Forward Merge Bot2019-11-026-9/+38
|\| | | | | | | Change-Id: I35d7d61d3759a1a03036cf4a9106e023b48ade0a
| * Fix warning about unused variableRainer Keller2019-10-101-0/+2
| | | | | | | | | | Change-Id: Ifd46da5cbf993cae7f66389a1222c5ddb1a604f7 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
| * Update open62541 to the v1.0 releaseJannis Voelker2019-10-101-3/+2
| | | | | | | | | | Change-Id: I37626bb2ef698e4e3ecda7841ae9b22db39a38bb Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
| * Merge remote-tracking branch 'origin/5.13' into 5.14Qt Forward Merge Bot2019-10-051-0/+29
| |\ | | | | | | | | | Change-Id: I92083b35010c0172ec3265cf4f788a5ba25cf5cb
| | * Fix GUID binary encoder endiannessRainer Keller2019-10-021-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | The OPC-UA standard defines in part 6 chapter 5.2.2.6 that integer parts of a GUID have to be transferred in little endian order. Change-Id: I2082ecef414572d87cd5586fc4ea9f5f8887a4aa Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
| * | Remove unused includesv5.14.0-beta1Rainer Keller2019-10-021-1/+0
| | | | | | | | | | | | | | | Change-Id: Icff5207423aab9ab264ec281484b941da62b7969 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
| * | Prospective build fix for MinGWv5.14.0-alpha1Simon Hausmann2019-09-235-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After commit 4d289edb14aeb4976218cc306bfc514e37521b82 in qtbase, debug-and-release is not unconditional on Windows anymore -- it's off for MinGW. Therefore path tricks to get out of a debug/ or release/ folder need to be guarded with the feature. Task-number: QTBUG-78704 Change-Id: Idd1e9c1eae4696cd0322d4d991e92b7f1309fec3 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* | | The Q_UNUSED macro is already inserting a ';'Frank Meerkötter2019-10-081-20/+20
|/ / | | | | | | | | | | | | Shuts up QtCreator complaining about statements without effect. Change-Id: Ie2d410bf90acbffb3149973f24eeb13aae42316b Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* | Merge remote-tracking branch 'origin/5.13' into 5.14Liang Qi2019-08-263-7/+21
|\| | | | | | | | | | | | | | | Conflicts: src/3rdparty/open62541.pri tests/auto/security/tst_security.cpp Change-Id: I47a14da350c938ddce57327aadfc723f189c6227
| * tests: Always build security testRainer Keller2019-08-203-5/+22
| | | | | | | | | | | | | | but check instead if the actual endpoint policy is supported by the backend. Change-Id: Ic1dbcd83b936beccb0378505744d4e1e3b292d22 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
* | Add secure connect to the open62541 plugin (v1.0)Jannis Voelker2019-08-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds basic support for secure connections to the open62541 plugin. Supported security policies: - Basic128Rsa15 - Basic256 - Basic256Sha256 Unsupported: - Private keys with password - Manual override in case of certificate verification errors - X509 identity tokens Change-Id: Iae5cdde61e79d091e340c3128a30dca6b119df9e Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* | Fix build and tests with the current open62541 v1.0Jannis Voelker2019-08-1714-228/+106
|/ | | | | | | | This patch allows building the open62541 plugin with the current open62541 v1.0 (v1.0-rc4). Change-Id: Ibb9295bfc4230dc5fb9f515a810c0b3dbbac2527 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Fix build on macOSRainer Keller2019-08-123-2/+2
| | | | | Change-Id: Ia8d6216e455f8174fcf6d9a59b69f3bb3391ab3e Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* tests: Elaborate QML test nameRainer Keller2019-08-1210-28/+28
| | | | | | | This makes it easier to locate a failed test Change-Id: I43f78647ae07eb5f08dcc4966b125afa751565ef Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
* tests: Fix some tests failing on windowsRainer Keller2019-08-121-3/+4
| | | | | | | | | The checks for testserver try to establish a connection. Meanwhile the tests already start and are missing global properties. Setting those was moved to front. Change-Id: I8703ee7341f7cfb4bf1edc9c952a1692ffc69c07 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>