-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled tests by adding opencv_extra as a lazy artifact
- Loading branch information
Showing
8 changed files
with
42 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[opencv_extra] | ||
git-tree-sha1 = "6d7d3f9fcc70a7a13e6617cea255f143df9957db" | ||
lazy = true | ||
|
||
[[opencv_extra.download]] | ||
sha256 = "f1aff8497dbb84088b505c7dbda66480ac94ff2cae1b1db7f30c49781035b427" | ||
url = "https://github.com/opencv/opencv_extra/archive/refs/tags/4.5.3.tar.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[deps] | ||
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33" | ||
LazyArtifacts = "4af54fe1-eca0-43a8-85a7-787d91b784e3" | ||
OpenCV = "f878e3a2-a245-4720-8660-60795d644f2a" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
LibGit2 = "76f85450-5226-5b5a-8eaa-529ad045b433" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,19 @@ | ||
using Artifacts | ||
using LazyArtifacts | ||
using OpenCV | ||
using Test | ||
using Pkg.Artifacts | ||
import LibGit2 | ||
|
||
|
||
if "OPENCV_TEST_DATA_PATH" in keys(ENV) | ||
test_dir = joinpath(ENV["OPENCV_TEST_DATA_PATH"], "cv") | ||
|
||
else | ||
print("Skipping tests as test data not found.") | ||
exit(0) | ||
|
||
# artifact_toml = joinpath(@__DIR__, "Artifacts.toml") | ||
# testdata_hash = artifact_hash("OPENCV_TEST_DATA_PATH", artifact_toml) | ||
|
||
# if testdata_hash === nothing || !artifact_exists(testdata_hash) | ||
# testdata_hash = create_artifact() do artifact_dir | ||
# opencv_extra_zip = "https://github.com/opencv/opencv_extra/archive/refs/heads/master.zip" | ||
# download(opencv_extra_zip, artifact_dir) | ||
|
||
# LibGit2.clone(opencv_extra_git, artifact_dir) | ||
# end | ||
# bind_artifact!(artifact_toml, "OPENCV_TEST_DATA_PATH", testdata_hash) | ||
# end | ||
|
||
# test_dir = joinpath(artifact_path(testdata_hash), "opencv_extra", "cv") | ||
|
||
opencv_extra_path = first(readdir(artifact"opencv_extra"; join = true)) | ||
test_dir = joinpath(opencv_extra_path, "testdata", "cv") | ||
end | ||
|
||
|
||
include("test_mat.jl") | ||
include("test_feature2d.jl") | ||
include("test_imgproc.jl") | ||
include("test_objdetect.jl") | ||
include("test_dnn.jl") | ||
@testset "OpenCV" begin | ||
include("test_mat.jl") | ||
include("test_feature2d.jl") | ||
include("test_imgproc.jl") | ||
include("test_objdetect.jl") | ||
include("test_dnn.jl") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters