diff options
-rw-r--r-- | tests/auto/declarative/tst_opcua.cpp | 7 | ||||
-rw-r--r-- | tests/auto/qopcuaclient/tst_client.cpp | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/declarative/tst_opcua.cpp b/tests/auto/declarative/tst_opcua.cpp index a14b05d..2807a3f 100644 --- a/tests/auto/declarative/tst_opcua.cpp +++ b/tests/auto/declarative/tst_opcua.cpp @@ -63,6 +63,11 @@ public slots: if (qEnvironmentVariableIsEmpty("OPCUA_HOST") && qEnvironmentVariableIsEmpty("OPCUA_PORT")) { m_testServerPath = qApp->applicationDirPath() + +#if defined(Q_OS_MACOS) + + QLatin1String("/../../open62541-testserver/open62541-testserver.app/Contents/MacOS/open62541-testserver") +#else + #ifdef Q_OS_WIN + QLatin1String("/..") #endif @@ -70,6 +75,8 @@ public slots: #ifdef Q_OS_WIN + QLatin1String(".exe") #endif + +#endif ; qDebug() << "Server Path:" << m_testServerPath; if (!QFile::exists(m_testServerPath)) { diff --git a/tests/auto/qopcuaclient/tst_client.cpp b/tests/auto/qopcuaclient/tst_client.cpp index f12a96a..679ecc7 100644 --- a/tests/auto/qopcuaclient/tst_client.cpp +++ b/tests/auto/qopcuaclient/tst_client.cpp @@ -545,6 +545,11 @@ void Tst_QOpcUaClient::initTestCase() if (qEnvironmentVariableIsEmpty("OPCUA_HOST") && qEnvironmentVariableIsEmpty("OPCUA_PORT")) { m_testServerPath = qApp->applicationDirPath() + +#if defined(Q_OS_MACOS) + + QLatin1String("/../../open62541-testserver/open62541-testserver.app/Contents/MacOS/open62541-testserver") +#else + #ifdef Q_OS_WIN + QLatin1String("/..") #endif @@ -552,6 +557,8 @@ void Tst_QOpcUaClient::initTestCase() #ifdef Q_OS_WIN + QLatin1String(".exe") #endif + +#endif ; if (!QFile::exists(m_testServerPath)) { qDebug() << "Server Path:" << m_testServerPath; |