Doomseeker
Wadseeker
Download
Tracker
Git
Docs
Main Page
Plugin API
Related Pages
Modules
Classes
Files
File List
File Members
src
core
tests
testruns.cpp
1
//------------------------------------------------------------------------------
2
// testruns.cpp
3
//------------------------------------------------------------------------------
4
//
5
// This library is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU Lesser General Public
7
// License as published by the Free Software Foundation; either
8
// version 2.1 of the License, or (at your option) any later version.
9
//
10
// This library is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
// Lesser General Public License for more details.
14
//
15
// You should have received a copy of the GNU Lesser General Public
16
// License along with this library; if not, write to the Free Software
17
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
// 02110-1301 USA
19
//
20
//------------------------------------------------------------------------------
21
// Copyright (C) 2010 "Zalewa" <zalewapl@gmail.com>
22
//------------------------------------------------------------------------------
23
#include "testruns.h"
24
#include "tests/testdatapaths.h"
25
#include "tests/testini.h"
26
#include "tests/testircisupportparser.h"
27
#include "tests/testplayer.h"
28
#include "tests/teststrings.h"
29
#include "tests/testutf8splitter.h"
30
31
TestCore
* TestRuns::pTestCore = NULL;
32
33
void
TestRuns::callTests()
34
{
35
// DataPaths
36
pTestCore->
executeTest
(
new
TestDataPathsAppDataDirectoryAccess
(
false
));
37
pTestCore->
executeTest
(
new
TestDataPathsAppDataDirectoryAccess
(
true
));
38
39
pTestCore->
executeTest
(
new
TestDataPathsAppDataDirectoryWrite
(
false
));
40
pTestCore->
executeTest
(
new
TestDataPathsAppDataDirectoryWrite
(
true
));
41
42
// INI
43
// Note: All of these tests may fail if TestReadINI fails.
44
pTestCore->
executeTest
(
new
TestReadINI
());
45
pTestCore->
executeTest
(
new
TestReadINIVariable
());
46
pTestCore->
executeTest
(
new
TestDeleteINISection
());
47
pTestCore->
executeTest
(
new
TestDeleteINIVariable
());
48
pTestCore->
executeTest
(
new
TestStringsWrapUrls
());
49
50
pTestCore->
executeTest
(
new
TestIRCISupportPrefix
());
51
pTestCore->
executeTest
(
new
TestIRCISupportNoPrefix
());
52
53
// Misc.
54
pTestCore->
executeTest
(
new
TestUtf8Splitter
());
55
pTestCore->
executeTest
(
new
TestPlayerNameColorStrip
());
56
}
TestDeleteINISection
Definition:
testini.h:74
TestReadINI
Definition:
testini.h:44
TestStringsWrapUrls
Definition:
teststrings.h:28
TestIRCISupportPrefix
Definition:
testircisupportparser.h:29
TestDataPathsAppDataDirectoryWrite
Definition:
testdatapaths.h:39
TestUtf8Splitter
Definition:
testutf8splitter.h:28
TestDeleteINIVariable
Definition:
testini.h:63
TestPlayerNameColorStrip
Definition:
testplayer.h:28
TestCore::executeTest
void executeTest(TestUnitBase *pTest)
Definition:
testcore.cpp:37
TestDataPathsAppDataDirectoryAccess
Definition:
testdatapaths.h:28
TestReadINIVariable
Definition:
testini.h:52
TestIRCISupportNoPrefix
Definition:
testircisupportparser.h:40
TestCore
Core for developer tests.
Definition:
testcore.h:48
Doomseeker © 2009-2023 The Doomseeker Team