summaryrefslogtreecommitdiffstats
path: root/tests/auto/qserialport/qserialport.pro
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2014-01-23 19:17:52 +0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-22 18:38:57 +0100
commitc2b04164758d98be42b534cd14faadc07bdb3104 (patch)
tree8cbe88b7f8b8ce002ff24115a209c8afd2fdc82c /tests/auto/qserialport/qserialport.pro
parentc1474946199b37a8bae52e39cc8dca41e6042618 (diff)
Add the minimal set of the base auto testsv5.3.0-alpha1
Added two types of tests: the constructing tests and the opening tests. The construction tests are checking of the getters to return of default values. Also are checking a correctness work of the constructor of class with different types of a port name. The opening tests are checking the open() method with the valid/invalid open modes and with the valid/invalid port names. The results are compared with the expected behavior (with the error codes and the return values). Change-Id: I503adf629cf613844bf9b96d8704ff017ea5fcdb Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/auto/qserialport/qserialport.pro')
-rw-r--r--tests/auto/qserialport/qserialport.pro11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qserialport/qserialport.pro b/tests/auto/qserialport/qserialport.pro
new file mode 100644
index 00000000..c16cd5ee
--- /dev/null
+++ b/tests/auto/qserialport/qserialport.pro
@@ -0,0 +1,11 @@
+QT = core testlib
+TARGET = tst_qserialport
+#CONFIG += testcase
+
+greaterThan(QT_MAJOR_VERSION, 4) {
+ QT += serialport
+} else {
+ include($$QTSERIALPORT_PROJECT_ROOT/src/serialport/qt4support/serialport.prf)
+}
+
+SOURCES = tst_qserialport.cpp