[d445e4] | 1 | ### translation
|
---|
| 2 |
|
---|
[e69c87] | 3 | AT_SETUP([Atoms - Translation])
|
---|
[718542] | 4 | AT_KEYWORDS([atoms,translate-atoms])
|
---|
[23b0c2] | 5 |
|
---|
| 6 | file=test.xyz
|
---|
[7db9bd] | 7 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/Translation/pre/test.xyz $file], 0)
|
---|
[23b0c2] | 8 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 9 | AT_CHECK([../../molecuilder -i $file --select-all-atoms -t "1,0,0"], 0, [stdout], [stderr])
|
---|
[7db9bd] | 10 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Atoms/Translation/post/test-shifted.xyz], 0, [ignore], [ignore])
|
---|
[23b0c2] | 11 |
|
---|
[e69c87] | 12 | AT_CLEANUP
|
---|
| 13 |
|
---|
| 14 |
|
---|
| 15 | AT_SETUP([Atoms - Translation with Undo])
|
---|
[718542] | 16 | AT_KEYWORDS([atoms,translate-atoms,undo])
|
---|
[e69c87] | 17 |
|
---|
[23b0c2] | 18 | file=test.xyz
|
---|
[7db9bd] | 19 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/Translation/pre/test.xyz $file], 0)
|
---|
[23b0c2] | 20 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 21 | AT_CHECK([../../molecuilder -i $file --select-all-atoms -t "1,0,0" --undo], 0, [stdout], [stderr])
|
---|
[7db9bd] | 22 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Atoms/Translation/pre/test.xyz], 0, [ignore], [ignore])
|
---|
[23b0c2] | 23 |
|
---|
[e69c87] | 24 | AT_CLEANUP
|
---|
| 25 |
|
---|
| 26 |
|
---|
| 27 | AT_SETUP([Atoms - Translation with Redo])
|
---|
[718542] | 28 | AT_KEYWORDS([atoms,translate-atoms,redo])
|
---|
[e69c87] | 29 |
|
---|
[23b0c2] | 30 | file=test.xyz
|
---|
[7db9bd] | 31 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/Translation/pre/test.xyz $file], 0)
|
---|
[23b0c2] | 32 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 33 | AT_CHECK([../../molecuilder -i $file --select-all-atoms -t "1,0,0" --undo --redo], 0, [stdout], [stderr])
|
---|
[7db9bd] | 34 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Atoms/Translation/post/test-shifted.xyz], 0, [ignore], [ignore])
|
---|
[23b0c2] | 35 |
|
---|
[d445e4] | 36 | AT_CLEANUP
|
---|