2015-03-31 16:48:58 +02:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file qttestmainlambda.cpp
|
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
|
|
|
** @date 31 3, 2015
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** This source code is part of the Valentine project, a pattern making
|
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
|
|
|
** Copyright (C) 2015 Valentina project
|
|
|
|
** <https://bitbucket.org/dismine/valentina> All Rights Reserved.
|
|
|
|
**
|
|
|
|
** Valentina is free software: you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation, either version 3 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** Valentina is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with Valentina. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
**
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#include <QtTest>
|
|
|
|
|
2015-04-15 14:11:13 +02:00
|
|
|
#include "tst_vposter.h"
|
2015-04-16 15:54:40 +02:00
|
|
|
#include "tst_vabstractdetail.h"
|
2015-05-07 15:12:53 +02:00
|
|
|
#include "tst_vspline.h"
|
2015-05-11 14:59:53 +02:00
|
|
|
#include "tst_nameregexp.h"
|
2015-05-17 17:31:17 +02:00
|
|
|
#include "tst_vlayoutdetail.h"
|
2015-06-09 12:21:10 +02:00
|
|
|
#include "tst_varc.h"
|
2016-02-19 10:45:36 +01:00
|
|
|
#include "tst_vellipticalarc.h"
|
2015-09-17 20:44:15 +02:00
|
|
|
#include "tst_measurementregexp.h"
|
2015-09-28 12:42:26 +02:00
|
|
|
#include "tst_tapecommandline.h"
|
2015-10-04 14:20:12 +02:00
|
|
|
#include "tst_valentinacommandline.h"
|
2015-10-15 12:41:42 +02:00
|
|
|
#include "tst_qmutokenparser.h"
|
2015-10-16 10:13:23 +02:00
|
|
|
#include "tst_vmeasurements.h"
|
2015-10-16 13:55:23 +02:00
|
|
|
#include "tst_qmuparsererrormsg.h"
|
2015-10-26 09:31:36 +01:00
|
|
|
#include "tst_vlockguard.h"
|
2015-10-31 13:41:52 +01:00
|
|
|
#include "tst_misc.h"
|
2015-11-09 19:02:38 +01:00
|
|
|
#include "tst_vcommandline.h"
|
2015-12-13 17:33:00 +01:00
|
|
|
#include "tst_tstranslation.h"
|
2016-01-09 17:16:03 +01:00
|
|
|
#include "tst_vdetail.h"
|
2016-01-25 18:06:36 +01:00
|
|
|
#include "tst_findpoint.h"
|
2016-03-15 16:38:07 +01:00
|
|
|
#include "tst_vabstractcurve.h"
|
2015-03-31 16:48:58 +02:00
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
2015-10-16 10:13:23 +02:00
|
|
|
Q_INIT_RESOURCE(schema);
|
|
|
|
|
2015-04-15 14:11:13 +02:00
|
|
|
QApplication app( argc, argv );// For QPrinter
|
|
|
|
|
2015-03-31 16:48:58 +02:00
|
|
|
int status = 0;
|
|
|
|
auto ASSERT_TEST = [&status, argc, argv](QObject* obj)
|
|
|
|
{
|
|
|
|
status |= QTest::qExec(obj, argc, argv);
|
|
|
|
delete obj;
|
|
|
|
};
|
|
|
|
|
2016-01-25 18:06:36 +01:00
|
|
|
ASSERT_TEST(new TST_FindPoint());
|
2016-01-09 17:16:03 +01:00
|
|
|
ASSERT_TEST(new TST_VDetail());
|
2015-04-15 14:11:13 +02:00
|
|
|
ASSERT_TEST(new TST_VPoster());
|
2015-04-16 15:54:40 +02:00
|
|
|
ASSERT_TEST(new TST_VAbstractDetail());
|
2015-05-07 15:12:53 +02:00
|
|
|
ASSERT_TEST(new TST_VSpline());
|
2015-05-11 14:59:53 +02:00
|
|
|
ASSERT_TEST(new TST_NameRegExp());
|
2015-05-17 17:31:17 +02:00
|
|
|
ASSERT_TEST(new TST_VLayoutDetail());
|
2015-06-09 12:21:10 +02:00
|
|
|
ASSERT_TEST(new TST_VArc());
|
2016-02-19 10:45:36 +01:00
|
|
|
ASSERT_TEST(new TST_VEllipticalArc());
|
2015-09-17 20:44:15 +02:00
|
|
|
ASSERT_TEST(new TST_MeasurementRegExp());
|
2015-09-28 12:42:26 +02:00
|
|
|
ASSERT_TEST(new TST_TapeCommandLine());
|
2015-10-04 14:20:12 +02:00
|
|
|
ASSERT_TEST(new TST_ValentinaCommandLine());
|
2015-10-15 12:41:42 +02:00
|
|
|
ASSERT_TEST(new TST_QmuTokenParser());
|
2015-10-16 10:13:23 +02:00
|
|
|
ASSERT_TEST(new TST_VMeasurements());
|
2015-10-16 13:55:23 +02:00
|
|
|
ASSERT_TEST(new TST_QmuParserErrorMsg());
|
2015-10-26 09:31:36 +01:00
|
|
|
ASSERT_TEST(new TST_VLockGuard());
|
2015-10-31 13:41:52 +01:00
|
|
|
ASSERT_TEST(new TST_Misc());
|
2015-11-09 19:02:38 +01:00
|
|
|
ASSERT_TEST(new TST_VCommandLine());
|
2015-12-13 17:33:00 +01:00
|
|
|
ASSERT_TEST(new TST_TSTranslation());
|
2016-03-15 16:38:07 +01:00
|
|
|
ASSERT_TEST(new TST_VAbstractCurve());
|
2015-03-31 16:48:58 +02:00
|
|
|
|
|
|
|
return status;
|
|
|
|
}
|