aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcachegen
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlcachegen')
-rw-r--r--tests/auto/qml/qmlcachegen/CMakeLists.txt16
-rw-r--r--tests/auto/qml/qmlcachegen/data/SkipQmlCacheGen.qml2
-rw-r--r--tests/auto/qml/qmlcachegen/data/skip.qrc2
3 files changed, 19 insertions, 1 deletions
diff --git a/tests/auto/qml/qmlcachegen/CMakeLists.txt b/tests/auto/qml/qmlcachegen/CMakeLists.txt
index e20f276cc1..0571d2d3e1 100644
--- a/tests/auto/qml/qmlcachegen/CMakeLists.txt
+++ b/tests/auto/qml/qmlcachegen/CMakeLists.txt
@@ -71,6 +71,22 @@ qt_add_resource(tst_qmlcachegen "retain"
FILES
${retain_resource_files}
)
+set_source_files_properties("data/SkipQmlCacheGen.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "Skip.qml"
+ QT_SKIP_QUICKCOMPILER 1
+)
+set(skip_resource_files
+ "SkipQmlCacheGen.qml"
+)
+
+qt_add_resource(tst_qmlcachegen "skip"
+ PREFIX
+ "/not/"
+ BASE
+ "data"
+ FILES
+ ${skip_resource_files}
+)
set(qmake_immediate_resource_files
"data/Enums.qml"
"data/componentInItem.qml"
diff --git a/tests/auto/qml/qmlcachegen/data/SkipQmlCacheGen.qml b/tests/auto/qml/qmlcachegen/data/SkipQmlCacheGen.qml
new file mode 100644
index 0000000000..0e69012662
--- /dev/null
+++ b/tests/auto/qml/qmlcachegen/data/SkipQmlCacheGen.qml
@@ -0,0 +1,2 @@
+import QtQml 2.0
+QtObject {}
diff --git a/tests/auto/qml/qmlcachegen/data/skip.qrc b/tests/auto/qml/qmlcachegen/data/skip.qrc
index 391e4f7508..1689236b01 100644
--- a/tests/auto/qml/qmlcachegen/data/skip.qrc
+++ b/tests/auto/qml/qmlcachegen/data/skip.qrc
@@ -1,5 +1,5 @@
<RCC>
<qresource prefix="/not/">
- <file alias="Skip.qml">Retain.qml</file>
+ <file alias="Skip.qml">SkipQmlCacheGen.qml</file>
</qresource>
</RCC>