summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2016-10-04 10:09:06 +0200
committerJuergen Ryannel <juergen.bocklage-ryannel@pelagicore.com>2016-11-30 10:01:20 +0100
commitaaf2be5dbf76063ceef84b39d3675f85c01d0074 (patch)
tree0113325b05217951c5808acfe38dc4692c8233f5 /tests
parentecf6e89446cb8ce3fe258f3f8f20c5a103da9b73 (diff)
downloadqtivi-qface-aaf2be5dbf76063ceef84b39d3675f85c01d0074.tar.gz
Added support for module versions.
Diffstat (limited to 'tests')
-rw-r--r--tests/in/climate.qdl2
-rw-r--r--tests/in/one.qdl2
-rw-r--r--tests/in/test.qdl3
-rw-r--r--tests/in/tuner.qdl2
-rw-r--r--tests/test_parser.py1
5 files changed, 6 insertions, 4 deletions
diff --git a/tests/in/climate.qdl b/tests/in/climate.qdl
index 1d9adbc..05895af 100644
--- a/tests/in/climate.qdl
+++ b/tests/in/climate.qdl
@@ -1,4 +1,4 @@
-module vehicle.climate;
+module vehicle.climate 1.0;
/*!
* The ClimateControl provides a QML interface to the climate control
diff --git a/tests/in/one.qdl b/tests/in/one.qdl
index 478a868..fad27df 100644
--- a/tests/in/one.qdl
+++ b/tests/in/one.qdl
@@ -1,4 +1,4 @@
-module one;
+module one 1.0;
interface OneService {
StringStruct message;
diff --git a/tests/in/test.qdl b/tests/in/test.qdl
index b698e27..77687ef 100644
--- a/tests/in/test.qdl
+++ b/tests/in/test.qdl
@@ -1,4 +1,4 @@
-module com.pelagicore.test;
+module com.pelagicore.test 1.0;
import common 1.0;
@@ -8,6 +8,7 @@ interface ContactService {
readonly string stringValue;
bool boolValue;
real realValue;
+ var varValue;
Contact currentContact;
common.Date today;
example.Date tomorrow;
diff --git a/tests/in/tuner.qdl b/tests/in/tuner.qdl
index 0deac47..f97ab3d 100644
--- a/tests/in/tuner.qdl
+++ b/tests/in/tuner.qdl
@@ -1,4 +1,4 @@
-module entertainment.tuner;
+module entertainment.tuner 1.0;
/*! Service Tuner */
interface Tuner {
diff --git a/tests/test_parser.py b/tests/test_parser.py
index d6a5630..a44a13f 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -22,6 +22,7 @@ def loadTest():
path = inputPath / 'test.qdl'
return FileSystem.parse_document(path)
+
def test_parse():
log.debug('test parse')
names = FileSystem.find_files(inputPath, '*.qdl')