@@ -2,7 +2,7 @@ using Test
2
2
using GraphPlot # For plotting tests
3
3
using Neo4j
4
4
using DistributedFactorGraphs
5
- using IncrementalInference
5
+ using Pkg
6
6
7
7
# Instantiate the APIs that you would like to test here
8
8
# Can do duplicates with different parameters.
@@ -27,25 +27,34 @@ for api in apis
27
27
end
28
28
end
29
29
30
- apis = [
31
- GraphsDFG {NoSolverParams} (),
32
- LightDFG {NoSolverParams} (),
33
- # MetaGraphsDFG{NoSolverParams}(),
34
- # SymbolDFG{NoSolverParams}(),
35
- # CloudGraphsDFG{SolverParams}("localhost", 7474, "neo4j", "test",
36
- # "testUser", "testRobot", "testSession",
37
- # nothing,
38
- # nothing,
39
- # IncrementalInference.decodePackedType,
40
- # IncrementalInference.rebuildFactorMetadata!,
41
- # solverParams=SolverParams())
42
- ]
43
- for api in apis
44
- @testset " Testing Driver: $(typeof (api)) " begin
45
- @info " Testing Driver: $(api) "
46
- global dfg = deepcopy (api)
47
- include (" iifInterfaceTests.jl" )
30
+ if haskey (Pkg. installed (), " IncrementalInference" )
31
+ @info " ------------------------------------------------------------------------"
32
+ @info " These tests are using IncrementalInference to do additional driver tests"
33
+ @info " ------------------------------------------------------------------------"
34
+
35
+ using IncrementalInference
36
+ apis = [
37
+ GraphsDFG {NoSolverParams} (),
38
+ LightDFG {NoSolverParams} (),
39
+ # MetaGraphsDFG{NoSolverParams}(),
40
+ # SymbolDFG{NoSolverParams}(),
41
+ # CloudGraphsDFG{SolverParams}("localhost", 7474, "neo4j", "test",
42
+ # "testUser", "testRobot", "testSession",
43
+ # nothing,
44
+ # nothing,
45
+ # IncrementalInference.decodePackedType,
46
+ # IncrementalInference.rebuildFactorMetadata!,
47
+ # solverParams=SolverParams())
48
+ ]
49
+ for api in apis
50
+ @testset " Testing Driver: $(typeof (api)) " begin
51
+ @info " Testing Driver: $(api) "
52
+ global dfg = deepcopy (api)
53
+ include (" iifInterfaceTests.jl" )
54
+ end
48
55
end
56
+ else
57
+ @warn " Skipping IncrementalInference driver tests"
49
58
end
50
59
51
60
# Test that we don't export LightDFG and MetaGraphsDFG
0 commit comments