Files
pilotclient/tests/blackmisc/testblackmiscmain.cpp
2016-05-20 01:41:10 +02:00

69 lines
2.2 KiB
C++

/* Copyright (C) 2013
* swift Project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \cond PRIVATE_TESTS
/*!
* \file
* \ingroup testblackmisc
*/
#include "testaviation.h"
#include "testblackmiscmain.h"
#include "testcontainers.h"
#include "testgeo.h"
#include "testidentifier.h"
#include "testinput.h"
#include "testlibrarypath.h"
#include "testmath.h"
#include "testphysicalquantities.h"
#include "testvaluecache.h"
#include "testvariantandmap.h"
#include "testweather.h"
#include <QTest>
namespace BlackMiscTest
{
/*
* Starting main, equivalent to QTEST_APPLESS_MAIN for multiple test classes.
*/
int CBlackMiscTestMain::unitMain(int argc, char *argv[])
{
int status = 0;
{
CTestPhysicalQuantities pqBaseTests ;
CTestAviation avBaseTests;
CTestGeo geoTests;
CTestContainers containerTests;
CTestVariantAndMap variantAndMap;
CTestInput inputTests;
CTestIdentifier identifierTests;
CTestValueCache valueCacheTests;
CTestWeather weatherTests;
CTestMath mathTests;
CTestLibraryPath libraryPathTests;
status |= QTest::qExec(&pqBaseTests, argc, argv);
status |= QTest::qExec(&avBaseTests, argc, argv);
status |= QTest::qExec(&geoTests, argc, argv);
status |= QTest::qExec(&identifierTests, argc, argv);
status |= QTest::qExec(&containerTests, argc, argv);
status |= QTest::qExec(&variantAndMap, argc, argv);
status |= QTest::qExec(&inputTests, argc, argv);
status |= QTest::qExec(&valueCacheTests, argc, argv);
status |= QTest::qExec(&weatherTests, argc, argv);
status |= QTest::qExec(&mathTests, argc, argv);
status |= QTest::qExec(&libraryPathTests, argc, argv);
}
return status;
}
} // namespace
//! \endcond