### copy molecule AT_SETUP([Molecules - Copy molecule with Undo/Redo]) AT_KEYWORDS([Molecules]) AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/test.xyz test-copy.xyz], 0) AT_CHECK([../../molecuilder -i test-copy.xyz --copy-molecule 0 --position "0,0,10"], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' test-copy.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/post/test-copy.xyz], 0, [ignore], [ignore]) AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/test.xyz test-copy.xyz], 0) AT_CHECK([../../molecuilder -i test-copy.xyz --copy-molecule 0 --position "0,0,10" --undo], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' test-copy.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/test.xyz], 0, [ignore], [ignore]) AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/test.xyz test-copy.xyz], 0) AT_CHECK([../../molecuilder -i test-copy.xyz --copy-molecule 0 --position "0,0,10" --undo --redo], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' test-copy.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/post/test-copy.xyz], 0, [ignore], [ignore]) AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/tensid.* .], 0) AT_CHECK([../../molecuilder --parse-tremolo-potentials tensid.potentials -i tensid.data --copy-molecule 0 --position "0,0,10"], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' tensid.data ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/post/tensid.data], 0, [ignore], [ignore]) AT_CLEANUP