Android: Pass tst_QFactoryLoader
Similar to the changes made for tst_QLibrary:
0ac09c40f2
but even less intrusive.
Change-Id: I4bc0ba385e639f07f9b39cf8ba9542c27be8a3ff
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
parent
e75e4b39b7
commit
6501c04250
|
|
@ -20,3 +20,11 @@ win32 {
|
|||
!qtConfig(library) {
|
||||
LIBS += -L ../bin/ -lplugin1 -lplugin2
|
||||
}
|
||||
|
||||
android {
|
||||
libs.prefix = android_test_data
|
||||
libs.base = $$OUT_PWD/..
|
||||
libs.files += $$OUT_PWD/../bin
|
||||
|
||||
RESOURCES += libs
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,11 @@ Q_IMPORT_PLUGIN(Plugin2)
|
|||
class tst_QFactoryLoader : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
#ifdef Q_OS_ANDROID
|
||||
QSharedPointer<QTemporaryDir> directory;
|
||||
#endif
|
||||
|
||||
public slots:
|
||||
void initTestCase();
|
||||
|
||||
|
|
@ -53,6 +58,12 @@ static const char binFolderC[] = "bin";
|
|||
|
||||
void tst_QFactoryLoader::initTestCase()
|
||||
{
|
||||
#ifdef Q_OS_ANDROID
|
||||
directory = QEXTRACTTESTDATA("android_test_data");
|
||||
QVERIFY(directory);
|
||||
QVERIFY(directory->isValid());
|
||||
QVERIFY2(QDir::setCurrent(directory->path()), qPrintable("Could not chdir to " + directory->path()));
|
||||
#endif
|
||||
const QString binFolder = QFINDTESTDATA(binFolderC);
|
||||
QVERIFY2(!binFolder.isEmpty(), "Unable to locate 'bin' folder");
|
||||
#if QT_CONFIG(library)
|
||||
|
|
|
|||
Loading…
Reference in New Issue