### Rotate around origin AT_SETUP([Molecules - Rotate around origin]) AT_KEYWORDS([molecules rotate-around-origin]) file=test.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz $file], 0) AT_CHECK([chmod u+w $file], 0) AT_CHECK([../../molecuilder -i $file --select-all-atoms --rotate-around-origin 90. --position "0,0,1"], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/post/test-rotated-z90.xyz], 0, [ignore], [ignore]) file=test.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz $file], 0) AT_CHECK([chmod u+w $file], 0) AT_CHECK([../../molecuilder -i $file --select-all-atoms --rotate-around-origin 180. --position "0,0,1"], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/post/test-rotated-z180.xyz], 0, [ignore], [ignore]) file=test.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz $file], 0) AT_CHECK([chmod u+w $file], 0) AT_CHECK([../../molecuilder -i $file --select-all-atoms --rotate-around-origin 360. --position "0,0,1"], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/post/test-rotated-z360.xyz], 0, [ignore], [ignore]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz], 0, [ignore], [ignore]) file=test.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz $file], 0) AT_CHECK([chmod u+w $file], 0) AT_CHECK([../../molecuilder -i $file --select-all-atoms --rotate-around-origin 20. --position "1,2,1"], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/post/test-rotated-xYz20.xyz], 0, [ignore], [ignore]) AT_CLEANUP AT_SETUP([Molecules - Rotate around origin with Undo]) AT_KEYWORDS([molecules rotate-around-origin undo]) file=test.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz $file], 0) AT_CHECK([chmod u+w $file], 0) AT_CHECK([../../molecuilder -i $file --select-all-atoms --rotate-around-origin 90. --position "0,0,1" --undo], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz], 0, [ignore], [ignore]) file=test.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz $file], 0) AT_CHECK([chmod u+w $file], 0) AT_CHECK([../../molecuilder -i $file --select-all-atoms --rotate-around-origin 180. --position "0,0,1" --undo], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz], 0, [ignore], [ignore]) file=test.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz $file], 0) AT_CHECK([chmod u+w $file], 0) AT_CHECK([../../molecuilder -i $file --select-all-atoms --rotate-around-origin 360. --position "0,0,1" --undo], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz], 0, [ignore], [ignore]) file=test.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz $file], 0) AT_CHECK([chmod u+w $file], 0) AT_CHECK([../../molecuilder -i $file --select-all-atoms --rotate-around-origin 20. --position "1,2,1" --undo], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz], 0, [ignore], [ignore]) AT_CLEANUP AT_SETUP([Molecules - Rotate around origin with Redo]) AT_KEYWORDS([molecules rotate-around-origin redo]) file=test.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz $file], 0) AT_CHECK([chmod u+w $file], 0) AT_CHECK([../../molecuilder -i $file --select-all-atoms --rotate-around-origin 90. --position "0,0,1" --undo --redo], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/post/test-rotated-z90.xyz], 0, [ignore], [ignore]) file=test.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz $file], 0) AT_CHECK([chmod u+w $file], 0) AT_CHECK([../../molecuilder -i $file --select-all-atoms --rotate-around-origin 180. --position "0,0,1" --undo --redo], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/post/test-rotated-z180.xyz], 0, [ignore], [ignore]) file=test.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz $file], 0) AT_CHECK([chmod u+w $file], 0) AT_CHECK([../../molecuilder -i $file --select-all-atoms --rotate-around-origin 360. --position "0,0,1" --undo --redo], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/post/test-rotated-z360.xyz], 0, [ignore], [ignore]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz], 0, [ignore], [ignore]) file=test.xyz AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/pre/test.xyz $file], 0) AT_CHECK([chmod u+w $file], 0) AT_CHECK([../../molecuilder -i $file --select-all-atoms --rotate-around-origin 20. --position "1,2,1" --undo --redo], 0, [stdout], [stderr]) AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundOrigin/post/test-rotated-xYz20.xyz], 0, [ignore], [ignore]) AT_CLEANUP