File tree Expand file tree Collapse file tree 8 files changed +51
-8
lines changed Expand file tree Collapse file tree 8 files changed +51
-8
lines changed Original file line number Diff line number Diff line change 34
34
#include " Pregel/MessageFormat.h"
35
35
#include " Pregel/VertexComputation.h"
36
36
37
+ #include " Inspection/VPack.h"
38
+
37
39
namespace arangodb ::pregel {
38
40
39
41
// Speaker-listerner Label propagation
Original file line number Diff line number Diff line change 22
22
// //////////////////////////////////////////////////////////////////////////////
23
23
24
24
#pragma once
25
- #include < Inspection/VPack .h>
25
+ #include < Inspection/VPackWithErrorT .h>
26
26
27
27
#include < ostream>
28
28
#include < fmt/core.h>
Original file line number Diff line number Diff line change 28
28
#include < numeric>
29
29
#include < string>
30
30
31
- #include < Inspection/VPack .h>
31
+ #include < Inspection/VPackWithErrorT .h>
32
32
#include < Inspection/Transformers.h>
33
33
34
- #include < Cluster/ClusterTypes.h>
35
-
36
34
#include < Pregel/Common.h>
37
35
#include < Pregel/Status/Status.h>
38
36
37
+ // TODO: This is a hack to not have to include ClusterTypes.h
38
+ // which in turn pulls in Result.h which requires building
39
+ // of voc-errors.
40
+ // First step: split ClusterTypes.h into sensible bits
41
+ // Second step: only include the type aliases here
42
+ namespace arangodb {
43
+ typedef std::string ServerID; // ID of a server
44
+ }
45
+
39
46
namespace arangodb ::pregel {
40
47
41
48
struct AccumulatedConductorStatus {
Original file line number Diff line number Diff line change 25
25
#include < string>
26
26
#include < chrono>
27
27
28
- #include < Inspection/VPack.h>
28
+ #include < Inspection/VPackWithErrorT.h>
29
+ #include < CrashHandler/CrashHandler.h>
30
+ #include < Assertions/ProdAssert.h>
29
31
30
32
namespace arangodb ::pregel {
31
33
Original file line number Diff line number Diff line change 29
29
#include < optional>
30
30
#include < string>
31
31
32
- #include < Inspection/VPack .h>
32
+ #include < Inspection/VPackWithErrorT .h>
33
33
#include < Inspection/Transformers.h>
34
34
35
35
#include < Pregel/Common.h>
Original file line number Diff line number Diff line change 39
39
40
40
#include "AssertionConditionalLogger.h"
41
41
42
+ #include "Basics/system-compiler.h"
43
+
42
44
// Always evaluates expr, even if the assertion does not fail
43
45
#define ADB_PROD_ASSERT (expr ) /*GCOVR_EXCL_LINE*/ \
44
46
::arangodb::debug::AssertionConditionalLogger{ \
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ add_subdirectory(Zkd)
18
18
add_subdirectory (Graph )
19
19
add_subdirectory (Replication2 )
20
20
add_subdirectory (Futures )
21
+ add_subdirectory (Pregel )
21
22
22
23
# ----------------------------------------
23
24
# Link directories
@@ -233,9 +234,7 @@ set(ARANGODB_TESTS_SOURCES
233
234
Network/ConnectionPoolTest.cpp
234
235
Network/MethodsTest.cpp
235
236
Network/UtilsTest.cpp
236
- Pregel/DurationTest.cpp
237
237
Pregel/typedbuffer.cpp
238
- Pregel/StatusTest.cpp
239
238
ProgramOptions/InifileParserTest.cpp
240
239
ProgramOptions/ParametersTest.cpp
241
240
Replication/ReplicationClientsProgressTrackerTest.cpp
@@ -312,6 +311,7 @@ target_link_libraries(arangodbtests
312
311
arango_tests_graph
313
312
arango_tests_futures
314
313
arango_tests_zkd
314
+ arango_tests_pregel
315
315
arango_agency
316
316
arango_cluster_engine
317
317
arango_rocksdb
Original file line number Diff line number Diff line change
1
+ # note that typedbuffer.cpp is excluded intentionally
2
+ # since it seems to have a big dependency footprint;
3
+ # we intent to remove the TypedBuffer construct soon
4
+ add_library (arango_tests_pregel OBJECT
5
+ DurationTest.cpp
6
+ StatusTest.cpp )
7
+
8
+ target_include_directories (arango_tests_pregel
9
+ PRIVATE
10
+ ${PROJECT_SOURCE_DIR} /arangod
11
+ ${PROJECT_SOURCE_DIR} /lib )
12
+
13
+ target_link_libraries (arango_tests_pregel
14
+ PRIVATE
15
+ gtest
16
+ date_interface
17
+ velocypack
18
+ fmt )
19
+
20
+ add_executable (arangodbtests_pregel
21
+ EXCLUDE_FROM_ALL )
22
+
23
+ target_link_libraries (arangodbtests_pregel
24
+ gtest_main
25
+ arango_tests_pregel
26
+ arango_crashhandler_light
27
+ arango_assertions )
28
+
29
+ add_test (NAME pregel
30
+ COMMAND arangodbtests_pregel )
You can’t perform that action at this time.
0 commit comments