[967b3c] | 1 | ### Rotate around self
|
---|
| 2 |
|
---|
| 3 | AT_SETUP([Molecules - Rotate around self])
|
---|
| 4 | AT_KEYWORDS([Molecules])
|
---|
[23b0c2] | 5 |
|
---|
| 6 | file=test.xyz
|
---|
| 7 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
| 8 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 9 | AT_CHECK([../../molecuilder -i $file --select-all-molecules --rotate-around-self 90. --axis "0,0,1"], 0, [stdout], [stderr])
|
---|
| 10 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/post/test-rotated-z90.xyz], 0, [ignore], [ignore])
|
---|
| 11 |
|
---|
| 12 | file=test.xyz
|
---|
| 13 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
| 14 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 15 | AT_CHECK([../../molecuilder -i $file --select-all-molecules --rotate-around-self 180. --axis "0,0,1"], 0, [stdout], [stderr])
|
---|
| 16 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/post/test-rotated-z180.xyz], 0, [ignore], [ignore])
|
---|
| 17 |
|
---|
| 18 | file=test.xyz
|
---|
| 19 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
| 20 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 21 | AT_CHECK([../../molecuilder -i $file --select-all-molecules --rotate-around-self 360. --axis "0,0,1"], 0, [stdout], [stderr])
|
---|
| 22 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/post/test-rotated-z360.xyz], 0, [ignore], [ignore])
|
---|
| 23 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz], 0, [ignore], [ignore])
|
---|
| 24 |
|
---|
| 25 | file=test.xyz
|
---|
| 26 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
| 27 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 28 | AT_CHECK([../../molecuilder -i $file --select-all-molecules --rotate-around-self 20. --axis "1,2,1"], 0, [stdout], [stderr])
|
---|
| 29 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/post/test-rotated-xYz20.xyz], 0, [ignore], [ignore])
|
---|
| 30 |
|
---|
[967b3c] | 31 | AT_CLEANUP
|
---|
[e69c87] | 32 |
|
---|
| 33 |
|
---|
| 34 | AT_SETUP([Molecules - Rotate around self with Undo])
|
---|
| 35 | AT_KEYWORDS([Molecules])
|
---|
| 36 |
|
---|
| 37 | file=test.xyz
|
---|
| 38 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
| 39 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 40 | AT_CHECK([../../molecuilder -i $file --select-all-molecules --rotate-around-self 90. --axis "0,0,1" --undo], 0, [stdout], [stderr])
|
---|
| 41 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz], 0, [ignore], [ignore])
|
---|
| 42 |
|
---|
| 43 | file=test.xyz
|
---|
| 44 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
| 45 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 46 | AT_CHECK([../../molecuilder -i $file --select-all-molecules --rotate-around-self 180. --axis "0,0,1" --undo], 0, [stdout], [stderr])
|
---|
| 47 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz], 0, [ignore], [ignore])
|
---|
| 48 |
|
---|
| 49 | file=test.xyz
|
---|
| 50 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
| 51 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 52 | AT_CHECK([../../molecuilder -i $file --select-all-molecules --rotate-around-self 360. --axis "0,0,1" --undo], 0, [stdout], [stderr])
|
---|
| 53 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz], 0, [ignore], [ignore])
|
---|
| 54 |
|
---|
| 55 | file=test.xyz
|
---|
| 56 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
| 57 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 58 | AT_CHECK([../../molecuilder -i $file --select-all-molecules --rotate-around-self 20. --axis "1,2,1" --undo], 0, [stdout], [stderr])
|
---|
| 59 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz], 0, [ignore], [ignore])
|
---|
| 60 |
|
---|
| 61 | AT_CLEANUP
|
---|
| 62 |
|
---|
| 63 |
|
---|
| 64 | AT_SETUP([Molecules - Rotate around self with Redo])
|
---|
| 65 | AT_KEYWORDS([Molecules])
|
---|
| 66 |
|
---|
| 67 | file=test.xyz
|
---|
| 68 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
| 69 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 70 | AT_CHECK([../../molecuilder -i $file --select-all-molecules --rotate-around-self 90. --axis "0,0,1" --undo --redo], 0, [stdout], [stderr])
|
---|
| 71 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/post/test-rotated-z90.xyz], 0, [ignore], [ignore])
|
---|
| 72 |
|
---|
| 73 | file=test.xyz
|
---|
| 74 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
| 75 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 76 | AT_CHECK([../../molecuilder -i $file --select-all-molecules --rotate-around-self 180. --axis "0,0,1" --undo --redo], 0, [stdout], [stderr])
|
---|
| 77 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/post/test-rotated-z180.xyz], 0, [ignore], [ignore])
|
---|
| 78 |
|
---|
| 79 | file=test.xyz
|
---|
| 80 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
| 81 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 82 | AT_CHECK([../../molecuilder -i $file --select-all-molecules --rotate-around-self 360. --axis "0,0,1" --undo --redo], 0, [stdout], [stderr])
|
---|
| 83 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/post/test-rotated-z360.xyz], 0, [ignore], [ignore])
|
---|
| 84 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz], 0, [ignore], [ignore])
|
---|
| 85 |
|
---|
| 86 | file=test.xyz
|
---|
| 87 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
| 88 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 89 | AT_CHECK([../../molecuilder -i $file --select-all-molecules --rotate-around-self 20. --axis "1,2,1" --undo --redo], 0, [stdout], [stderr])
|
---|
| 90 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/RotateAroundSelf/post/test-rotated-xYz20.xyz], 0, [ignore], [ignore])
|
---|
| 91 |
|
---|
| 92 | AT_CLEANUP
|
---|