summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorToby Tomkins <toby.tomkins@nokia.com>2012-06-26 14:05:03 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-27 08:17:16 +0200
commitaa6bfc3862abd426d09879ed98b63930dea61929 (patch)
treee617e7ca6ca4447d2aeab5479f2f46a232023f0e /tests
parent30b4827f2f78c2809b67c1440799a1db66722750 (diff)
Add headersclean autotest.
Change-Id: I7f3526118b94cda8033286f3e4dae9a2743cfb30 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/auto.pro1
-rw-r--r--tests/auto/headersclean/headersclean.pro6
-rw-r--r--tests/auto/headersclean/qt_headersclean_headers.h47
3 files changed, 54 insertions, 0 deletions
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro
index f2173f0c..1d1761a5 100644
--- a/tests/auto/auto.pro
+++ b/tests/auto/auto.pro
@@ -1,4 +1,5 @@
TEMPLATE=subdirs
SUBDIRS=\
+ headersclean \
declarative \
diff --git a/tests/auto/headersclean/headersclean.pro b/tests/auto/headersclean/headersclean.pro
new file mode 100644
index 00000000..4b6ab95e
--- /dev/null
+++ b/tests/auto/headersclean/headersclean.pro
@@ -0,0 +1,6 @@
+QT = core testlib gui quick1
+HEADERSCLEAN_PRI = $${QT.core.sources}/../../tests/auto/other/headersclean/headersclean.pri
+isEmpty(QT.core.sources)|!include($$HEADERSCLEAN_PRI) {
+ warning("headersclean.pri from QtCore sources not available. test disabled")
+ TEMPLATE=subdirs
+}
diff --git a/tests/auto/headersclean/qt_headersclean_headers.h b/tests/auto/headersclean/qt_headersclean_headers.h
new file mode 100644
index 00000000..c840f6e8
--- /dev/null
+++ b/tests/auto/headersclean/qt_headersclean_headers.h
@@ -0,0 +1,47 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** GNU Lesser General Public License Usage
+** 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.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU General
+** Public License version 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 the GNU General
+** Public License version 3.0 requirements will be met:
+** http://www.gnu.org/copyleft/gpl.html.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QT_HEADERSCLEAN_HEADERS
+#define QT_HEADERSCLEAN_HEADERS
+
+#include <QtQuick1>
+
+#endif