mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Moved PQs from blackcore to blackmisc, added header for namespace, mainpage.dox for Doxygen
This commit is contained in:
@@ -2,8 +2,15 @@
|
||||
#include <QDebug>
|
||||
#include "testmain.h"
|
||||
|
||||
using namespace BlackCoreTest;
|
||||
using namespace BlackMiscTest;
|
||||
|
||||
/*!
|
||||
* Starter for testcases
|
||||
* \brief main
|
||||
* \param argc
|
||||
* \param argv
|
||||
* \return
|
||||
*/
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication a(argc, argv);
|
||||
@@ -1,25 +1,25 @@
|
||||
QT += core testlib
|
||||
QT -= gui
|
||||
|
||||
TARGET = test_blackcore
|
||||
TARGET = test_blackmisc
|
||||
TEMPLATE = app
|
||||
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
DEPENDPATH += . ../../src/blackcore
|
||||
INCLUDEPATH += . ../../src/blackcore
|
||||
DEPENDPATH += . ../../src
|
||||
INCLUDEPATH += . ../../src
|
||||
SOURCES += main.cpp testmain.cpp testphysicalquantitiesbase.cpp
|
||||
HEADERS += testmain.h testphysicalquantitiesbase.h
|
||||
|
||||
win32-msvc* {
|
||||
PRE_TARGETDEPS += ../../lib/blackcore.lib
|
||||
LIBS += ../../lib/blackcore.lib
|
||||
PRE_TARGETDEPS += ../../lib/blackmisc.lib
|
||||
LIBS += ../../lib/blackmisc.lib
|
||||
}
|
||||
|
||||
!win32-msvc* {
|
||||
PRE_TARGETDEPS += ../../lib/libblackcore.a
|
||||
LIBS += ../../lib/libblackcore.a
|
||||
PRE_TARGETDEPS += ../../lib/libblackmisc.a
|
||||
LIBS += ../../lib/libblackmisc.a
|
||||
}
|
||||
|
||||
DESTDIR = ../../bin
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "testmain.h"
|
||||
|
||||
namespace BlackCoreTest {
|
||||
namespace BlackMiscTest {
|
||||
|
||||
//! Starting main, equivalent to QTEST_APPLESS_MAIN for multiple test classes.
|
||||
/*! \param argc
|
||||
@@ -4,11 +4,7 @@
|
||||
#include <QtTest/QtTest>
|
||||
#include "testphysicalquantitiesbase.h"
|
||||
|
||||
using namespace BlackCore;
|
||||
using namespace BlackCoreTest;
|
||||
|
||||
|
||||
namespace BlackCoreTest{
|
||||
namespace BlackMiscTest{
|
||||
|
||||
/*!
|
||||
* Class firing of all unit tests in this namespace.
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "testphysicalquantitiesbase.h"
|
||||
|
||||
namespace BlackCoreTest {
|
||||
namespace BlackMiscTest {
|
||||
|
||||
/*!
|
||||
* \brief Constructor
|
||||
@@ -2,15 +2,10 @@
|
||||
#define TESTPHYSICALQUANTITIESBASE_H
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
#include "../../src/blackcore/pqdistance.h"
|
||||
#include "../../src/blackcore/pqfrequency.h"
|
||||
#include "../../src/blackcore/pqspeed.h"
|
||||
#include "../../src/blackcore/pqangle.h"
|
||||
#include "../../src/blackcore/pqmass.h"
|
||||
#include "../../src/blackcore/pqpressure.h"
|
||||
using namespace BlackCore;
|
||||
#include "blackmisc/pqconstants.h"
|
||||
using namespace BlackMisc;
|
||||
|
||||
namespace BlackCoreTest {
|
||||
namespace BlackMiscTest {
|
||||
|
||||
/*!
|
||||
* \brief Physical quantities,basic tests
|
||||
@@ -53,12 +48,10 @@ private slots:
|
||||
* \brief Testing pressure
|
||||
*/
|
||||
void pressureTests();
|
||||
|
||||
/*!
|
||||
* \brief testing construction / destruction in memory
|
||||
*/
|
||||
void memoryTests();
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user