[d445e4] | 1 | ### add atom
|
---|
| 2 |
|
---|
| 3 | AT_SETUP([Atoms - adding atom])
|
---|
[e611dc] | 4 | AT_KEYWORDS([atoms add-atom])
|
---|
[d445e4] | 5 | AT_CHECK([../../molecuilder -i test.conf -o mpqc pcp xyz tremolo pdb -a 1 --domain-position "10., 10., 10."], 0, [ignore], [ignore])
|
---|
[7db9bd] | 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])
|
---|
[e69c87] | 11 | AT_CLEANUP
|
---|
| 12 |
|
---|
| 13 |
|
---|
| 14 | AT_SETUP([Atoms - adding atom with Undo])
|
---|
[e611dc] | 15 | AT_KEYWORDS([atoms add-atom undo])
|
---|
[e69c87] | 16 |
|
---|
[d445e4] | 17 | AT_CHECK([../../molecuilder -i empty.conf -o pcp -a 1 --domain-position "10., 10., 10." --undo], 0, [ignore], [ignore])
|
---|
[7db9bd] | 18 | AT_CHECK([file=empty.conf; diff $file ${abs_top_srcdir}/tests/regression/Atoms/Add/post/empty.conf], 0, [ignore], [ignore])
|
---|
[e69c87] | 19 |
|
---|
[d445e4] | 20 | AT_CLEANUP
|
---|
[e69c87] | 21 |
|
---|
| 22 |
|
---|
| 23 | AT_SETUP([Atoms - adding atom with Redo])
|
---|
[e611dc] | 24 | AT_KEYWORDS([atoms add-atom redo])
|
---|
[e69c87] | 25 |
|
---|
[d445e4] | 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])
|
---|
[7db9bd] | 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])
|
---|
[e69c87] | 32 |
|
---|
[d445e4] | 33 | AT_CLEANUP
|
---|
| 34 |
|
---|
[e69c87] | 35 |
|
---|
[d445e4] | 36 | AT_SETUP([Atoms - adding outside boundary fails])
|
---|
[e611dc] | 37 | AT_KEYWORDS([atoms boundary add-atom])
|
---|
[f10b0c] | 38 | AT_XFAIL_IF([/bin/true])
|
---|
[e69c87] | 39 |
|
---|
[2a0271] | 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])
|
---|
[e69c87] | 41 |
|
---|
[d445e4] | 42 | AT_CLEANUP
|
---|