[967b3c] | 1 | ### Rotate around self
|
---|
| 2 |
|
---|
| 3 | AT_SETUP([Molecules - Rotate around self])
|
---|
[e611dc] | 4 | AT_KEYWORDS([molecules rotate-around-self])
|
---|
[23b0c2] | 5 |
|
---|
| 6 | file=test.xyz
|
---|
[7db9bd] | 7 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
[23b0c2] | 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])
|
---|
[7db9bd] | 10 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/post/test-rotated-z90.xyz], 0, [ignore], [ignore])
|
---|
[23b0c2] | 11 |
|
---|
| 12 | file=test.xyz
|
---|
[7db9bd] | 13 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
[23b0c2] | 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])
|
---|
[7db9bd] | 16 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/post/test-rotated-z180.xyz], 0, [ignore], [ignore])
|
---|
[23b0c2] | 17 |
|
---|
| 18 | file=test.xyz
|
---|
[7db9bd] | 19 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
[23b0c2] | 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])
|
---|
[7db9bd] | 22 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/post/test-rotated-z360.xyz], 0, [ignore], [ignore])
|
---|
| 23 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz], 0, [ignore], [ignore])
|
---|
[23b0c2] | 24 |
|
---|
| 25 | file=test.xyz
|
---|
[7db9bd] | 26 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
[23b0c2] | 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])
|
---|
[7db9bd] | 29 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/post/test-rotated-xYz20.xyz], 0, [ignore], [ignore])
|
---|
[23b0c2] | 30 |
|
---|
[967b3c] | 31 | AT_CLEANUP
|
---|
[e69c87] | 32 |
|
---|
| 33 |
|
---|
| 34 | AT_SETUP([Molecules - Rotate around self with Undo])
|
---|
[e611dc] | 35 | AT_KEYWORDS([molecules rotate-around-self undo])
|
---|
[e69c87] | 36 |
|
---|
| 37 | file=test.xyz
|
---|
[7db9bd] | 38 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
[e69c87] | 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])
|
---|
[7db9bd] | 41 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz], 0, [ignore], [ignore])
|
---|
[e69c87] | 42 |
|
---|
| 43 | file=test.xyz
|
---|
[7db9bd] | 44 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
[e69c87] | 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])
|
---|
[7db9bd] | 47 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz], 0, [ignore], [ignore])
|
---|
[e69c87] | 48 |
|
---|
| 49 | file=test.xyz
|
---|
[7db9bd] | 50 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
[e69c87] | 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])
|
---|
[7db9bd] | 53 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz], 0, [ignore], [ignore])
|
---|
[e69c87] | 54 |
|
---|
| 55 | file=test.xyz
|
---|
[7db9bd] | 56 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
[e69c87] | 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])
|
---|
[7db9bd] | 59 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz], 0, [ignore], [ignore])
|
---|
[e69c87] | 60 |
|
---|
| 61 | AT_CLEANUP
|
---|
| 62 |
|
---|
| 63 |
|
---|
| 64 | AT_SETUP([Molecules - Rotate around self with Redo])
|
---|
[e611dc] | 65 | AT_KEYWORDS([molecules rotate-around-self redo])
|
---|
[e69c87] | 66 |
|
---|
| 67 | file=test.xyz
|
---|
[7db9bd] | 68 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
[e69c87] | 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])
|
---|
[7db9bd] | 71 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/post/test-rotated-z90.xyz], 0, [ignore], [ignore])
|
---|
[e69c87] | 72 |
|
---|
| 73 | file=test.xyz
|
---|
[7db9bd] | 74 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
[e69c87] | 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])
|
---|
[7db9bd] | 77 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/post/test-rotated-z180.xyz], 0, [ignore], [ignore])
|
---|
[e69c87] | 78 |
|
---|
| 79 | file=test.xyz
|
---|
[7db9bd] | 80 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
[e69c87] | 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])
|
---|
[7db9bd] | 83 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/post/test-rotated-z360.xyz], 0, [ignore], [ignore])
|
---|
| 84 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz], 0, [ignore], [ignore])
|
---|
[e69c87] | 85 |
|
---|
| 86 | file=test.xyz
|
---|
[7db9bd] | 87 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/pre/test.xyz $file], 0)
|
---|
[e69c87] | 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])
|
---|
[7db9bd] | 90 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundSelf/post/test-rotated-xYz20.xyz], 0, [ignore], [ignore])
|
---|
[e69c87] | 91 |
|
---|
| 92 | AT_CLEANUP
|
---|