mirror of
https://github.com/romixlab/qmsgpack.git
synced 2025-06-25 01:21:33 +02:00
Build and run tests with qmake
as of now, running tests is as simple as just typing qmake && make check
This commit is contained in:
@ -1,22 +1,7 @@
|
||||
#-------------------------------------------------
|
||||
#
|
||||
# Project created by QtCreator 2014-09-26T19:10:31
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT += testlib
|
||||
|
||||
QT -= gui
|
||||
|
||||
TARGET = mixed_test
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
TEMPLATE = app
|
||||
|
||||
INCLUDEPATH += ../../src
|
||||
LIBS += -lqmsgpack
|
||||
QT += testlib
|
||||
CONFIG += testcase
|
||||
|
||||
include(../tests.pri)
|
||||
|
||||
SOURCES += mixed_test.cpp
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
|
@ -1,22 +0,0 @@
|
||||
#-------------------------------------------------
|
||||
#
|
||||
# Project created by QtCreator 2014-09-20T15:17:37
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT += testlib
|
||||
|
||||
QT -= gui
|
||||
|
||||
TARGET = pack_test
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
TEMPLATE = app
|
||||
|
||||
LIBS += -lqmsgpack
|
||||
INCLUDEPATH += ../../src
|
||||
|
||||
|
||||
SOURCES += pack_test.cpp
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
7
tests/pack/pack.pro
Normal file
7
tests/pack/pack.pro
Normal file
@ -0,0 +1,7 @@
|
||||
TARGET = pack_test
|
||||
QT += testlib
|
||||
CONFIG += testcase
|
||||
|
||||
include(../tests.pri)
|
||||
|
||||
SOURCES += pack_test.cpp
|
7
tests/qttypes/qttypes.pro
Normal file
7
tests/qttypes/qttypes.pro
Normal file
@ -0,0 +1,7 @@
|
||||
TARGET = qttypes_test
|
||||
QT += testlib
|
||||
CONFIG += testcase
|
||||
|
||||
include(../tests.pri)
|
||||
|
||||
SOURCES += qttypes_test.cpp
|
@ -1,33 +1,7 @@
|
||||
#-------------------------------------------------
|
||||
#
|
||||
# Project created by QtCreator 2017-07-10T14:58:18
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT += testlib
|
||||
|
||||
QT -= gui
|
||||
|
||||
TARGET = tst_streamtest
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
TEMPLATE = app
|
||||
TARGET = stream_test
|
||||
QT += testlib
|
||||
CONFIG += testcase
|
||||
|
||||
include(../tests.pri)
|
||||
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
# any feature of Qt which as been marked as deprecated (the exact warnings
|
||||
# depend on your compiler). Please consult the documentation of the
|
||||
# deprecated API in order to know how to port your code away from it.
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
# You can also make your code fail to compile if you use deprecated APIs.
|
||||
# In order to do so, uncomment the following line.
|
||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
||||
|
||||
SOURCES += \
|
||||
stream_test.cpp
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
SOURCES += stream_test.cpp
|
||||
|
@ -1,4 +1,8 @@
|
||||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS += \
|
||||
stream
|
||||
pack \
|
||||
unpack \
|
||||
mixed \
|
||||
stream \
|
||||
qttypes
|
||||
|
@ -1,21 +1,7 @@
|
||||
#-------------------------------------------------
|
||||
#
|
||||
# Project created by QtCreator 2014-09-25T10:25:22
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT += testlib
|
||||
|
||||
QT -= gui
|
||||
|
||||
TARGET = unpack_test
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
TEMPLATE = app
|
||||
include($$PWD/../../qmsgpack.pri)
|
||||
INCLUDEPATH += ../../src
|
||||
QT += testlib
|
||||
CONFIG += testcase
|
||||
|
||||
include(../tests.pri)
|
||||
|
||||
SOURCES += unpack_test.cpp
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
|
Reference in New Issue
Block a user