1 | ### add atom
|
---|
2 |
|
---|
3 | AT_SETUP([Atoms - adding atom])
|
---|
4 | AT_KEYWORDS([atoms add-atom])
|
---|
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}/tests/regression/Atoms/Add/post/test.conf], 0, [ignore], [ignore])
|
---|
7 | AT_CHECK([file=test.data; diff -I '#.*' $file ${abs_top_srcdir}/tests/regression/Atoms/Add/post/test.data], 0, [ignore], [ignore])
|
---|
8 | AT_CHECK([file=test.in; diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Atoms/Add/post/test.in], 0, [ignore], [ignore])
|
---|
9 | AT_CHECK([file=test.pdb; diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Atoms/Add/post/test.pdb], 0, [ignore], [ignore])
|
---|
10 | AT_CHECK([file=test.xyz; diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Atoms/Add/post/test.xyz], 0, [ignore], [ignore])
|
---|
11 | AT_CLEANUP
|
---|
12 |
|
---|
13 |
|
---|
14 | AT_SETUP([Atoms - adding atom with Undo])
|
---|
15 | AT_KEYWORDS([atoms add-atom undo])
|
---|
16 |
|
---|
17 | AT_CHECK([../../molecuilder -i empty.conf -o pcp -a 1 --domain-position "10., 10., 10." --undo], 0, [ignore], [ignore])
|
---|
18 | AT_CHECK([file=empty.conf; diff $file ${abs_top_srcdir}/tests/regression/Atoms/Add/post/empty.conf], 0, [ignore], [ignore])
|
---|
19 |
|
---|
20 | AT_CLEANUP
|
---|
21 |
|
---|
22 |
|
---|
23 | AT_SETUP([Atoms - adding atom with Redo])
|
---|
24 | AT_KEYWORDS([atoms add-atom redo])
|
---|
25 |
|
---|
26 | AT_CHECK([../../molecuilder -i test.conf -o mpqc pcp xyz tremolo pdb -a 1 --domain-position "10., 10., 10." --undo --redo], 0, [ignore], [ignore])
|
---|
27 | AT_CHECK([file=test.conf; diff -I '#.*' $file ${abs_top_srcdir}/tests/regression/Atoms/Add/post/test.conf], 0, [ignore], [ignore])
|
---|
28 | AT_CHECK([file=test.data; diff -I '#.*' $file ${abs_top_srcdir}/tests/regression/Atoms/Add/post/test.data], 0, [ignore], [ignore])
|
---|
29 | AT_CHECK([file=test.in; diff -I '#.*' $file ${abs_top_srcdir}/tests/regression/Atoms/Add/post/test.in], 0, [ignore], [ignore])
|
---|
30 | AT_CHECK([file=test.pdb; diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Atoms/Add/post/test.pdb], 0, [ignore], [ignore])
|
---|
31 | AT_CHECK([file=test.xyz; diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Atoms/Add/post/test.xyz], 0, [ignore], [ignore])
|
---|
32 |
|
---|
33 | AT_CLEANUP
|
---|
34 |
|
---|
35 |
|
---|
36 | AT_SETUP([Atoms - adding outside boundary fails])
|
---|
37 | AT_KEYWORDS([atoms boundary add-atom])
|
---|
38 | AT_XFAIL_IF([/bin/true])
|
---|
39 |
|
---|
40 | AT_CHECK([../../molecuilder -i test2.conf -o mpqc pcp xyz tremolo pdb --set-boundary-conditions "Ignore,Ignore,Ignore" -a 1 --domain-position "0., 0., -1."], 134, [ignore], [ignore])
|
---|
41 |
|
---|
42 | AT_CLEANUP
|
---|