Skip to content

Commit

Permalink
mark SZIP tests on Windows as broken
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Sep 6, 2023
1 parent 0efb1cc commit cbf545b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions test/filter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,10 @@ 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)
@static if Sys.iswindows() ||
VERSION v"1.6" ||
HDF5.API.h5_get_libversion() >= v"1.14.0"
# SZIP via libaec_jll should be available in HDF5_jll 1.14 builds and beyond
@test HDF5.API.h5z_filter_avail(HDF5.API.H5Z_FILTER_SZIP)
elseif HDF5.API.h5_get_libversion() >= v"1.12.0"
# These are missing in the macOS and Linux JLLs for h5 version 1.12+
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
@test HDF5.API.h5z_filter_avail(H5Z_FILTER_BZIP2)
@test HDF5.API.h5z_filter_avail(H5Z_FILTER_LZ4)
Expand Down

0 comments on commit cbf545b

Please sign in to comment.