-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathruntests.jl
More file actions
30 lines (24 loc) · 797 Bytes
/
runtests.jl
File metadata and controls
30 lines (24 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env julia
##
## Run Circuitscape.jl large test problems and report timings.
##
## Usage:
## cd BigTests && julia --project=. runtests.jl
using Circuitscape
const BIG_TESTS_ROOT = @__DIR__
const BIG_TESTS_CFG = joinpath(BIG_TESTS_ROOT, "verify", "config_files")
# Config files use paths relative to repo root
cd(BIG_TESTS_ROOT)
function run_test(name, configfile)
println("=" ^ 60)
println("Running: $name ($configfile)")
println("=" ^ 60)
t = @elapsed result = compute(configfile)
println("Completed $name in $(round(t, digits=2)) seconds")
println()
return result
end
# 250k pairwise (polygons, 2 focal regions)
run_test("250k", joinpath(BIG_TESTS_CFG, "250k.ini"))
# 1m pairwise (20 focal points)
run_test("1m", joinpath(BIG_TESTS_CFG, "1m.ini"))