AutoTest: Add support for more Quick test options

Change-Id: I52ab537c1a5ca135e6e9ea8aa3033243fcfa04f5
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2018-06-14 08:58:44 +02:00
parent 8a3e171e7e
commit 1458ea5806

View File

@@ -97,8 +97,9 @@ QStringList filterInterfering(const QStringList &provided, QStringList *omitted,
// handle Quick options as well
static const QSet<QString> knownInterferingQuickOption = { "-qtquick1" };
static const QSet<QString> knownAllowedQuickOptionsWithParameter {
"-import", "-plugins", "-input"
"-import", "-plugins", "-input", "-translation"
};
static const QSet<QString> knownAllowedSingleQuickOptions = { "-opengl", "-widgets" };
QStringList allowed;
auto it = provided.cbegin();
@@ -126,6 +127,8 @@ QStringList filterInterfering(const QStringList &provided, QStringList *omitted,
++it;
QTC_ASSERT(it != end, return QStringList());
allowed.append(*it);
} else if (knownAllowedSingleQuickOptions.contains(currentOpt)) {
allowed.append(currentOpt);
} else if (knownInterferingQuickOption.contains(currentOpt)) {
if (omitted)
omitted->append(currentOpt);