diff --git a/gui/test/test.pro b/gui/test/test.pro index 1f35fc5ef..ac562b2ef 100644 --- a/gui/test/test.pro +++ b/gui/test/test.pro @@ -1,4 +1,5 @@ CONFIG += ordered TEMPLATE = subdirs -SUBDIRS = translationhandler +SUBDIRS = translationhandler \ + xmlreport diff --git a/gui/test/testxmlreport.cpp b/gui/test/xmlreport/testxmlreport.cpp similarity index 94% rename from gui/test/testxmlreport.cpp rename to gui/test/xmlreport/testxmlreport.cpp index 03eb937e5..bc40703ad 100644 --- a/gui/test/testxmlreport.cpp +++ b/gui/test/xmlreport/testxmlreport.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team. + * Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -46,3 +46,5 @@ void TestXmlReport::testGetVersion2() const QString filepath("xmlfiles/xmlreport_v2.xml"); QCOMPARE(XmlReport::determineVersion(filepath), 2); } + +QTEST_MAIN(TestXmlReport) diff --git a/gui/test/testxmlreport.h b/gui/test/xmlreport/testxmlreport.h similarity index 93% rename from gui/test/testxmlreport.h rename to gui/test/xmlreport/testxmlreport.h index 8036aaa31..fa97d7c6a 100644 --- a/gui/test/testxmlreport.h +++ b/gui/test/xmlreport/testxmlreport.h @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team. + * Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/test/xmlreport/xmlreport.pro b/gui/test/xmlreport/xmlreport.pro new file mode 100644 index 000000000..0093f60fe --- /dev/null +++ b/gui/test/xmlreport/xmlreport.pro @@ -0,0 +1,13 @@ +TEMPLATE = app +TARGET = test-xmlreport +DEPENDPATH += . +INCLUDEPATH += . +OBJECTS_DIR = build +MOC_DIR = build + +include(../common.pri) + +# tests +SOURCES += testxmlreport.cpp + +HEADERS += testxmlreport.h