#!/bin/sh # h5_check_interface_compatibility # Checks ABI compatibility between two installations of HDF5. ################## # USAGE function # ################## USAGE() { cat <$old_ver"\ "$path_to_old/include"\ "$path_to_old/lib"\ > old.xml echo "$new_ver"\ "$path_to_new/include"\ "$path_to_new/lib"\ > new.xml ########################## # Run compatibility tool # ########################## echo Running ABI Compatibility Tool ... perl $abitool -l hdf5 -d1 old.xml -d2 new.xml >& abilog #grep result abilog failed=`grep INCOMPATIBLE abilog` if test ! "$failed"; then echo "Libraries are compatible." else echo "Libraries are NOT compatible!" fi ################### # Publish Results # ################### if test ! $loc; then loc="./report" mkdir report fi cp compat_reports/hdf5/${old_ver}_to_${new_ver}/compat_report.html ${loc} echo Report has been posted to $loc ########################################### # Remove other extraneous generated files # ########################################### rm -r old.xml new.xml logs compat_reports abilog