summaryrefslogtreecommitdiff
path: root/src/tools/ivigenerator/templates_test.yaml
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2017-11-27 08:53:21 +0100
committerAntti Hölttä <ahoelttae@luxoft.com>2018-02-07 09:23:50 +0000
commit0448ec8f0cb3fb52d41e156c2ec15fcff225d2f9 (patch)
tree82dffc0ddb4638f19eab79199543561ab6442732 /src/tools/ivigenerator/templates_test.yaml
parent2cfdc03e5e4e8b5674dd13d8d179fde973976d27 (diff)
downloadqtivi-0448ec8f0cb3fb52d41e156c2ec15fcff225d2f9.tar.gz
Add an autotest generator template
The template generates a basic autotest for the generated API and the backend interfaces. It tests the following: - default behavior when no or an invalid backend is connected. - Changes from the backend are populated to the frontend API - Changes in the frontend are populated to the backend API The test are generated and executed for the autogenerator test as well as for the ivivehiclefunctions module Task-number: QTAUTO-365 Change-Id: Ie7ac78db821d930dca99c3e7db95c1d373460f85 Reviewed-by: Antti Hölttä <ahoelttae@luxoft.com>
Diffstat (limited to 'src/tools/ivigenerator/templates_test.yaml')
-rw-r--r--src/tools/ivigenerator/templates_test.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/ivigenerator/templates_test.yaml b/src/tools/ivigenerator/templates_test.yaml
new file mode 100644
index 0000000..f7b6b64
--- /dev/null
+++ b/src/tools/ivigenerator/templates_test.yaml
@@ -0,0 +1,12 @@
+generate_rules:
+ module_rules:
+ - dest_file: "{{srcBase|lower}}.pri"
+ template_file: "module.pri.tpl"
+ - dest_file: 'main.cpp'
+ template_file: 'main.cpp.tpl'
+ interface_rules:
+ - dest_file: 'tst_{{interface|lower}}.cpp'
+ template_file: 'tst_test.cpp.tpl'
+ - dest_file: 'tst_{{interface|lower}}.h'
+ template_file: 'tst_test.h.tpl'
+ struct_rules: