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