summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add CMake unit tests for QtSerialPort.Stephen Kelly2013-04-094-1/+24
| | | | | Change-Id: I406517f216e7c73c20439ca2f9a17e60709ef661 Reviewed-by: Laszlo Papp <lpapp@kde.org>
* tests: Don't run manual tests in the CI systemv5.1.0-alpha1Sergio Ahumada2013-04-042-2/+0
| | | | | | | | Manual tests are not suppossed to be run by the CI system, so removing CONFIG += testcase from the .pro files. Change-Id: I43a729a22a25d9656a1cf76cf3489b3abb893fbd Reviewed-by: Laszlo Papp <lpapp@kde.org>
* Make the test .pro files more aligned and consistent to the other modulesLaszlo Papp2013-02-284-4/+5
| | | | | Change-Id: I6c227b10dd4cb4f5cd8390fa5fae3a282b676f9e Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Assign a new method name for the port name setting APILaszlo Papp2013-02-231-7/+7
| | | | | | | | | | | | | | | | | | * This is more intuitive as it is not setting the port with all its settings like baud rate, flow control, stop bits, parity, and so forth, but only the port name. * This will allow in upcoming change to establish a property for the port name along with a port name changed signal to be useful from different threads, QML, and so forth. * Clean up the documentation not to provide internal information to the end users, and also make the text a bit more concise and better readable. * Examples are also changed accordingly, to use the new API. Change-Id: Idbaa8ee2dee17c63fc0278f687ccc231c5ab670f Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Remove the QtSerialPort namespace define and hence namespace usageLaszlo Papp2013-02-072-2/+2
| | | | | | | | | | * This is for following the convention in the Qt Project with the rest. * This fixes examples and tests to build now as all of them are broken due to the regression. Change-Id: I3f4d64d97466520aea621da582a64a0d97e32136 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Rewrite the assignment test function from scratch.Laszlo Papp2013-02-011-9/+9
| | | | | | | | | Not sure an assignment test is needed at all, but it does not hurt either on the other hand. Change-Id: I937e8ce41421b457da438eb447b0422257efeb39 Reviewed-by: Thiago Augusto Correa <thiago.correa@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Refactor certain variable names, remove useless comments and so forthLaszlo Papp2013-02-012-23/+23
| | | | | Change-Id: Id8af629c2b488050b8accd4c552e9b0ebf366e32 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Make all the file renames and relevant changesLaszlo Papp2013-01-275-11/+11
| | | | | | | | "git log --follow /path/to/the/file/in/question" can be used, for instance, for the renamed files to get the whole history. Change-Id: I20da087ca88e2c179a6c3232772fa21575e0aa6a Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Change the QtCore reference in the copyright headers to QtSerialPortLaszlo Papp2013-01-272-2/+2
| | | | | Change-Id: Ic19f6843d32260404f72038cf77aa6f686e7a3ff Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Rename the SerialPort* classes to QSerialPort* including the internals.Laszlo Papp2013-01-272-69/+69
| | | | | | | | | | | | | | | Unfortunately, the rename has to happen in a separate commit because of the limitations of "git": "git does not track renames of files in history, git only records tree snapshots. It can try to guess whether a change was a rename, or just unrelated removal+addition, when asked. You can help this by making the rename in a different commit from a modification. See man git-log -C and -M" ... so the rename will happen in the next change. Change-Id: Ibe56eba0a0d2c7489db48a6c519d60d3315c00de Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Change the variable names properly for the examples and tests in case of Qt4Laszlo Papp2013-01-262-2/+2
| | | | | Change-Id: I08609cb9c679002262a24b52fc46bbfcabb512d7 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Change Denis' email address in the copyrights headersLaszlo Papp2013-01-262-2/+2
| | | | | Change-Id: I8c564f68bb32423957f2171e1c76d8a428f16eb3 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Call the module QtSerialPort instead of QtAddOnSerialPortLaszlo Papp2013-01-262-4/+4
| | | | | | | | Use the QTSERIALPORT as a term for internal variables as well to remain consistent with the freshly chosen module name. Change-Id: Ia780b105649b39a1eca46702466da5bc31ec5af0 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Change the copyright headers to the Qt Project standard formLaszlo Papp2013-01-262-48/+48
| | | | | Change-Id: Id6414c91a0bc700734873cd798807868865cd453 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Use "BaudRate" instead of "Rate" and "BaudXXXX" instead of "RateXXXX"Laszlo Papp2013-01-261-18/+18
| | | | | Change-Id: Id5db378b6da89f672cb55fa312e325cd1e9b88ce Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Updating a project tree for compilation fixingDenis Shienkov2012-11-052-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For optimization and build correction for Qt4/Qt5 there was a need for unification and modification of a tree of projects. The previous structure of the project didn't meet the changed requirements for Qt5 that led to errors of build and complication of possibility of correction of errors of build. It is necessary to note the main changes: * Removed not used /modules direcrory with all content, because it is autogenerated. * Moved all contents from /src directory to /src/serialport directory. It was necessary for simplification of the qmake commands at building for Qt5 (in particular, there is no need to fill out a module name since it is the name of directory /serialport). * Changed the exported macro defines Q_ADDON_SERIALPORT_EXPORT to Q_SERIALPORT_EXPORT and QT_ADDON_SERIALPORT_LIB to QT_SERIALPORT_LIB. It was necessary for fixing compilation error for unknown reason on Windows and Qt5 when used MSVC compiler. Checked on Windows and Gnu/Linux, also this patch fixes bug: Task-number: QTPLAYGROUND-5 Change-Id: Idc9ba98115d5961a22ae307c0e4034a56f3223b5 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Fix the broken tests with Qt4 due to the QSKIP API changeLaszlo Papp2012-05-231-32/+13
| | | | | | | | | | | QSKIP went through a source incompatible change from Qt4 migration to Qt5. Therefore, the customers cannot build the project with tests (default build) without such a fix like this. Change-Id: I376e88db723c61358d00cb737a30cde46e03c3a1 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Debao Zhang <dbzhang800@gmail.com> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Prepared a first manual test example.Denis Shienkov2012-05-187-0/+354
| | | | | | | | This test checks access to the all available ports, as well do the validation a configuring each port. Change-Id: Ic3f58b43d9427be9164fae431f4775fb26afc5ca Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* The first prepare QtSerialPort to the form of add-on, with the requirements ↵Denis Shienkov2012-02-2925-2792/+0
| | | | | | | of "Creating a new module or tool for Qt" Change-Id: I62bba3590a8873bfd03ed6836ac105e0a30d35ba Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Linux: SerialPortInfo, modify macro from HAVE_UDEV to HAVE_LIBUDEV.kuzulis2011-11-241-3/+1
|
* *nix: Preparing for the implementation SerialPortInfo for variouskuzulis2011-11-201-2/+2
| | | | *nix/bsd OS.
* /tests/guidevtest: For test "IO test" added function to create randomlykuzulis2011-11-191-2/+18
| | | | | the data array given size. In this case, control characters 11h and 13h (XON/XOFF) are not added to the array.
* /tests/guidevtest: For test "IO test" implemented in a log record of thekuzulis2011-11-191-1/+24
| | | | | transmitted/received data packet. In this case, the data in the log are sorted in a table of 32 characters.
* /tests/guidevtest: For test "IO test" increased timeout to read thekuzulis2011-11-191-1/+1
| | | | whole data packet to 700 msec.
* /tests/guidevtest: For "IO test" added test description.kuzulis2011-11-191-19/+28
|
* /tests/guidevtest: Added new IO test.Denis Shienkov2011-11-157-43/+350
|
* /tests/guiapp: Added processing and show last error code in trace dialog.Denis Shienkov2011-11-141-0/+2
|
* /tests/guiapp: For dialog boxes added titles.Denis Shienkov2011-11-142-2/+2
|
* /tests/guiapp: The mechanism calls the dialog boxes. Now the dialog boxes ↵Denis Shienkov2011-11-142-16/+5
| | | | are created in stack.
* /tests/guiapp: Removed unused files.Denis Shienkov2011-11-149-1084/+0
|
* /tests/guiapp: Moved from QWidget to QDialog.kuzulis2011-11-1411-12/+1081
|
* /tests/guidevtest: Added new stub test class "WaitForX Test".kuzulis2011-10-274-1/+48
|
* /tests/guidevtest: Added description about "Signals Test".kuzulis2011-10-262-5/+40
|
* /tests/guidevtest: Complete realization of unit "Signals Test".kuzulis2011-10-242-4/+115
|
* /tests/guidevtest: For all tooltips set font size is 7.kuzulis2011-10-241-15/+15
|
* /tests/guidevtest: Fix incorrect reading of parameter settings.kuzulis2011-10-241-2/+2
|
* /tests/guidevtest: Add initial functional for "Signals test"Denis Shienkov2011-10-233-9/+73
|
* /tests/guidevtest: Add processing breaking a test on error.Denis Shienkov2011-10-232-2/+17
|
* /tests/guidevtest:Denis Shienkov2011-10-234-10/+103
| | | | | | 1. Added about test dialog (by double clicking on test item). 2. Added tool tips. 3. Added description about "Info Test".
* /tests/guidevtest: Added a stub for new test "Signals Test"Denis Shienkov2011-10-224-7/+63
|
* /tests/guidevtest: In the test "Port Info" added output information about ↵Denis Shienkov2011-10-221-2/+10
| | | | the supported speeds.
* Removed unnecessary files.Denis Shienkov2011-10-226-473/+0
|
* /tests/guidevtest:kuzulis2011-10-227-164/+501
| | | | | 1. modified and simplified structure of the application. 2. now runs the test: "Test Info"
* GuiDevTest: the implementation of a unit test "Info Test".Denis Shienkov2011-10-174-12/+41
|
* Unit test GuiDevTest:Denis Shienkov2011-10-168-51/+151
| | | | | | - logging methods moved to UnitTestManager, and make at static; - for UI TestsDialog created TestsViewModel;
* Change in TestDialog UI:Denis Shienkov2011-10-161-11/+4
| | | | | | - removed "Apply" button - replace QListWidget to QListView - rename "Options" button
* Modify unit test /tests/guidevtestkuzulis2011-10-169-36/+279
|
* Modify unit test applicationDenis Shienkov2011-10-158-18/+158
|
* Started the development of unit test application to test the library.Denis Shienkov2011-10-158-0/+315
|
* Added some test console applications.Denis Shienkov2011-09-214-0/+220
|