1 | ### copy molecule
|
---|
2 |
|
---|
3 | AT_SETUP([Molecules - Copy molecule with Undo/Redo])
|
---|
4 | AT_KEYWORDS([Molecules])
|
---|
5 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/test.xyz test-copy.xyz], 0)
|
---|
6 | AT_CHECK([../../molecuilder -i test-copy.xyz --copy-molecule 0 --position "0,0,10"], 0, [stdout], [stderr])
|
---|
7 | AT_CHECK([diff -I '.*Created by molecuilder.*' test-copy.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/post/test-copy.xyz], 0, [ignore], [ignore])
|
---|
8 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/test.xyz test-copy.xyz], 0)
|
---|
9 | AT_CHECK([../../molecuilder -i test-copy.xyz --copy-molecule 0 --position "0,0,10" --undo], 0, [stdout], [stderr])
|
---|
10 | AT_CHECK([diff -I '.*Created by molecuilder.*' test-copy.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/test.xyz], 0, [ignore], [ignore])
|
---|
11 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/test.xyz test-copy.xyz], 0)
|
---|
12 | AT_CHECK([../../molecuilder -i test-copy.xyz --copy-molecule 0 --position "0,0,10" --undo --redo], 0, [stdout], [stderr])
|
---|
13 | AT_CHECK([diff -I '.*Created by molecuilder.*' test-copy.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/post/test-copy.xyz], 0, [ignore], [ignore])
|
---|
14 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/tensid.* .], 0)
|
---|
15 | AT_CHECK([../../molecuilder --parse-tremolo-potentials tensid.potentials -i tensid.data --copy-molecule 0 --position "0,0,10"], 0, [stdout], [stderr])
|
---|
16 | AT_CHECK([diff -I '.*Created by molecuilder.*' tensid.data ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/post/tensid.data], 0, [ignore], [ignore])
|
---|
17 | AT_CLEANUP
|
---|