b14934547a
Apparently this (undocumented) TESTDATA feature creates resource files,
but lets you use wildcards as well, which is very handy.
The reason I didn't know/realize this when adapting the tests to use a
".qrc"-file* was because some of the test-cases were using relative
paths instead of the 'testDataDir' variable.
This commit fixes the remaining uses of relative paths, removes a
usage of QDir::setCurrent, and adapts QSslSocket to use TESTDATA.
* in now-reverted commit e1600c1a73
Change-Id: Iee6d88f1e0810eeaadac90e7d44bc6db84bfeabf
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
14 lines
229 B
Prolog
14 lines
229 B
Prolog
CONFIG += testcase
|
|
|
|
SOURCES += tst_qsslkey.cpp
|
|
win32:LIBS += -lws2_32
|
|
QT = core network testlib
|
|
qtConfig(private_tests) {
|
|
QT += core-private network-private
|
|
}
|
|
|
|
TARGET = tst_qsslkey
|
|
|
|
TESTDATA += keys/* \
|
|
rsa-*.pem
|