1 | ### copy molecule
|
---|
2 |
|
---|
3 | AT_SETUP([Molecules - Copy molecule with Undo/Redo])
|
---|
4 | AT_KEYWORDS([Molecules])
|
---|
5 |
|
---|
6 | file=test-copy.xyz
|
---|
7 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/test.xyz $file], 0)
|
---|
8 | AT_CHECK([chmod u+w $file], 0)
|
---|
9 | AT_CHECK([../../molecuilder -i $file --copy-molecule 0 --position "0,0,10"], 0, [stdout], [stderr])
|
---|
10 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/post/test-copy.xyz], 0, [ignore], [ignore])
|
---|
11 |
|
---|
12 | file=test-copy.xyz
|
---|
13 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/test.xyz $file], 0)
|
---|
14 | AT_CHECK([chmod u+w $file], 0)
|
---|
15 | AT_CHECK([../../molecuilder -i $file --copy-molecule 0 --position "0,0,10" --undo], 0, [stdout], [stderr])
|
---|
16 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/test.xyz], 0, [ignore], [ignore])
|
---|
17 |
|
---|
18 | file=test-copy.xyz
|
---|
19 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/test.xyz $file], 0)
|
---|
20 | AT_CHECK([chmod u+w $file], 0)
|
---|
21 | AT_CHECK([../../molecuilder -i $file --copy-molecule 0 --position "0,0,10" --undo --redo], 0, [stdout], [stderr])
|
---|
22 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/post/test-copy.xyz], 0, [ignore], [ignore])
|
---|
23 |
|
---|
24 | file=tensid.data
|
---|
25 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/tensid.data $file], 0)
|
---|
26 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/pre/tensid.potentials .], 0)
|
---|
27 | AT_CHECK([chmod u+w $file], 0)
|
---|
28 | AT_CHECK([../../molecuilder --parse-tremolo-potentials tensid.potentials -i $file --copy-molecule 0 --position "0,0,10"], 0, [stdout], [stderr])
|
---|
29 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/Copy/post/tensid.data], 0, [ignore], [ignore])
|
---|
30 |
|
---|
31 | AT_CLEANUP
|
---|