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