

set -ex



export PYLIB_EXT=`$PYTHON -c 'import sysconfig as s; print(s.get_config_var("EXT_SUFFIX"))'`
test -f $PREFIX/bin/dftd4
test -L $PREFIX/lib/libdftd4$SHLIB_EXT
test -f $SP_DIR/dftd4/parameters.toml
test -f $SP_DIR/dftd4/_libdftd4$PYLIB_EXT
dftd4 --version
ldd -r -u $PREFIX/bin/dftd4
ldd $PREFIX/lib/libdftd4$SHLIB_EXT
ldd $SP_DIR/dftd4/_libdftd4$PYLIB_EXT
conda inspect linkages --show-files --groupby=dependency dftd4
pytest -rws --capture=sys --ignore=$SP_DIR/dftd4/test_ase.py $SP_DIR/dftd4
exit 0
