Add tests skeleton subproject
This commit is contained in:
parent
2f03f7e488
commit
f474ab85af
3 changed files with 58 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
SUBDIRS += \
|
SUBDIRS += \
|
||||||
sea_transport
|
sea_transport \
|
||||||
|
st_test
|
||||||
|
|
|
||||||
9
st_test/st_test.pro
Normal file
9
st_test/st_test.pro
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
QT += testlib
|
||||||
|
QT -= gui
|
||||||
|
|
||||||
|
CONFIG += qt console warn_on depend_includepath testcase
|
||||||
|
CONFIG -= app_bundle
|
||||||
|
|
||||||
|
TEMPLATE = app
|
||||||
|
|
||||||
|
SOURCES += tst_st_test.cpp
|
||||||
47
st_test/tst_st_test.cpp
Normal file
47
st_test/tst_st_test.cpp
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
#include <QtTest>
|
||||||
|
|
||||||
|
// add necessary includes here
|
||||||
|
|
||||||
|
class st_test : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
st_test();
|
||||||
|
~st_test();
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void initTestCase();
|
||||||
|
void cleanupTestCase();
|
||||||
|
void test_case1();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
st_test::st_test()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
st_test::~st_test()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void st_test::initTestCase()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void st_test::cleanupTestCase()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void st_test::test_case1()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
QTEST_APPLESS_MAIN(st_test)
|
||||||
|
|
||||||
|
#include "tst_st_test.moc"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue