Files
@ 2a4985e6a454
Branch filter:
Location: tempo-plotter/tests/CMakeLists.txt - annotation
2a4985e6a454
1.9 KiB
text/plain
basic tests for AsciiReader
0046d1641912 5c0005f331cf 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0046d1641912 dae0a0a246f5 0046d1641912 0046d1641912 0046d1641912 0046d1641912 0bcc3039cc7c 5c0005f331cf 0bcc3039cc7c 0bcc3039cc7c 0bcc3039cc7c f8c253a6ab5f df800179c68c 41cf55d3a08c b2f0d61c3507 5c0005f331cf 5c0005f331cf 5c0005f331cf 0bcc3039cc7c 0046d1641912 0046d1641912 0046d1641912 14ef268b5d60 14ef268b5d60 2a4985e6a454 14ef268b5d60 14ef268b5d60 14ef268b5d60 14ef268b5d60 14ef268b5d60 14ef268b5d60 14ef268b5d60 14ef268b5d60 14ef268b5d60 14ef268b5d60 2a4985e6a454 14ef268b5d60 14ef268b5d60 2a4985e6a454 2a4985e6a454 14ef268b5d60 14ef268b5d60 14ef268b5d60 14ef268b5d60 14ef268b5d60 dae0a0a246f5 14ef268b5d60 14ef268b5d60 0046d1641912 0046d1641912 14ef268b5d60 | #
# Copyright © 2018 Hasan Yavuz Özderya
#
# This file is part of serialplot.
#
# serialplot is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# serialplot is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with serialplot. If not, see <http://www.gnu.org/licenses/>.
#
# Find the QtWidgets library
find_package(Qt5Widgets)
find_package(Qt5Test)
include_directories("../src")
add_executable(Test EXCLUDE_FROM_ALL
test.cpp
test_stream.cpp
../src/samplepack.cpp
../src/sink.cpp
../src/source.cpp
../src/indexbuffer.cpp
../src/linindexbuffer.cpp
../src/ringbuffer.cpp
../src/readonlybuffer.cpp
../src/stream.cpp
../src/streamchannel.cpp
../src/channelinfomodel.cpp
)
add_test(NAME test1 COMMAND Test)
qt5_use_modules(Test Widgets)
qt5_wrap_ui(UI_FILES_T
../src/binarystreamreadersettings.ui
../src/asciireadersettings.ui
../src/numberformatbox.ui
../src/endiannessbox.ui
)
# test for readers
add_executable(TestReaders EXCLUDE_FROM_ALL
test_readers.cpp
../src/samplepack.cpp
../src/sink.cpp
../src/source.cpp
../src/abstractreader.cpp
../src/binarystreamreader.cpp
../src/binarystreamreadersettings.cpp
../src/asciireader.cpp
../src/asciireadersettings.cpp
../src/endiannessbox.cpp
../src/numberformatbox.cpp
../src/numberformat.cpp
${UI_FILES_T}
)
qt5_use_modules(TestReaders Widgets Test)
add_test(NAME test_readers COMMAND TestReaders)
set(CMAKE_CTEST_COMMAND ctest -V)
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
add_dependencies(check Test TestReaders)
|