~ubuntu-branches/ubuntu/maverick/qt4-x11/maverick-security

« back to all changes in this revision

Viewing changes to tests/auto/headers/tst_headers.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-07-06 02:43:04 UTC
  • mfrom: (1.1.32 upstream)
  • Revision ID: james.westby@ubuntu.com-20100706024304-xnrnlzeq0r5nggnb
Tags: 4:4.7.0~beta1+git20100706-0ubuntu1
* New upstream snapshot
  - Refresh kubuntu patches
  - libqt4-help replaces qt4-dev-tools (<< 4:4.7.0~beta1+git20100706)
  - qt4-designer replaces qt4-dev-tools (<< 4:4.7.0~beta1+git20100706)
  - Disable kubuntu_08_add_missing_bold_style.diff
  - Disable kubuntu_09_use_ft_glyph_embolden_to_fake_bold.diff
  - New packages:
    - qt4-qmlviewer, which replaces qt4-dev-tools
    - libqt4-declarative-{particles, gestures, folderlistmodel} which
      replaces libqt4-declarative (<< 4:4.7.0~beta1+git20100706)
* Merge with Debian git (unreleased) remaining changes:
  - Do not package firebird and ibase packages, remove from debian/rules and
    debian/control
  - libqt4-sql-ibase not recommend for libqt4-sql
  - libqtgui4: suggest, not recommend, qt4-qtconfig
  - Build with -no-phonon
  - Do not package libqt4-phonon
  - Do not add libpulse-dev to build-depends
  - Do not package libqt4-webkit transitional package
  - Build with -multimedia for now
    - Keep libqt4-multimedia package in debian/control
    - Keep libqt4-multimedia.{install, symbols, lintian-overrides}
  - libqt4-dev recommends libqt4-webkit
  - Build packages with lzma compression with override_dh_builddeb
  - Rules to remove po dir in clean
  - Add MessagesQt.sh
  - Rules to create Messages.sh link to MessagesQt.sh and rules to create po
    dir and exectue extract-messages.sh in common-install-prehook-impl
  - Rules to remove Messages.sh link
  - Make libqt4-dev depend on libx11-dev
  - In debian/rules Set DEB_HOST_ARCH and
    DEB_HOST_ARCH_OS. Configure with "-arch armv6" option on ARM
  - Add Kubuntu patches:
    - kubuntu_08_add_missing_bold_style.diff
    - kubuntu_09_use_ft_glyph_embolden_to_fake_bold.diff
    - kubuntu_10_ibus_input_method.diff
    - kubuntu_12_fix_stack_protector.diff
    - kubuntu_14_qtdemos_compile_failure.diff
    - kubuntu_15_appmenu.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
                                const QStringList dirFilters,
65
65
                                const QRegExp &exclude);
66
66
    static QStringList getHeaders(const QString &path);
67
 
    static QStringList getSourceFiles(const QString &path);
 
67
    static QStringList getQmlFiles(const QString &path);
 
68
    static QStringList getCppFiles(const QString &path);
68
69
    static QStringList getQDocFiles(const QString &path);
69
70
 
70
71
    void allSourceFilesData();
78
79
 
79
80
tst_Headers::tst_Headers() :
80
81
    copyrightPattern("\\*\\* Copyright \\(C\\) 20[0-9][0-9] Nokia Corporation and/or its subsidiary\\(-ies\\)."),
81
 
    licensePattern("\\*\\* \\$QT_BEGIN_LICENSE:(LGPL|BSD|3RDPARTY|LGPL-ONLY)\\$"),
 
82
    licensePattern("\\*\\* \\$QT_BEGIN_LICENSE:(LGPL|BSD|3RDPARTY|LGPL-ONLY|FDL)\\$"),
82
83
    moduleTest(QLatin1String("\\*\\* This file is part of the .+ of the Qt Toolkit."))
83
84
{
84
85
}
107
108
    return getFiles(path, QStringList("*.h"), QRegExp("^(?!ui_)"));
108
109
}
109
110
 
110
 
QStringList tst_Headers::getSourceFiles(const QString &path)
 
111
QStringList tst_Headers::getCppFiles(const QString &path)
111
112
{
112
113
    return getFiles(path, QStringList("*.cpp"), QRegExp("^(?!(moc_|qrc_))"));
113
114
}
114
115
 
 
116
QStringList tst_Headers::getQmlFiles(const QString &path)
 
117
{
 
118
    return getFiles(path, QStringList("*.qml"), QRegExp("."));
 
119
}
 
120
 
115
121
QStringList tst_Headers::getQDocFiles(const QString &path)
116
122
{
117
123
    return getFiles(path, QStringList("*.qdoc"), QRegExp("."));
153
159
    };
154
160
 
155
161
    for (int i = 0; i < sizeof(subdirs) / sizeof(subdirs[0]); ++i) {
156
 
        sourceFiles << getSourceFiles(qtSrcDir + subdirs[i]);
 
162
        sourceFiles << getCppFiles(qtSrcDir + subdirs[i]);
 
163
        if (subdirs[i] != QLatin1String("/tests"))
 
164
            sourceFiles << getQmlFiles(qtSrcDir + subdirs[i]);
157
165
        sourceFiles << getHeaders(qtSrcDir + subdirs[i]);
158
166
        sourceFiles << getQDocFiles(qtSrcDir + subdirs[i]);
159
167
    }