-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtestdata.jl
More file actions
27 lines (23 loc) · 780 Bytes
/
testdata.jl
File metadata and controls
27 lines (23 loc) · 780 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
@testitem "testdata julia_main" begin
import Pkg: Artifacts.@artifact_str, ensure_artifact_installed
ensure_artifact_installed("rqatestdata", "Artifacts.toml")
testdatapath = joinpath(artifact"rqatestdata", "RQADeforestationTestData-2.0")
testdir = "tmp/testdata"
rm(testdir, recursive=true, force=true)
mkpath(testdir)
outdir = "$testdir/out.zarr"
indir = "$testdir/in"
cp(testdatapath, indir)
OLD_ARGS = ARGS[:]
copy!(ARGS, [
"--tile", "E051N018T3",
"--continent", "EU",
"--in-dir", indir,
"--out-dir", outdir,
])
# test normal execution
RQADeforestation.julia_main()
# test short cut implementation using cache files
RQADeforestation.julia_main()
copy!(ARGS, OLD_ARGS)
end