diff --git a/src/plasma/autotests/pluginloadertest.cpp b/src/plasma/autotests/pluginloadertest.cpp index 23d45bd83..b224ff8c7 100644 --- a/src/plasma/autotests/pluginloadertest.cpp +++ b/src/plasma/autotests/pluginloadertest.cpp @@ -33,7 +33,7 @@ QTEST_MAIN(PluginTest) // Switch to true in order to let tests pass, this test usually will only // work with plugins installed, but there aren't any in plasma-framework -bool buildonly = true; +bool buildonly = false; void PluginTest::listEngines() { @@ -67,6 +67,13 @@ void PluginTest::listContainmentsOfType() } +void PluginTest::loadDataEngine() +{ + Plasma::DataEngine *engine = Plasma::PluginLoader::self()->loadDataEngine("time"); + qDebug() << "ENgine loaded successfully" << engine->pluginInfo().name(); + QVERIFY(engine != 0 || buildonly); + +} #include "moc_pluginloadertest.cpp" diff --git a/src/plasma/autotests/pluginloadertest.h b/src/plasma/autotests/pluginloadertest.h index af6d3cbd0..88a6c03ff 100644 --- a/src/plasma/autotests/pluginloadertest.h +++ b/src/plasma/autotests/pluginloadertest.h @@ -34,6 +34,8 @@ class PluginTest : public QObject void listContainmentActions(); void listContainmentsOfType(); + void loadDataEngine(); + private: };