GUITESTS: Move testdata to data-subdirectory.
This commit is contained in:
parent
82e8e1a737
commit
d5652ee3cc
|
@ -23,14 +23,14 @@
|
||||||
|
|
||||||
void TestProjectFile::loadInexisting()
|
void TestProjectFile::loadInexisting()
|
||||||
{
|
{
|
||||||
const QString filepath(QString(SRCDIR) + "/../projectfiles/foo.cppcheck");
|
const QString filepath(QString(SRCDIR) + "/../data/projectfiles/foo.cppcheck");
|
||||||
ProjectFile pfile(filepath);
|
ProjectFile pfile(filepath);
|
||||||
QCOMPARE(pfile.Read(), false);
|
QCOMPARE(pfile.Read(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestProjectFile::loadSimple()
|
void TestProjectFile::loadSimple()
|
||||||
{
|
{
|
||||||
const QString filepath(QString(SRCDIR) + "/../projectfiles/simple.cppcheck");
|
const QString filepath(QString(SRCDIR) + "/../data/projectfiles/simple.cppcheck");
|
||||||
ProjectFile pfile(filepath);
|
ProjectFile pfile(filepath);
|
||||||
QVERIFY(pfile.Read());
|
QVERIFY(pfile.Read());
|
||||||
QCOMPARE(pfile.GetRootPath(), QString("../.."));
|
QCOMPARE(pfile.GetRootPath(), QString("../.."));
|
||||||
|
@ -52,7 +52,7 @@ void TestProjectFile::loadSimple()
|
||||||
|
|
||||||
void TestProjectFile::loadSimpleNoroot()
|
void TestProjectFile::loadSimpleNoroot()
|
||||||
{
|
{
|
||||||
const QString filepath(QString(SRCDIR) + "/../projectfiles/simple_noroot.cppcheck");
|
const QString filepath(QString(SRCDIR) + "/../data/projectfiles/simple_noroot.cppcheck");
|
||||||
ProjectFile pfile(filepath);
|
ProjectFile pfile(filepath);
|
||||||
QVERIFY(pfile.Read());
|
QVERIFY(pfile.Read());
|
||||||
QCOMPARE(pfile.GetRootPath(), QString());
|
QCOMPARE(pfile.GetRootPath(), QString());
|
||||||
|
|
|
@ -37,13 +37,13 @@ void TestXmlReport::testUnquoteMessage()
|
||||||
|
|
||||||
void TestXmlReport::testGetVersion1()
|
void TestXmlReport::testGetVersion1()
|
||||||
{
|
{
|
||||||
const QString filepath(QString(SRCDIR) + "/../xmlfiles/xmlreport_v1.xml");
|
const QString filepath(QString(SRCDIR) + "/../data/xmlfiles/xmlreport_v1.xml");
|
||||||
QCOMPARE(XmlReport::determineVersion(filepath), 1);
|
QCOMPARE(XmlReport::determineVersion(filepath), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestXmlReport::testGetVersion2()
|
void TestXmlReport::testGetVersion2()
|
||||||
{
|
{
|
||||||
const QString filepath(QString(SRCDIR) + "/../xmlfiles/xmlreport_v2.xml");
|
const QString filepath(QString(SRCDIR) + "/../data/xmlfiles/xmlreport_v2.xml");
|
||||||
QCOMPARE(XmlReport::determineVersion(filepath), 2);
|
QCOMPARE(XmlReport::determineVersion(filepath), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
void TestXmlReportV1::readXml()
|
void TestXmlReportV1::readXml()
|
||||||
{
|
{
|
||||||
const QString filepath(QString(SRCDIR) + "/../xmlfiles/xmlreport_v1.xml");
|
const QString filepath(QString(SRCDIR) + "/../data/xmlfiles/xmlreport_v1.xml");
|
||||||
XmlReportV1 report(filepath);
|
XmlReportV1 report(filepath);
|
||||||
QVERIFY(report.Open());
|
QVERIFY(report.Open());
|
||||||
QList<ErrorItem> errors = report.Read();
|
QList<ErrorItem> errors = report.Read();
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
void TestXmlReportV2::readXml()
|
void TestXmlReportV2::readXml()
|
||||||
{
|
{
|
||||||
const QString filepath(QString(SRCDIR) + "/../xmlfiles/xmlreport_v2.xml");
|
const QString filepath(QString(SRCDIR) + "/../data/xmlfiles/xmlreport_v2.xml");
|
||||||
XmlReportV2 report(filepath);
|
XmlReportV2 report(filepath);
|
||||||
QVERIFY(report.Open());
|
QVERIFY(report.Open());
|
||||||
QList<ErrorItem> errors = report.Read();
|
QList<ErrorItem> errors = report.Read();
|
||||||
|
|
Loading…
Reference in New Issue