SpiecsEngine
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
/**
2
* @file main.cpp.
3
* @brief The SpicesTest::main Class Implementation.
4
* @author Spices.
5
*/
6
7
#
include
<
gmock
/
gmock
.
h
>
8
#
include
"Instrumentor.h"
9
10
/* Container */
11
#
include
"Core/Container/DirectedAcyclicGraph_test.h"
12
#
include
"Core/Container/KDTree_test.h"
13
#
include
"Core/Container/LinkedUnorderedMap_test.h"
14
#
include
"Core/Container/RuntimeMemoryBlock_test.h"
15
#
include
"Core/Container/Tuple_test.h"
16
#
include
"Core/Container/FreeList_test.h"
17
#
include
"Core/Container/SpanList_test.h"
18
#
include
"Core/Container/RadixTrie_test.h"
19
#
include
"Core/Container/Vector_test.h"
20
#
include
"Core/Container/BehaveStateList_test.h"
21
#
include
"Core/Container/Tree_test.h"
22
23
/* Delegate */
24
#
include
"Core/Delegate/Delegate_test.h"
25
26
/* Library */
27
#
include
"Core/Library/ClassLibrary_test.h"
28
#
include
"Core/Library/FileLibrary_test.h"
29
#
include
"Core/Library/MemoryLibrary_test.h"
30
#
include
"Core/Library/ProcessLibrary_test.h"
31
#
include
"Core/Library/StringLibrary_test.h"
32
#
include
"Core/Library/ThreadLibrary_test.h"
33
34
/* Math */
35
#
include
"Core/Math/Math_test.h"
36
37
/* Memory */
38
#
include
"Core/Memory/ObjectPool_test.h"
39
#
include
"Core/Memory/ThreadCache_test.h"
40
#
include
"Core/Memory/PageCache_test.h"
41
#
include
"Core/Memory/CentralCache_test.h"
42
#
include
"Core/Memory/MemoryPool_test.h"
43
44
/* Reflect */
45
#
include
"Core/Reflect/StaticReflect/VariableTraits_test.h"
46
#
include
"Core/Reflect/StaticReflect/FunctionTraits_test.h"
47
#
include
"Core/Reflect/StaticReflect/TypeList_test.h"
48
#
include
"Core/Reflect/StaticReflect/FieldTraits_test.h"
49
#
include
"Core/Reflect/StaticReflect/ClassTraits_test.h"
50
#
include
"Core/Reflect/StaticReflect/IsConst_test.h"
51
#
include
"Core/Reflect/StaticReflect/RemovePointer_test.h"
52
#
include
"Core/Reflect/StaticReflect/IsPointer_test.h"
53
54
/* Thread */
55
#
include
"Core/Thread/ThreadPoolFixed_test.h"
56
#
include
"Core/Thread/ThreadPoolCached_test.h"
57
#
include
"Core/Thread/Semaphore_test.h"
58
59
/* Timer */
60
#
include
"Core/Timer/ScopeTimer_test.h"
61
62
/* NetWork */
63
#
include
"Network/Buffer_test.h"
64
#
include
"Network/EPollPoller_test.h"
65
#
include
"Network/InetAddress_test.h"
66
#
include
"Network/Socket_test.h"
67
#
include
"Network/TcpServer_test.h"
68
69
/* Vulkan */
70
#
include
"RenderAPI/Vulkan/VulkanImage_test.h"
71
#
include
"RenderAPI/Vulkan/VulkanRenderBackend_test.h"
72
73
/**
74
* @brief The Entry of SpicesTest.
75
*/
76
int
main
(
int
argc,
char
** argv)
77
{
78
try
79
{
80
SPICESTEST_PROFILE_BEGIN_SESSION
(
"SpicesTestInstruments"
,
"SpiceslProfile-SpicesTest.json"
);
81
82
/**
83
* @brief Init GoogleMock.
84
*/
85
testing::InitGoogleMock(&argc, argv);
86
87
/**
88
* @brief Execute all unit tests.
89
*/
90
const
int
result = RUN_ALL_TESTS();
91
92
SPICESTEST_PROFILE_END_SESSION
();
93
}
94
catch
(
const
std::exception& ex)
95
{
96
std::cout << ex.what() << std::endl;
97
return
EXIT_FAILURE;
98
}
99
100
return
EXIT_SUCCESS;
101
}
SPICESTEST_PROFILE_END_SESSION
#define SPICESTEST_PROFILE_END_SESSION()
Definition
Instrumentor.h:229
SPICESTEST_PROFILE_BEGIN_SESSION
#define SPICESTEST_PROFILE_BEGIN_SESSION(name, filepath)
Definition
Instrumentor.h:228
main
int main(int argc, char **argv)
The Entry of SpicesTest.
Definition
main.cpp:76
SpicesTest
src
main.cpp
Generated on Sun Mar 8 2026 10:24:47 for SpiecsEngine by
1.10.0