diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2013-04-08 20:05:54 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-09 10:15:06 +0200 |
commit | 982039cef4f006b9b3d056f0d3d9d206b2784407 (patch) | |
tree | 0d946657c2b5c61ce1731725590b89fb53804299 | |
parent | a39be0b3555a2f114aff78254744d6c9d7f1e5d0 (diff) | |
download | qtserialport-982039cef4f006b9b3d056f0d3d9d206b2784407.tar.gz |
Add CMake unit tests for QtSerialPort.
Change-Id: I406517f216e7c73c20439ca2f9a17e60709ef661
Reviewed-by: Laszlo Papp <lpapp@kde.org>
-rw-r--r-- | tests/auto/auto.pro | 2 | ||||
-rw-r--r-- | tests/auto/cmake/CMakeLists.txt | 14 | ||||
-rw-r--r-- | tests/auto/cmake/cmake.pro | 7 | ||||
-rw-r--r-- | tests/tests.pro | 2 |
4 files changed, 24 insertions, 1 deletions
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro new file mode 100644 index 0000000..e792a61 --- /dev/null +++ b/tests/auto/auto.pro @@ -0,0 +1,2 @@ +TEMPLATE = subdirs +SUBDIRS += cmake diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt new file mode 100644 index 0000000..597f0d3 --- /dev/null +++ b/tests/auto/cmake/CMakeLists.txt @@ -0,0 +1,14 @@ + +cmake_minimum_required(VERSION 2.8) + +project(qmake_cmake_files) + +enable_testing() + +find_package(Qt5Core REQUIRED) + +include("${_Qt5CTestMacros}") + +test_module_includes( + SerialPort QSerialPort +) diff --git a/tests/auto/cmake/cmake.pro b/tests/auto/cmake/cmake.pro new file mode 100644 index 0000000..6596497 --- /dev/null +++ b/tests/auto/cmake/cmake.pro @@ -0,0 +1,7 @@ + +# Cause make to do nothing. +TEMPLATE = subdirs + +CMAKE_QT_MODULES_UNDER_TEST = serialport + +CONFIG += ctest_testcase diff --git a/tests/tests.pro b/tests/tests.pro index 232d596..dcc8531 100644 --- a/tests/tests.pro +++ b/tests/tests.pro @@ -1,2 +1,2 @@ TEMPLATE = subdirs -SUBDIRS += manual +SUBDIRS += auto manual |