Add rudimentary config.test support when configuring modules.
authorMichael Goddard <michael.goddard@nokia.com>
Thu, 30 Jun 2011 04:51:16 +0000 (14:51 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 22 Jul 2011 12:59:08 +0000 (14:59 +0200)
commit997b2a96c1aec1c7f35cd2228eba907f29a28f25
tree2c0d82d1420c9cf5018d43c9e9e5008832c8be76
parent7fc3203062f27f582de84420fa0b519c58b5d1ff
Add rudimentary config.test support when configuring modules.

An extra script is added (qtmodule-configtests) which is currently
invoked from syncqt (with some derived parameters passed to it).

The module can optionally have an entry in the module's sync.profile
file in the form of a perl map of "test name" => parameters.  Tests
can print an advisory message if they fail (e.g. "Install this
SDK/dev package"), or abort the syncqt process (e.g. mandatory
prereq missing).  Also, if the test has a "requires(foo)" line
that results in it being skipped, this is also supported.

Change-Id: Ic3c820a488a0992c944994d4d7dc283da36742d6
Reviewed-on: http://codereview.qt.nokia.com/928
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
bin/qtmodule-configtests [new file with mode: 0755]
bin/syncqt
mkspecs/features/default_pre.prf