Make the examples test for QtDeclarative pass.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Fri, 5 Oct 2012 14:03:19 +0000 (16:03 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 31 Oct 2012 09:33:44 +0000 (10:33 +0100)
commit524394e37c594807ed874f4926bf13af990358d1
treeafa93f597e96218ca023b6a213bf6598c126135b
parente6b7178bc2e62a37b4737695bced1b46bced9215
Make the examples test for QtDeclarative pass.

- Fix check to indicate immediate errors, skip the loading
  state (using QTRY_VERIFY from shared/utils.h)
  and check for errors after loading again.
- Exclude all broken examples.
- Exclude shaders if import path is missing or OpenGL is
  not present.
- Exclude Mac .app folders
- Fix the DeclarativeViewer to check for the presence
  of the ImageMagick and ffmpeg executables only once,
  reducing test time.
- Do not check for ImageMagick by running its command
  line tool 'convert' on Windows, since Windows
  has a tool of the same name that converts file
  systems (!).
- Fix doc snippets to load correctly.

Task-number: QTQAINFRA-428
Change-Id: Icc0a983bc42857b41ab1d9e93336f8265bfbec36
Reviewed-by: Janne Anttila <janne.anttila@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: Christopher Adams <chris.adams@qinetic.com.au>
doc/src/snippets/declarative/models/views-models-delegates.qml
doc/src/snippets/declarative/models/visual-model-and-view.qml
doc/src/snippets/declarative/mousearea/mousearea-snippet.qml
tests/auto/declarative/examples/examples.pro
tests/auto/declarative/examples/tst_examples.cpp
tools/qml/qmlruntime.cpp
tools/qml/qmlruntime.h