[967b3c] | 1 | ### Translation
|
---|
| 2 |
|
---|
| 3 | AT_SETUP([Molecules - Translation])
|
---|
[e611dc] | 4 | AT_KEYWORDS([molecules translate-atoms])
|
---|
[23b0c2] | 5 |
|
---|
| 6 | file=test.conf
|
---|
[7db9bd] | 7 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/Translation/pre/test.conf $file], 0)
|
---|
[23b0c2] | 8 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 9 | AT_CHECK([../../molecuilder -i $file --select-molecule-by-id 0 --select-molecules-atoms -t "1., 1., 1." --periodic 0], 0, [stdout], [stderr])
|
---|
[7db9bd] | 10 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Molecules/Translation/post/test.conf], 0, [ignore], [ignore])
|
---|
[23b0c2] | 11 |
|
---|
| 12 | file=test2.conf
|
---|
[7db9bd] | 13 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/Translation/pre/test2.conf $file], 0)
|
---|
[23b0c2] | 14 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 15 | AT_CHECK([../../molecuilder -i $file --select-molecule-by-id 0 --select-molecules-atoms -t "-1., -1., -1." --periodic 0], 0, [stdout], [stderr])
|
---|
[7db9bd] | 16 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Molecules/Translation/post/test2.conf], 0, [ignore], [ignore])
|
---|
[23b0c2] | 17 |
|
---|
[967b3c] | 18 | AT_CLEANUP
|
---|
[e69c87] | 19 |
|
---|
| 20 |
|
---|
| 21 | AT_SETUP([Molecules - Translation with Undo])
|
---|
[e611dc] | 22 | AT_KEYWORDS([molecules translate-atoms undo])
|
---|
[e69c87] | 23 |
|
---|
| 24 | file=test.conf
|
---|
[7db9bd] | 25 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/Translation/pre/test.conf $file], 0)
|
---|
[e69c87] | 26 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 27 | AT_CHECK([../../molecuilder -i $file --select-molecule-by-id 0 --select-molecules-atoms -t "1., 1., 1." --periodic 0 --undo], 0, [stdout], [stderr])
|
---|
[7db9bd] | 28 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Molecules/Translation/post/test-undo.conf], 0, [ignore], [ignore])
|
---|
[e69c87] | 29 |
|
---|
| 30 | file=test2.conf
|
---|
[7db9bd] | 31 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/Translation/pre/test2.conf $file], 0)
|
---|
[e69c87] | 32 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 33 | AT_CHECK([../../molecuilder -i $file --select-molecule-by-id 0 --select-molecules-atoms -t "-1., -1., -1." --periodic 0 --undo], 0, [stdout], [stderr])
|
---|
[7db9bd] | 34 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Molecules/Translation/post/test2-undo.conf], 0, [ignore], [ignore])
|
---|
[e69c87] | 35 |
|
---|
| 36 | AT_CLEANUP
|
---|
| 37 |
|
---|
| 38 |
|
---|
| 39 | AT_SETUP([Molecules - Translation with Redo])
|
---|
[e611dc] | 40 | AT_KEYWORDS([molecules translate-atoms redo])
|
---|
[e69c87] | 41 |
|
---|
| 42 | file=test.conf
|
---|
[7db9bd] | 43 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/Translation/pre/test.conf $file], 0)
|
---|
[e69c87] | 44 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 45 | AT_CHECK([../../molecuilder -i $file --select-molecule-by-id 0 --select-molecules-atoms -t "1., 1., 1." --periodic 0 --undo --redo], 0, [stdout], [stderr])
|
---|
[7db9bd] | 46 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Molecules/Translation/post/test.conf], 0, [ignore], [ignore])
|
---|
[e69c87] | 47 |
|
---|
| 48 | file=test2.conf
|
---|
[7db9bd] | 49 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/Translation/pre/test2.conf $file], 0)
|
---|
[e69c87] | 50 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 51 | AT_CHECK([../../molecuilder -i $file --select-molecule-by-id 0 --select-molecules-atoms -t "-1., -1., -1." --periodic 0 --undo --redo], 0, [stdout], [stderr])
|
---|
[7db9bd] | 52 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Molecules/Translation/post/test2.conf], 0, [ignore], [ignore])
|
---|
[e69c87] | 53 |
|
---|
| 54 | AT_CLEANUP
|
---|