Changeset View
Changeset View
Standalone View
Standalone View
autotests/extractortest.cpp
Show All 28 Lines | |||||
29 | #include <QDataStream> | 29 | #include <QDataStream> | ||
30 | #include <QDebug> | 30 | #include <QDebug> | ||
31 | #include <QDir> | 31 | #include <QDir> | ||
32 | 32 | | |||
33 | void ExtractorTest::test() | 33 | void ExtractorTest::test() | ||
34 | { | 34 | { | ||
35 | QString fileUrl = QFINDTESTDATA("samplefiles/test.mp3"); | 35 | QString fileUrl = QFINDTESTDATA("samplefiles/test.mp3"); | ||
36 | 36 | | |||
37 | QString exe = QStandardPaths::findExecutable(QLatin1String("baloo_filemetadata_temp_extractor")); | 37 | QString exe = QFINDTESTDATA("../src/baloo_filemetadata_temp_extractor"); | ||
38 | 38 | | |||
39 | QStringList args; | 39 | QStringList args; | ||
40 | args << fileUrl; | 40 | args << fileUrl; | ||
41 | 41 | | |||
42 | QProcess process; | 42 | QProcess process; | ||
43 | process.start(exe, args); | 43 | process.start(exe, args); | ||
44 | QVERIFY(process.waitForFinished(10000)); | 44 | QVERIFY(process.waitForFinished(10000)); | ||
45 | QCOMPARE(process.exitStatus(), QProcess::NormalExit); | 45 | QCOMPARE(process.exitStatus(), QProcess::NormalExit); | ||
Show All 17 Lines |