# # MoleCuilder - creates and alters molecular systems # Copyright (C) 2008-2012 University of Bonn # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # ### putrescine AT_SETUP([Non-convex Tesselations - putrescine]) AT_KEYWORDS([tesselation non-convex-envelope trianglematcher]) mol=putrescine file=${mol}.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/Tesselations/NonConvex/${mol}/pre/$file $file], 0) AT_CHECK([chmod u+w $file], 0) for RADIUS in 1.5 2 2.5 3 3.5 4 25; do output=NonConvexEnvelope-${mol}-${RADIUS}.dat AT_CHECK([../../molecuilder -i $file --select-molecule-by-id 0 -N ${RADIUS} --nonconvex-file $output], 0, [stdout], [stderr]) AT_CHECK([grep -E "^[0-9]* [0-9]* [0-9]*$" ${abs_top_srcdir}/tests/Tesselations/NonConvex/${mol}/post/$output | sort -n >reference-triangles.dat], 0, [ignore], [ignore]) AT_CHECK([grep -E "^[0-9]* [0-9]* [0-9]*$" $output | sort -n >new-triangles.dat], 0, [ignore], [ignore]) AT_CHECK([../../trianglematcher reference-triangles.dat new-triangles.dat], 0, [ignore], [ignore]) done AT_CLEANUP