Skip to content

Commit

Permalink
Remove iso_codes.v4.11.0.any.tar.gz, download instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti committed Jan 8, 2024
1 parent 198e4bb commit c7d5bdd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ ArgTools = "1.1"
julia = "1.3"

[extras]
CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193"
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SimpleBufferStream = "777ac1f9-54b0-4bf8-805c-2214025038e7"
Tar_jll = "9b64493d-8859-5bf3-93d7-7c32dd38186f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193"

[targets]
test = ["Random", "SimpleBufferStream", "Tar_jll", "Test", "CodecZlib"]
test = ["Random", "SimpleBufferStream", "Tar_jll", "Test", "CodecZlib", "Downloads"]
Binary file removed test/data/iso_codes.v4.11.0.any.tar.gz
Binary file not shown.
5 changes: 3 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ end
Tar.tree_hash(hdr->false, tar, algorithm="git-sha256", copy_symlinks=true)
end
NON_STDLIB_TESTS && begin
open(GzipDecompressorStream, "data/iso_codes.v4.11.0.any.tar.gz") do io
iso_codes_tarball = Downloads.download("https://github.com/JuliaBinaryWrappers/iso_codes_jll.jl/releases/download/iso_codes-v4.11.0+0/iso_codes.v4.11.0.any.tar.gz")
open(GzipDecompressorStream, iso_codes_tarball) do io
@test Tar.tree_hash(io) == "71f68a3d55d73f2e15a3969c241fae2349b1feb5"
end
open(GzipDecompressorStream, "data/iso_codes.v4.11.0.any.tar.gz") do io
open(GzipDecompressorStream, iso_codes_tarball) do io
@test Tar.tree_hash(io; copy_symlinks=true) == "409d6ac4c02dae43ff4fe576b5c5820d0386fb3f"
end
end
Expand Down
1 change: 1 addition & 0 deletions test/setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const NON_STDLIB_TESTS = Main == @__MODULE__
if NON_STDLIB_TESTS
using SimpleBufferStream
using CodecZlib
using Downloads

using Tar_jll
if isdefined(Tar_jll, :tar)
Expand Down

0 comments on commit c7d5bdd

Please sign in to comment.