Use SHLIB_EXT to simplify tests
@@ -68,12 +68,9 @@ test:
commands:
- printf "%s\n" "${MAGPLUS_HOME:?MAGPLUS_HOME is not set}"
- which magjsonx
- - test -f $PREFIX/lib/libMagPlus.so # [linux]
- - test -f $PREFIX/lib/libMagPlusSingle.so # [linux]
- - test -f $PREFIX/lib/libMagPlusDouble.so # [linux]
- - test -f $PREFIX/lib/libMagPlus.dylib # [osx]
- - test -f $PREFIX/lib/libMagPlusSingle.dylib # [osx]
- - test -f $PREFIX/lib/libMagPlusDouble.dylib # [osx]
+ - test -f $PREFIX/lib/libMagPlus.${SHLIB_EXT} # [unix]
+ - test -f $PREFIX/lib/libMagPlusSingle.${SHLIB_EXT} # [unix]
+ - test -f $PREFIX/lib/libMagPlusDouble.${SHLIB_EXT} # [unix]
about:
home: https://software.ecmwf.int/wiki/display/MAGP/
