Moved PQs from blackcore to blackmisc, added header for namespace, mainpage.dox for Doxygen

This commit is contained in:
Klaus Basan
2013-03-22 16:07:53 +01:00
parent 969f0c879f
commit 525910c7a3
34 changed files with 237 additions and 112 deletions

View File

@@ -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);

View File

@@ -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

View File

@@ -1,6 +1,6 @@
#include "testmain.h"
namespace BlackCoreTest {
namespace BlackMiscTest {
//! Starting main, equivalent to QTEST_APPLESS_MAIN for multiple test classes.
/*! \param argc

View File

@@ -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.

View File

@@ -1,6 +1,6 @@
#include "testphysicalquantitiesbase.h"
namespace BlackCoreTest {
namespace BlackMiscTest {
/*!
* \brief Constructor

View File

@@ -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();
};
}