Test for loading a dataengine

This commit is contained in:
Sebastian Kügler 2013-09-12 02:29:33 +02:00
parent cd5be142ed
commit 2d46621818
2 changed files with 10 additions and 1 deletions

View File

@ -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"

View File

@ -34,6 +34,8 @@ class PluginTest : public QObject
void listContainmentActions();
void listContainmentsOfType();
void loadDataEngine();
private:
};