equal
deleted
inserted
replaced
75 QString qtSrcDir; |
75 QString qtSrcDir; |
76 }; |
76 }; |
77 |
77 |
78 tst_Headers::tst_Headers() : |
78 tst_Headers::tst_Headers() : |
79 copyrightPattern("\\*\\* Copyright \\(C\\) 20[0-9][0-9] Nokia Corporation and/or its subsidiary\\(-ies\\)."), |
79 copyrightPattern("\\*\\* Copyright \\(C\\) 20[0-9][0-9] Nokia Corporation and/or its subsidiary\\(-ies\\)."), |
80 licensePattern("\\*\\* \\$QT_BEGIN_LICENSE:(LGPL|BSD|3RDPARTY)\\$"), |
80 licensePattern("\\*\\* \\$QT_BEGIN_LICENSE:(LGPL|BSD|3RDPARTY|LGPL-ONLY)\\$"), |
81 moduleTest(QLatin1String("\\*\\* This file is part of the .+ of the Qt Toolkit.")) |
81 moduleTest(QLatin1String("\\*\\* This file is part of the .+ of the Qt Toolkit.")) |
82 { |
82 { |
83 } |
83 } |
84 |
84 |
85 QStringList tst_Headers::getFiles(const QString &path, |
85 QStringList tst_Headers::getFiles(const QString &path, |
215 int i = 0; |
215 int i = 0; |
216 |
216 |
217 QCOMPARE(content.at(i++), QString("/****************************************************************************")); |
217 QCOMPARE(content.at(i++), QString("/****************************************************************************")); |
218 if (licenseType != "3RDPARTY") { |
218 if (licenseType != "3RDPARTY") { |
219 QCOMPARE(content.at(i++), QString("**")); |
219 QCOMPARE(content.at(i++), QString("**")); |
220 if (sourceFile.endsWith("/tests/auto/qabstractitemmodel/dynamictreemodel.cpp") |
220 if (sourceFile.endsWith("/tests/auto/modeltest/dynamictreemodel.cpp") |
221 || sourceFile.endsWith("/tests/auto/qabstractitemmodel/dynamictreemodel.h") |
221 || sourceFile.endsWith("/tests/auto/modeltest/dynamictreemodel.h") |
222 || sourceFile.endsWith("/src/network/kernel/qnetworkproxy_p.h")) |
222 || sourceFile.endsWith("/src/network/kernel/qnetworkproxy_p.h")) |
223 { |
223 { |
224 // These files are not copyrighted by Nokia. |
224 // These files are not copyrighted by Nokia. |
225 ++i; |
225 ++i; |
226 } else { |
226 } else { |