diff options
author | Marco Benelli <marco.benelli@theqtcompany.com> | 2015-11-20 17:14:25 +0100 |
---|---|---|
committer | Marco Benelli <marco.benelli@theqtcompany.com> | 2015-12-10 14:48:59 +0000 |
commit | 5f96bc07389382d534934120301c2d1a89d24657 (patch) | |
tree | 5dbf09e32de5cb278e76ccbac8f2def6af4b7b91 /tests/manual/qmlplugindump/README | |
parent | 177050862e644f9a279086b703cb04e06ea409b8 (diff) |
qmlplugindump: add manual tests.v5.6.0-beta1
Added a small test infrastructure in order to run tests on sample
projects and quickly define new test cases.
Running tests will also compile (and clean) sample tests.
Change-Id: Ibd0e48201dafe335198479d605d676ca5b753566
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'tests/manual/qmlplugindump/README')
-rw-r--r-- | tests/manual/qmlplugindump/README | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/manual/qmlplugindump/README b/tests/manual/qmlplugindump/README new file mode 100644 index 0000000000..537afbba6e --- /dev/null +++ b/tests/manual/qmlplugindump/README @@ -0,0 +1,42 @@ +Tests for qmlplugindump +----------------------- + +The test are executed by compiling a series of sample projects and +running qmlplugindump on them, checking the generated plugin.qmltypes +files. Each test, except `builtins`, need a sample project in order +to be executed. A test is defined by: + + - test name + - sample project name + - sample project version + - expected results + +That means that different tests can use the same sample project, but +it is not possible to define a test that use more than one sample. +Test definitions are stored in the folder `definitions` as json files; +the file name is the test name, tests are executed in lexicographical +order on their names, and the contents defines the other properties in +the following format: + + { + "project": <project-name>, + "version": <version>, + "expected": [<regexp-patterns>*], + } + +where _project-name_, _version_, and _regexp-patterns_ are strings. + +The first two parameters are used to invoke qmlplugindump: + + qmlplugindump -nonrelocatable <uri> <version> <path> + +where: + + <uri> = tests.dumper.<project-name> + <path> = <test-root> + +therefore, it is important that the sample projects resides in +a subdirectory of `tests/dumper` named as the project itself. + +The last parameter is a list of regular expression patterns that +must match the `plugin.qmltypes` produced by qmlplugindump. |