Skip to content

Commit

Permalink
ignore if prefs set
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Sep 6, 2023
1 parent cbf545b commit 788d9c4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/filter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ using HDF5
using HDF5.Filters
using Test
using H5Zblosc, H5Zlz4, H5Zbzip2, H5Zzstd
using Preferences

@static if VERSION >= v"1.6"
using H5Zbitshuffle
Expand Down Expand Up @@ -241,10 +242,12 @@ using HDF5.Filters: ExternalFilter, isavailable, isencoderenabled, isdecoderenab
@test HDF5.API.h5z_filter_avail(HDF5.API.H5Z_FILTER_NBIT)
@test HDF5.API.h5z_filter_avail(HDF5.API.H5Z_FILTER_SCALEOFFSET)
@test HDF5.API.h5z_filter_avail(HDF5.API.H5Z_FILTER_SHUFFLE)
if HDF5.API.h5_get_libversion() < v"1.14" || Sys.iswindows()
@test_broken HDF5.API.h5z_filter_avail(HDF5.API.H5Z_FILTER_SZIP)
else
@test HDF5.API.h5z_filter_avail(HDF5.API.H5Z_FILTER_SZIP)
if !Preferences.has_preference(HDF5, "libhdf5")
if HDF5.API.h5_get_libversion() < v"1.14" || Sys.iswindows()
@test_broken HDF5.API.h5z_filter_avail(HDF5.API.H5Z_FILTER_SZIP)
else
@test HDF5.API.h5z_filter_avail(HDF5.API.H5Z_FILTER_SZIP)
end
end
@test HDF5.API.h5z_filter_avail(H5Z_FILTER_BZIP2)
@test HDF5.API.h5z_filter_avail(H5Z_FILTER_LZ4)
Expand Down

0 comments on commit 788d9c4

Please sign in to comment.