Add libjxl tests
@@ -69,7 +69,16 @@ outputs:
script: install.bat # [win]
test:
command:
- - test -f $PREFIX/lib/libjxl.a # [not win]
+ - test -f "$PREFIX"/include/jxl/encode.h # [not win]
+ - test -f "$PREFIX"/lib/libjxl"$SHLIB_EXT" # [not win]
+ - test ! -f "$PREFIX"/bin/cjxl # [not win]
+ - if not exist %LIBRARY_INC%\\jxl\\encode.h exit 1 # [win]
+ - if not exist %LIBRARY_LIB%\\libjxl.dll exit 1 # [win]
+ - if not exist %LIBRARY_BIN%\\cjxl.exe exit 1 # [win]
+
+ # CFEP-18: Static libs shouldn't be part of the main package
+ - test ! -f "$PREFIX"/lib/libjxl.a # [not win]
+ - if exist %LIBRARY_LIB%\\libjxl-static.lib exit 1 # [win]
- name: libjxl-tools
requirements:
build:
