diff --git a/Project.toml b/Project.toml index c73a4b0..09d56c5 100644 --- a/Project.toml +++ b/Project.toml @@ -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"] diff --git a/test/data/iso_codes.v4.11.0.any.tar.gz b/test/data/iso_codes.v4.11.0.any.tar.gz deleted file mode 100644 index ea93091..0000000 Binary files a/test/data/iso_codes.v4.11.0.any.tar.gz and /dev/null differ diff --git a/test/runtests.jl b/test/runtests.jl index aa83e87..8dfe365 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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 diff --git a/test/setup.jl b/test/setup.jl index 38e200c..3f2fc0a 100644 --- a/test/setup.jl +++ b/test/setup.jl @@ -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)