From 8fd6e206a6fd913e78c1343a0f5d52cbd2d0ceb8 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Fri, 25 Mar 2011 10:32:15 +0100 Subject: [PATCH] Add tst_headersclean for each module --- qt3support/tests/auto/auto.pro | 1 + .../tests/auto/headersclean/headersclean.pro | 5 + .../tests/auto/headersclean/tst_headersclean.cpp | 62 +++++++++++++++ qt3support/tests/auto/host.pro | 4 + qtbase/tests/auto/headersclean/headersclean.pro | 7 ++ .../tests/auto/headersclean/tst_headersclean.cpp | 79 ++++++++++++++++++++ qtbase/tests/auto/host.pro | 1 + qtdeclarative/tests/auto/auto.pro | 1 + .../tests/auto/headersclean/headersclean.pro | 5 + .../tests/auto/headersclean/tst_headersclean.cpp | 62 +++++++++++++++ qtdeclarative/tests/auto/host.pro | 4 + qtmultimedia/tests/auto/auto.pro | 2 +- .../tests/auto/headersclean/headersclean.pro | 4 + .../tests/auto/headersclean/tst_headersclean.cpp | 62 +++++++++++++++ qtmultimedia/tests/auto/host.pro | 4 + qtphonon/tests/auto/auto.pro | 1 + qtphonon/tests/auto/headersclean/headersclean.pro | 5 + .../tests/auto/headersclean/tst_headersclean.cpp | 62 +++++++++++++++ qtphonon/tests/auto/host.pro | 4 + qtscript/tests/auto/auto.pro | 2 +- qtscript/tests/auto/headersclean/headersclean.pro | 6 ++ .../tests/auto/headersclean/tst_headersclean.cpp | 63 ++++++++++++++++ qtscript/tests/auto/host.pro | 4 + qtsvg/tests/auto/auto.pro | 1 + qtsvg/tests/auto/headersclean/headersclean.pro | 5 + qtsvg/tests/auto/headersclean/tst_headersclean.cpp | 62 +++++++++++++++ qtsvg/tests/auto/host.pro | 4 + qttools/tests/auto/auto.pro | 1 + qttools/tests/auto/headersclean/headersclean.pro | 4 + .../tests/auto/headersclean/tst_headersclean.cpp | 63 ++++++++++++++++ qttools/tests/auto/host.pro | 4 + qtxmlpatterns/tests/auto/auto.pro | 1 + .../tests/auto/headersclean/headersclean.pro | 5 + .../tests/auto/headersclean/tst_headersclean.cpp | 62 +++++++++++++++ qtxmlpatterns/tests/auto/host.pro | 4 + 35 files changed, 664 insertions(+), 2 deletions(-) create mode 100644 qt3support/tests/auto/headersclean/headersclean.pro create mode 100644 qt3support/tests/auto/headersclean/tst_headersclean.cpp create mode 100644 qt3support/tests/auto/host.pro create mode 100644 qtbase/tests/auto/headersclean/headersclean.pro create mode 100644 qtbase/tests/auto/headersclean/tst_headersclean.cpp create mode 100644 qtdeclarative/tests/auto/headersclean/headersclean.pro create mode 100644 qtdeclarative/tests/auto/headersclean/tst_headersclean.cpp create mode 100644 qtdeclarative/tests/auto/host.pro create mode 100644 qtmultimedia/tests/auto/headersclean/headersclean.pro create mode 100644 qtmultimedia/tests/auto/headersclean/tst_headersclean.cpp create mode 100644 qtmultimedia/tests/auto/host.pro create mode 100644 qtphonon/tests/auto/headersclean/headersclean.pro create mode 100644 qtphonon/tests/auto/headersclean/tst_headersclean.cpp create mode 100644 qtphonon/tests/auto/host.pro create mode 100644 qtscript/tests/auto/headersclean/headersclean.pro create mode 100644 qtscript/tests/auto/headersclean/tst_headersclean.cpp create mode 100644 qtscript/tests/auto/host.pro create mode 100644 qtsvg/tests/auto/headersclean/headersclean.pro create mode 100644 qtsvg/tests/auto/headersclean/tst_headersclean.cpp create mode 100644 qtsvg/tests/auto/host.pro create mode 100644 qttools/tests/auto/headersclean/headersclean.pro create mode 100644 qttools/tests/auto/headersclean/tst_headersclean.cpp create mode 100644 qttools/tests/auto/host.pro create mode 100644 qtxmlpatterns/tests/auto/headersclean/headersclean.pro create mode 100644 qtxmlpatterns/tests/auto/headersclean/tst_headersclean.cpp create mode 100644 qtxmlpatterns/tests/auto/host.pro diff --git a/qt3support/tests/auto/auto.pro b/qt3support/tests/auto/auto.pro index 83fe8e3..b576bb4 100644 --- a/qt3support/tests/auto/auto.pro +++ b/qt3support/tests/auto/auto.pro @@ -53,3 +53,4 @@ SUBDIRS=\ q3widgetstack !cross_compile:SUBDIRS += uic3 +!cross_compile:SUBDIRS += host.pro diff --git a/qt3support/tests/auto/headersclean/headersclean.pro b/qt3support/tests/auto/headersclean/headersclean.pro new file mode 100644 index 0000000..d2588db --- /dev/null +++ b/qt3support/tests/auto/headersclean/headersclean.pro @@ -0,0 +1,5 @@ +load(qttest_p4) +SOURCES += tst_headersclean.cpp +QT = core + +contains(QT_CONFIG,qt3support): QT += qt3support \ No newline at end of file diff --git a/qt3support/tests/auto/headersclean/tst_headersclean.cpp b/qt3support/tests/auto/headersclean/tst_headersclean.cpp new file mode 100644 index 0000000..c114740 --- /dev/null +++ b/qt3support/tests/auto/headersclean/tst_headersclean.cpp @@ -0,0 +1,62 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#define QT_NO_KEYWORDS +#define signals int +#define slots int +#define emit public:; +#define foreach public:; +#define forever public:; + +#include +#include + +#include + +class tst_HeadersClean: public QObject +{ + Q_OBJECT +public: + tst_HeadersClean() {} +}; + +QTEST_MAIN(tst_HeadersClean) +#include "tst_headersclean.moc" \ No newline at end of file diff --git a/qt3support/tests/auto/host.pro b/qt3support/tests/auto/host.pro new file mode 100644 index 0000000..6bc8753 --- /dev/null +++ b/qt3support/tests/auto/host.pro @@ -0,0 +1,4 @@ +TEMPLATE=subdirs +SUBDIRS=\ + headersclean \ + diff --git a/qtbase/tests/auto/headersclean/headersclean.pro b/qtbase/tests/auto/headersclean/headersclean.pro new file mode 100644 index 0000000..d9b6ae3 --- /dev/null +++ b/qtbase/tests/auto/headersclean/headersclean.pro @@ -0,0 +1,7 @@ +load(qttest_p4) +SOURCES += tst_headersclean.cpp +QT = core network xml sql uitools + +contains(QT_CONFIG,dbus): QT += dbus +contains(QT_CONFIG,opengl): QT += opengl +contains(QT_CONFIG,openvg): QT += openvg \ No newline at end of file diff --git a/qtbase/tests/auto/headersclean/tst_headersclean.cpp b/qtbase/tests/auto/headersclean/tst_headersclean.cpp new file mode 100644 index 0000000..fbe68f5 --- /dev/null +++ b/qtbase/tests/auto/headersclean/tst_headersclean.cpp @@ -0,0 +1,79 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#define QT_NO_KEYWORDS +#define signals int +#define slots int +#define emit public:; +#define foreach public:; +#define forever public:; + +#include +#include + +#include +#include +#include +#include + +#include + +#ifndef QT_NO_OPENGL +#include +#endif + +#if !defined(QT_NO_DBUS) && defined(Q_OS_UNIX) +#include +#endif + +#ifndef QT_NO_OPENVG +#include +#endif + +class tst_HeadersClean: public QObject +{ + Q_OBJECT +public: + tst_HeadersClean() {} +}; + +QTEST_MAIN(tst_HeadersClean) +#include "tst_headersclean.moc" \ No newline at end of file diff --git a/qtbase/tests/auto/host.pro b/qtbase/tests/auto/host.pro index 61c7c6a..44216ae 100644 --- a/qtbase/tests/auto/host.pro +++ b/qtbase/tests/auto/host.pro @@ -1,6 +1,7 @@ TEMPLATE=subdirs SUBDIRS=\ compiler \ + headersclean \ maketestselftest \ moc \ uic \ diff --git a/qtdeclarative/tests/auto/auto.pro b/qtdeclarative/tests/auto/auto.pro index f2173f0..1edeaaa 100644 --- a/qtdeclarative/tests/auto/auto.pro +++ b/qtdeclarative/tests/auto/auto.pro @@ -2,3 +2,4 @@ TEMPLATE=subdirs SUBDIRS=\ declarative \ +!cross_compile: SUBDIRS += host.pro diff --git a/qtdeclarative/tests/auto/headersclean/headersclean.pro b/qtdeclarative/tests/auto/headersclean/headersclean.pro new file mode 100644 index 0000000..54ea66a --- /dev/null +++ b/qtdeclarative/tests/auto/headersclean/headersclean.pro @@ -0,0 +1,5 @@ +load(qttest_p4) +SOURCES += tst_headersclean.cpp +QT = core + +contains(QT_CONFIG,declarative): QT += declarative diff --git a/qtdeclarative/tests/auto/headersclean/tst_headersclean.cpp b/qtdeclarative/tests/auto/headersclean/tst_headersclean.cpp new file mode 100644 index 0000000..68bc9d7 --- /dev/null +++ b/qtdeclarative/tests/auto/headersclean/tst_headersclean.cpp @@ -0,0 +1,62 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#define QT_NO_KEYWORDS +#define signals int +#define slots int +#define emit public:; +#define foreach public:; +#define forever public:; + +#include +#include + +#include + +class tst_HeadersClean: public QObject +{ + Q_OBJECT +public: + tst_HeadersClean() {} +}; + +QTEST_MAIN(tst_HeadersClean) +#include "tst_headersclean.moc" diff --git a/qtdeclarative/tests/auto/host.pro b/qtdeclarative/tests/auto/host.pro new file mode 100644 index 0000000..6bc8753 --- /dev/null +++ b/qtdeclarative/tests/auto/host.pro @@ -0,0 +1,4 @@ +TEMPLATE=subdirs +SUBDIRS=\ + headersclean \ + diff --git a/qtmultimedia/tests/auto/auto.pro b/qtmultimedia/tests/auto/auto.pro index 0a89f53..1a4210c 100644 --- a/qtmultimedia/tests/auto/auto.pro +++ b/qtmultimedia/tests/auto/auto.pro @@ -8,4 +8,4 @@ SUBDIRS=\ qaudiooutput \ qvideoframe \ qvideosurfaceformat - +!cross_compile: SUBDIRS += host.pro diff --git a/qtmultimedia/tests/auto/headersclean/headersclean.pro b/qtmultimedia/tests/auto/headersclean/headersclean.pro new file mode 100644 index 0000000..cedd4d4 --- /dev/null +++ b/qtmultimedia/tests/auto/headersclean/headersclean.pro @@ -0,0 +1,4 @@ +load(qttest_p4) +SOURCES += tst_headersclean.cpp +QT = core +QT += multimedia diff --git a/qtmultimedia/tests/auto/headersclean/tst_headersclean.cpp b/qtmultimedia/tests/auto/headersclean/tst_headersclean.cpp new file mode 100644 index 0000000..5a61a86 --- /dev/null +++ b/qtmultimedia/tests/auto/headersclean/tst_headersclean.cpp @@ -0,0 +1,62 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#define QT_NO_KEYWORDS +#define signals int +#define slots int +#define emit public:; +#define foreach public:; +#define forever public:; + +#include +#include + +#include + +class tst_HeadersClean: public QObject +{ + Q_OBJECT +public: + tst_HeadersClean() {} +}; + +QTEST_MAIN(tst_HeadersClean) +#include "tst_headersclean.moc" diff --git a/qtmultimedia/tests/auto/host.pro b/qtmultimedia/tests/auto/host.pro new file mode 100644 index 0000000..6bc8753 --- /dev/null +++ b/qtmultimedia/tests/auto/host.pro @@ -0,0 +1,4 @@ +TEMPLATE=subdirs +SUBDIRS=\ + headersclean \ + diff --git a/qtphonon/tests/auto/auto.pro b/qtphonon/tests/auto/auto.pro index ef6bdf4..ba475cb 100644 --- a/qtphonon/tests/auto/auto.pro +++ b/qtphonon/tests/auto/auto.pro @@ -1,3 +1,4 @@ TEMPLATE = subdirs contains(QT_CONFIG, phonon): SUBDIRS += phonon.pro +!cross_compile: SUBDIRS += host.pro diff --git a/qtphonon/tests/auto/headersclean/headersclean.pro b/qtphonon/tests/auto/headersclean/headersclean.pro new file mode 100644 index 0000000..ca192bc --- /dev/null +++ b/qtphonon/tests/auto/headersclean/headersclean.pro @@ -0,0 +1,5 @@ +load(qttest_p4) +SOURCES += tst_headersclean.cpp +QT = core + +contains(QT_CONFIG,phonon): QT += phonon diff --git a/qtphonon/tests/auto/headersclean/tst_headersclean.cpp b/qtphonon/tests/auto/headersclean/tst_headersclean.cpp new file mode 100644 index 0000000..cca8928 --- /dev/null +++ b/qtphonon/tests/auto/headersclean/tst_headersclean.cpp @@ -0,0 +1,62 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#define QT_NO_KEYWORDS +#define signals int +#define slots int +#define emit public:; +#define foreach public:; +#define forever public:; + +#include +#include + +#include + +class tst_HeadersClean: public QObject +{ + Q_OBJECT +public: + tst_HeadersClean() {} +}; + +QTEST_MAIN(tst_HeadersClean) +#include "tst_headersclean.moc" diff --git a/qtphonon/tests/auto/host.pro b/qtphonon/tests/auto/host.pro new file mode 100644 index 0000000..6bc8753 --- /dev/null +++ b/qtphonon/tests/auto/host.pro @@ -0,0 +1,4 @@ +TEMPLATE=subdirs +SUBDIRS=\ + headersclean \ + diff --git a/qtscript/tests/auto/auto.pro b/qtscript/tests/auto/auto.pro index c4d0544..2cfdcfd 100644 --- a/qtscript/tests/auto/auto.pro +++ b/qtscript/tests/auto/auto.pro @@ -15,4 +15,4 @@ SUBDIRS=\ qscriptvalue \ qscriptvaluegenerated \ qscriptvalueiterator \ - +!cross_compile: SUBDIRS += host.pro diff --git a/qtscript/tests/auto/headersclean/headersclean.pro b/qtscript/tests/auto/headersclean/headersclean.pro new file mode 100644 index 0000000..73a226d --- /dev/null +++ b/qtscript/tests/auto/headersclean/headersclean.pro @@ -0,0 +1,6 @@ +load(qttest_p4) +SOURCES += tst_headersclean.cpp +QT = core + +contains(QT_CONFIG,script): QT += script +contains(QT_CONFIG,scripttools): QT += scripttools diff --git a/qtscript/tests/auto/headersclean/tst_headersclean.cpp b/qtscript/tests/auto/headersclean/tst_headersclean.cpp new file mode 100644 index 0000000..a8e64b4 --- /dev/null +++ b/qtscript/tests/auto/headersclean/tst_headersclean.cpp @@ -0,0 +1,63 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#define QT_NO_KEYWORDS +#define signals int +#define slots int +#define emit public:; +#define foreach public:; +#define forever public:; + +#include +#include + +#include +#include + +class tst_HeadersClean: public QObject +{ + Q_OBJECT +public: + tst_HeadersClean() {} +}; + +QTEST_MAIN(tst_HeadersClean) +#include "tst_headersclean.moc" diff --git a/qtscript/tests/auto/host.pro b/qtscript/tests/auto/host.pro new file mode 100644 index 0000000..6bc8753 --- /dev/null +++ b/qtscript/tests/auto/host.pro @@ -0,0 +1,4 @@ +TEMPLATE=subdirs +SUBDIRS=\ + headersclean \ + diff --git a/qtsvg/tests/auto/auto.pro b/qtsvg/tests/auto/auto.pro index cb3cccb..9a7e229 100644 --- a/qtsvg/tests/auto/auto.pro +++ b/qtsvg/tests/auto/auto.pro @@ -4,3 +4,4 @@ SUBDIRS=\ qsvggenerator \ qsvgrenderer \ +!cross_compile: SUBDIRS += host.pro diff --git a/qtsvg/tests/auto/headersclean/headersclean.pro b/qtsvg/tests/auto/headersclean/headersclean.pro new file mode 100644 index 0000000..715ea1e --- /dev/null +++ b/qtsvg/tests/auto/headersclean/headersclean.pro @@ -0,0 +1,5 @@ +load(qttest_p4) +SOURCES += tst_headersclean.cpp +QT = core + +contains(QT_CONFIG,svg): QT += svg diff --git a/qtsvg/tests/auto/headersclean/tst_headersclean.cpp b/qtsvg/tests/auto/headersclean/tst_headersclean.cpp new file mode 100644 index 0000000..ef12064 --- /dev/null +++ b/qtsvg/tests/auto/headersclean/tst_headersclean.cpp @@ -0,0 +1,62 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#define QT_NO_KEYWORDS +#define signals int +#define slots int +#define emit public:; +#define foreach public:; +#define forever public:; + +#include +#include + +#include + +class tst_HeadersClean: public QObject +{ + Q_OBJECT +public: + tst_HeadersClean() {} +}; + +QTEST_MAIN(tst_HeadersClean) +#include "tst_headersclean.moc" diff --git a/qtsvg/tests/auto/host.pro b/qtsvg/tests/auto/host.pro new file mode 100644 index 0000000..6bc8753 --- /dev/null +++ b/qtsvg/tests/auto/host.pro @@ -0,0 +1,4 @@ +TEMPLATE=subdirs +SUBDIRS=\ + headersclean \ + diff --git a/qttools/tests/auto/auto.pro b/qttools/tests/auto/auto.pro index c1e3bd1..49c179f 100644 --- a/qttools/tests/auto/auto.pro +++ b/qttools/tests/auto/auto.pro @@ -7,3 +7,4 @@ SUBDIRS=\ qhelpprojectdata \ SUBDIRS += linguist +!cross_compile:SUBDIRS += host.pro diff --git a/qttools/tests/auto/headersclean/headersclean.pro b/qttools/tests/auto/headersclean/headersclean.pro new file mode 100644 index 0000000..4dfe3f8 --- /dev/null +++ b/qttools/tests/auto/headersclean/headersclean.pro @@ -0,0 +1,4 @@ +load(qttest_p4) +SOURCES += tst_headersclean.cpp +QT = core +QT += designer help diff --git a/qttools/tests/auto/headersclean/tst_headersclean.cpp b/qttools/tests/auto/headersclean/tst_headersclean.cpp new file mode 100644 index 0000000..77ca939 --- /dev/null +++ b/qttools/tests/auto/headersclean/tst_headersclean.cpp @@ -0,0 +1,63 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#define QT_NO_KEYWORDS +#define signals int +#define slots int +#define emit public:; +#define foreach public:; +#define forever public:; + +#include +#include + +#include +#include + +class tst_HeadersClean: public QObject +{ + Q_OBJECT +public: + tst_HeadersClean() {} +}; + +QTEST_MAIN(tst_HeadersClean) +#include "tst_headersclean.moc" diff --git a/qttools/tests/auto/host.pro b/qttools/tests/auto/host.pro new file mode 100644 index 0000000..6bc8753 --- /dev/null +++ b/qttools/tests/auto/host.pro @@ -0,0 +1,4 @@ +TEMPLATE=subdirs +SUBDIRS=\ + headersclean \ + diff --git a/qtxmlpatterns/tests/auto/auto.pro b/qtxmlpatterns/tests/auto/auto.pro index b9244d6..accf5ac 100644 --- a/qtxmlpatterns/tests/auto/auto.pro +++ b/qtxmlpatterns/tests/auto/auto.pro @@ -47,3 +47,4 @@ xmlpatternsxqts.depends = xmlpatternssdk xmlpatternsxqts \ xmlpatternsxslts \ +!cross_compile: SUBDIRS += host.pro diff --git a/qtxmlpatterns/tests/auto/headersclean/headersclean.pro b/qtxmlpatterns/tests/auto/headersclean/headersclean.pro new file mode 100644 index 0000000..dd7fa09 --- /dev/null +++ b/qtxmlpatterns/tests/auto/headersclean/headersclean.pro @@ -0,0 +1,5 @@ +load(qttest_p4) +SOURCES += tst_headersclean.cpp +QT = core + +contains(QT_CONFIG,xmlpatterns): QT += xmlpatterns diff --git a/qtxmlpatterns/tests/auto/headersclean/tst_headersclean.cpp b/qtxmlpatterns/tests/auto/headersclean/tst_headersclean.cpp new file mode 100644 index 0000000..0a21174 --- /dev/null +++ b/qtxmlpatterns/tests/auto/headersclean/tst_headersclean.cpp @@ -0,0 +1,62 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#define QT_NO_KEYWORDS +#define signals int +#define slots int +#define emit public:; +#define foreach public:; +#define forever public:; + +#include +#include + +#include + +class tst_HeadersClean: public QObject +{ + Q_OBJECT +public: + tst_HeadersClean() {} +}; + +QTEST_MAIN(tst_HeadersClean) +#include "tst_headersclean.moc" diff --git a/qtxmlpatterns/tests/auto/host.pro b/qtxmlpatterns/tests/auto/host.pro new file mode 100644 index 0000000..6bc8753 --- /dev/null +++ b/qtxmlpatterns/tests/auto/host.pro @@ -0,0 +1,4 @@ +TEMPLATE=subdirs +SUBDIRS=\ + headersclean \ + -- 1.7.3.4