private slots:
void initTestCase();
+#if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled
void qmlMinify_data();
void qmlMinify();
+#endif
private:
QString qmlminPath;
with a lower case letter.
*/
+#if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled
void tst_qmlmin::qmlMinify_data()
{
-#if defined(QTEST_CROSS_COMPILED)
- return;
-#endif
-
QTest::addColumn<QString>("file");
QString examples = QLatin1String(SRCDIR) + "/../../../../examples/";
foreach (const QString &file, files)
QTest::newRow(qPrintable(file)) << file;
}
+#endif
+#if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled
void tst_qmlmin::qmlMinify()
{
-#if defined(QTEST_CROSS_COMPILED)
- QSKIP("sources not available when cross compiled");
-#endif
QFETCH(QString, file);
QProcess qmlminify;
else
QCOMPARE(qmlminify.exitCode(), 0);
}
+#endif
QTEST_MAIN(tst_qmlmin)
private slots:
void initTestCase();
+#if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled
void qmlParser_data();
void qmlParser();
+#endif
private:
QStringList excludedDirs;
and ensures that the subnode's source locations are inside parent node's source locations
*/
+#if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled
void tst_qqmlparser::qmlParser_data()
{
-#if defined(QTEST_CROSS_COMPILED)
- return;
-#endif
-
QTest::addColumn<QString>("file");
QString examples = QLatin1String(SRCDIR) + "/../../../../examples/";
foreach (const QString &file, files)
QTest::newRow(qPrintable(file)) << file;
}
+#endif
+#if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled
void tst_qqmlparser::qmlParser()
{
-#if defined(QTEST_CROSS_COMPILED)
- QSKIP("sources not available when cross compiled");
-#endif
QFETCH(QString, file);
using namespace QQmlJS;
check::Check chk(&engine);
chk(parser.rootNode());
}
+#endif
QTEST_MAIN(tst_qqmlparser)