1 | ### Rotate around self
|
---|
2 |
|
---|
3 | AT_SETUP([Molecules - Rotate around self])
|
---|
4 | AT_KEYWORDS([Molecules])
|
---|
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 |
|
---|
31 | AT_CLEANUP
|
---|