aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles/qquickwander/tst_qquickwander.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-08-06 12:27:35 +0200
committerMitch Curtis <mitch.curtis@qt.io>2021-09-14 12:13:57 +0200
commit5ae7066e84e45721ce58e9d16e3c4da72aa51692 (patch)
treed0d710678c679477b0413744825b3c9ff0060569 /tests/auto/particles/qquickwander/tst_qquickwander.cpp
parentb89322772234047849c4d44b592e1a555029bc7e (diff)
Consolidate test helpers into private libraries
Previously each test would include and build sources from the shared folder. Now we make those sources a library, build it once, then have each test link to it instead. We also take the opportunity to move some helpers that qtquickcontrols2 had added into the quicktestutils library where it makes sense, and for the helpers that don't make sense to be there, move them into quickcontrolstestutils. We add the libraries to src/ so that they are internal modules built as part of Qt, rather than tests. That way we can use them in a standalone test outside of qtdeclarative. Task-number: QTBUG-95621 Change-Id: I0a2ab3976fdbff2e4414df7bdc0808f16453b80a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit e310dadef779b28845b41fb091634cd001cda9de)
Diffstat (limited to 'tests/auto/particles/qquickwander/tst_qquickwander.cpp')
-rw-r--r--tests/auto/particles/qquickwander/tst_qquickwander.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/particles/qquickwander/tst_qquickwander.cpp b/tests/auto/particles/qquickwander/tst_qquickwander.cpp
index 8df00184b4..ec45461501 100644
--- a/tests/auto/particles/qquickwander/tst_qquickwander.cpp
+++ b/tests/auto/particles/qquickwander/tst_qquickwander.cpp
@@ -30,14 +30,13 @@
#include "../shared/particlestestsshared.h"
#include <private/qquickparticlesystem_p.h>
#include <private/qabstractanimation_p.h>
-
-#include "../../shared/util.h"
+#include <QtQuickTestUtils/private/qmlutils_p.h>
class tst_qquickwander : public QQmlDataTest
{
Q_OBJECT
public:
- tst_qquickwander() {}
+ tst_qquickwander() : QQmlDataTest(QT_QMLTEST_DATADIR) {}
private slots:
void initTestCase() override;