1 | ### filling with molecule
|
---|
2 |
|
---|
3 | AT_SETUP([Filling - filling box around molecule's surface])
|
---|
4 | AT_KEYWORDS([filling fill-molecule])
|
---|
5 |
|
---|
6 | file=test.conf
|
---|
7 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillWithMolecule/pre/test.conf $file], 0)
|
---|
8 | AT_CHECK([chmod u+w $file], 0)
|
---|
9 | AT_DATA([water.xyz], [[3
|
---|
10 | # test configuration, created by molecuilder test suite
|
---|
11 | O 0. 0. 0.
|
---|
12 | H 0.758602 0. 0.504284
|
---|
13 | H 0.758602 0. -0.504284
|
---|
14 | ]])
|
---|
15 | AT_CHECK([../../molecuilder -i $file -v 3 -F water.xyz --MaxDistance -1 --distances "3.1, 3.1, 3.1" --distance-to-molecule "2.1" --DoRotate 0], 0, [stdout], [stderr])
|
---|
16 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Filling/FillWithMolecule/post/test.conf], 0, [ignore], [ignore])
|
---|
17 |
|
---|
18 | AT_CLEANUP
|
---|
19 |
|
---|
20 |
|
---|
21 | AT_SETUP([Filling - filling box around molecule's surface with Undo])
|
---|
22 | AT_KEYWORDS([filling fill-molecule undo])
|
---|
23 |
|
---|
24 | file=empty.conf
|
---|
25 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillWithMolecule/pre/test.conf $file], 0)
|
---|
26 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
27 | AT_DATA([water.xyz], [[3
|
---|
28 | # test configuration, created by molecuilder test suite
|
---|
29 | O 0. 0. 0.
|
---|
30 | H 0.758602 0. 0.504284
|
---|
31 | H 0.758602 0. -0.504284
|
---|
32 | ]])
|
---|
33 | AT_CHECK([../../molecuilder -i $file -o xyz -F water.xyz --MaxDistance -1 --distances "3.1, 3.1, 3.1" --distance-to-molecule "2.1" --DoRotate 0 --undo], 0, [stdout], [stderr])
|
---|
34 | AT_CHECK([diff -I '.*reated by molecuilder.*' empty.xyz ${abs_top_srcdir}/tests/regression/Filling/FillWithMolecule/post/propane.xyz], 0, [ignore], [ignore])
|
---|
35 |
|
---|
36 | AT_CLEANUP
|
---|
37 |
|
---|
38 |
|
---|
39 | AT_SETUP([Filling - filling box around molecule's surface with Redo])
|
---|
40 | AT_XFAIL_IF([/bin/true])
|
---|
41 | AT_KEYWORDS([filling fill-molecule redo])
|
---|
42 |
|
---|
43 | file=test.conf
|
---|
44 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillWithMolecule/pre/test.conf $file], 0)
|
---|
45 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
46 | AT_DATA([water.xyz], [[3
|
---|
47 | # test configuration, created by molecuilder test suite
|
---|
48 | O 0. 0. 0.
|
---|
49 | H 0.758602 0. 0.504284
|
---|
50 | H 0.758602 0. -0.504284
|
---|
51 | ]])
|
---|
52 | AT_CHECK([../../molecuilder -i $file -o xyz -F water.xyz --MaxDistance -1 --distances "3.1, 3.1, 3.1" --distance-to-molecule "2.1" --DoRotate 0 --undo --redo], 0, [stdout], [stderr])
|
---|
53 | AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/FillWithMolecule/post/test.conf], 0, [ignore], [ignore])
|
---|
54 |
|
---|
55 | AT_CLEANUP
|
---|