diff --git a/test/automaton_abc/distributed_R1.jl b/test/automaton_abc/distributed_R1.jl index e88621aea1f011285e302b67380699bc17f9163f..ab9338b6ac646573c039da90b4966178c6475097 100644 --- a/test/automaton_abc/distributed_R1.jl +++ b/test/automaton_abc/distributed_R1.jl @@ -1,20 +1,8 @@ -using MarkovProcesses using Distributed addprocs(2) -module_path = get_module_path() -@everywhere module_path = $module_path -@everywhere push!(LOAD_PATH, "$(module_path)/src") @everywhere using MarkovProcesses -#= -@everywhere begin - path_module = $(path_module) - push!(LOAD_PATH, path_module) - using MarkovProcesses - load_model("ER") - load_automaton("automaton_F") -end -=# + load_model("ER") load_automaton("automaton_F") A_F_R1 = create_automaton_F(ER, 50.0, 75.0, 0.025, 0.05, :P) diff --git a/test/automaton_abc/distributed_abc_euclidean_distance_automaton.jl b/test/automaton_abc/distributed_abc_euclidean_distance_automaton.jl index d3263cbbede8a250785c08e30c0f49663dacdaf7..2bfa8cd3fd4fd8714a2694fb61f27340ead99573 100644 --- a/test/automaton_abc/distributed_abc_euclidean_distance_automaton.jl +++ b/test/automaton_abc/distributed_abc_euclidean_distance_automaton.jl @@ -1,10 +1,6 @@ -using MarkovProcesses using Distributed addprocs(2) -module_path = get_module_path() -@everywhere module_path = $module_path -@everywhere push!(LOAD_PATH, "$(module_path)/src") @everywhere using MarkovProcesses import LinearAlgebra: dot diff --git a/test/runtests.jl b/test/runtests.jl index 708e8086b82b92ac526601382cb0236578b4b5fc..32faa2d754ba6b0bd6839e1feb77f1a5bb3e02da 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,4 +1,8 @@ +using Distributed +using Test +using MarkovProcesses + include("run_unit.jl") include("run_simulation.jl") include("run_dist_lp.jl") diff --git a/test/unit/distributed_simulation.jl b/test/unit/distributed_simulation.jl index e3504ac6d4fe2c03bb67d0c6ff3546b6d59e366f..a4561a5d9728fa0ff42f79683fa00db7a63fd22f 100644 --- a/test/unit/distributed_simulation.jl +++ b/test/unit/distributed_simulation.jl @@ -1,12 +1,7 @@ using Distributed using MarkovProcesses -# A bunch of code to define the package on the workers -# because they are created after the execution of Julia addprocs(2) -module_path = get_module_path() -@everywhere module_path = $module_path -@everywhere push!(LOAD_PATH, "$(module_path)/src") @everywhere using MarkovProcesses test_all = true