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