diff options
Diffstat (limited to 'tests/manual/proparser')
-rw-r--r-- | tests/manual/proparser/main.cpp | 47 | ||||
-rw-r--r-- | tests/manual/proparser/proparser.pro | 20 | ||||
-rw-r--r-- | tests/manual/proparser/test.pro | 27 |
3 files changed, 94 insertions, 0 deletions
diff --git a/tests/manual/proparser/main.cpp b/tests/manual/proparser/main.cpp new file mode 100644 index 00000000000..f2acfbf28a3 --- /dev/null +++ b/tests/manual/proparser/main.cpp @@ -0,0 +1,47 @@ +/*************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Qt Software Information ([email protected]) +** +** +** Non-Open Source Usage +** +** Licensees may use this file in accordance with the Qt Beta Version +** License Agreement, Agreement version 2.2 provided with the Software or, +** alternatively, in accordance with the terms contained in a written +** agreement between you and Nokia. +** +** GNU General Public License Usage +** +** Alternatively, this file may be used under the terms of the GNU General +** Public License versions 2.0 or 3.0 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the packaging +** of this file. Please review the following information to ensure GNU +** General Public Licensing requirements will be met: +** +** http://www.fsf.org/licensing/licenses/info/GPLv2.html and +** http://www.gnu.org/copyleft/gpl.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt GPL Exception version +** 1.2, included in the file GPL_EXCEPTION.txt in this package. +** +***************************************************************************/ +#include <QtCore/QDebug> + +#include "proreader.h" +#include "proitems.h" +#include "proxml.h" + +int main(int argc, char *argv[]) +{ + ProReader pr; + ProFile *pf = pr.read(QString::fromUtf8(argv[1])); + + qDebug() << Qt4ProjectManager::Internal::ProXmlParser::itemToString(pf); + + return 0; +} diff --git a/tests/manual/proparser/proparser.pro b/tests/manual/proparser/proparser.pro new file mode 100644 index 00000000000..c822929991c --- /dev/null +++ b/tests/manual/proparser/proparser.pro @@ -0,0 +1,20 @@ +TEMPLATE = app +TARGET = +DEPENDPATH += . +INCLUDEPATH += . +CONFIG += console +QT += xml + +PROXMLPATH = ../../../src/plugins/qt4projectmanager/proparser +PROPARSERPATH = $$(QTDIR)/tools/linguist/shared +INCLUDEPATH += $$PROPARSERPATH $$PROXMLPATH + +# Input +HEADERS += $$PROPARSERPATH/proitems.h \ + $$PROXMLPATH/proxml.h \ + $$PROPARSERPATH/proreader.h +SOURCES += main.cpp \ + $$PROPARSERPATH/proitems.cpp \ + $$PROXMLPATH/proxml.cpp \ + $$PROPARSERPATH/proreader.cpp + diff --git a/tests/manual/proparser/test.pro b/tests/manual/proparser/test.pro new file mode 100644 index 00000000000..55921087c1f --- /dev/null +++ b/tests/manual/proparser/test.pro @@ -0,0 +1,27 @@ +#comment + +TEMPLATE = app +TARGET = +DEPENDPATH += . +INCLUDEPATH += . +CONFIG += console +QT += xml + +win32 { + PROPARSERPATH = ../../some/other/test/test + unix:PROPARSERPATH = ../../test/test +} + +# test comment +PROPARSERPATH = ../../../src/plugins/qt4projectmanager/proparser +INCLUDEPATH += $$PROPARSERPATH + +# Input +HEADERS += $$PROPARSERPATH/proitems.h \ # test comment2 + $$PROPARSERPATH/proxml.h \ + $$PROPARSERPATH/proreader.h +SOURCES += main.cpp \ + $$PROPARSERPATH/proitems.cpp \ +# test comment 3 + $$PROPARSERPATH/proxml.cpp \ + $$PROPARSERPATH/proreader.cpp |