1 | ### add atom
|
---|
2 |
|
---|
3 | AT_SETUP([Atoms - adding atom])
|
---|
4 | AT_KEYWORDS([atoms])
|
---|
5 | AT_CHECK([../../molecuilder -i test.conf -o mpqc pcp xyz tremolo pdb -a 1 --domain-position "10., 10., 10."], 0, [ignore], [ignore])
|
---|
6 | AT_CHECK([file=test.conf; diff -I '#.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Atoms/Add/post/$file], 0, [ignore], [ignore])
|
---|
7 | AT_CHECK([file=test.data; diff -I '#.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Atoms/Add/post/$file], 0, [ignore], [ignore])
|
---|
8 | AT_CHECK([file=test.in; diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Atoms/Add/post/$file], 0, [ignore], [ignore])
|
---|
9 | AT_CHECK([file=test.pdb; diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Atoms/Add/post/$file], 0, [ignore], [ignore])
|
---|
10 | AT_CHECK([file=test.xyz; diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Atoms/Add/post/$file], 0, [ignore], [ignore])
|
---|
11 | AT_CHECK([../../molecuilder -i empty.conf -o pcp -a 1 --domain-position "10., 10., 10." --undo], 0, [ignore], [ignore])
|
---|
12 | AT_CHECK([file=empty.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Atoms/Add/post/$file], 0, [ignore], [ignore])
|
---|
13 | AT_CLEANUP
|
---|
14 | AT_SETUP([Atoms - adding atom with Undo/Redo])
|
---|
15 | AT_KEYWORDS([atoms])
|
---|
16 | AT_CHECK([../../molecuilder -i test.conf -o mpqc pcp xyz tremolo pdb -a 1 --domain-position "10., 10., 10." --undo --redo], 0, [ignore], [ignore])
|
---|
17 | AT_CHECK([file=test.conf; diff -I '#.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Atoms/Add/post/$file], 0, [ignore], [ignore])
|
---|
18 | AT_CHECK([file=test.data; diff -I '#.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Atoms/Add/post/$file], 0, [ignore], [ignore])
|
---|
19 | AT_CHECK([file=test.in; diff -I '#.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Atoms/Add/post/$file], 0, [ignore], [ignore])
|
---|
20 | AT_CHECK([file=test.pdb; diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Atoms/Add/post/$file], 0, [ignore], [ignore])
|
---|
21 | AT_CHECK([file=test.xyz; diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Atoms/Add/post/$file], 0, [ignore], [ignore])
|
---|
22 | AT_CLEANUP
|
---|
23 |
|
---|
24 | AT_SETUP([Atoms - adding outside boundary fails])
|
---|
25 | AT_KEYWORDS([atoms,boundary])
|
---|
26 | AT_CHECK([../../molecuilder -i test2.conf -o mpqc pcp xyz tremolo pdb -a 1 --domain-position "0., 0., -1."], 134, [ignore], [ignore])
|
---|
27 | AT_CLEANUP
|
---|