| [8a957e] | 1 | ### center atoms in defined domain
 | 
|---|
 | 2 | 
 | 
|---|
 | 3 | AT_SETUP([Domain - setting and centering in domain])
 | 
|---|
| [e611dc] | 4 | AT_KEYWORDS([domain center-in-box])
 | 
|---|
| [23b0c2] | 5 | 
 | 
|---|
 | 6 | file=test.conf
 | 
|---|
| [7db9bd] | 7 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/pre/test.conf $file], 0)
 | 
|---|
| [23b0c2] | 8 | AT_CHECK([chmod u+w $file], 0)
 | 
|---|
 | 9 | AT_CHECK([../../molecuilder -i $file  -b "15, 0, 15, 0, 0, 15"], 0, [stdout], [stderr])
 | 
|---|
| [3bd460a] | 10 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
 | 
|---|
| [7db9bd] | 11 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/post/test.conf], 0, [stdout], [stderr])
 | 
|---|
| [23b0c2] | 12 | 
 | 
|---|
| [8a957e] | 13 | AT_CLEANUP
 | 
|---|
| [e69c87] | 14 | 
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | AT_SETUP([Domain - setting and centering in domain with Undo])
 | 
|---|
| [e611dc] | 17 | AT_KEYWORDS([domain center-in-box undo])
 | 
|---|
| [e69c87] | 18 | 
 | 
|---|
 | 19 | file=test.conf
 | 
|---|
| [7db9bd] | 20 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/pre/test.conf $file], 0)
 | 
|---|
| [e69c87] | 21 | AT_CHECK([chmod u+w $file], 0)
 | 
|---|
 | 22 | AT_CHECK([../../molecuilder -i $file  -b "15, 0, 15, 0, 0, 15" --undo], 0, [stdout], [stderr])
 | 
|---|
| [23526c] | 23 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
 | 
|---|
 | 24 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/post/test-undo.conf], 0, [stdout], [stderr])
 | 
|---|
| [e69c87] | 25 | 
 | 
|---|
 | 26 | AT_CLEANUP
 | 
|---|
 | 27 | 
 | 
|---|
 | 28 | 
 | 
|---|
 | 29 | AT_SETUP([Domain - setting and centering in domain with Redo])
 | 
|---|
| [e611dc] | 30 | AT_KEYWORDS([domain center-in-box redo])
 | 
|---|
| [e69c87] | 31 | 
 | 
|---|
 | 32 | file=test.conf
 | 
|---|
| [7db9bd] | 33 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/pre/test.conf $file], 0)
 | 
|---|
| [e69c87] | 34 | AT_CHECK([chmod u+w $file], 0)
 | 
|---|
 | 35 | AT_CHECK([../../molecuilder -i $file  -b "15, 0, 15, 0, 0, 15" --undo --redo], 0, [stdout], [stderr])
 | 
|---|
| [23526c] | 36 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
 | 
|---|
| [7db9bd] | 37 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/post/test.conf], 0, [stdout], [stderr])
 | 
|---|
| [e69c87] | 38 | 
 | 
|---|
 | 39 | AT_CLEANUP
 | 
|---|