[8a957e] | 1 | ### duplicating box
|
---|
| 2 |
|
---|
| 3 | AT_SETUP([Domain - duplicating box])
|
---|
[e611dc] | 4 | AT_KEYWORDS([domain repeat-box])
|
---|
[23b0c2] | 5 |
|
---|
| 6 | file=test.conf
|
---|
[7db9bd] | 7 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 8 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[23b0c2] | 9 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 1"], 0, [stdout], [stderr])
|
---|
[3bd460a] | 10 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
[8a957e] | 11 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 12 | AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[8a957e] | 13 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
[23b0c2] | 14 |
|
---|
| 15 | file=test-x.conf
|
---|
[7db9bd] | 16 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 17 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[23b0c2] | 18 | AT_CHECK([../../molecuilder -i $file -o xyz -d "2, 1, 1"], 0, [stdout], [stderr])
|
---|
[3bd460a] | 19 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
[8a957e] | 20 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 21 | AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-x.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[8a957e] | 22 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
[23b0c2] | 23 |
|
---|
| 24 | file=test-y.conf
|
---|
[7db9bd] | 25 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 26 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[23b0c2] | 27 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 2, 1"], 0, [stdout], [stderr])
|
---|
[3bd460a] | 28 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
[8a957e] | 29 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 30 | AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-y.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[8a957e] | 31 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
[23b0c2] | 32 |
|
---|
| 33 | file=test-z.conf
|
---|
[7db9bd] | 34 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 35 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[23b0c2] | 36 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 2"], 0, [stdout], [stderr])
|
---|
[3bd460a] | 37 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
[8a957e] | 38 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 39 | AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-z.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[8a957e] | 40 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
[23b0c2] | 41 |
|
---|
[8a957e] | 42 | AT_CLEANUP
|
---|
[e69c87] | 43 |
|
---|
| 44 |
|
---|
| 45 | AT_SETUP([Domain - duplicating box with Undo])
|
---|
| 46 | AT_XFAIL_IF([/bin/true])
|
---|
[e611dc] | 47 | AT_KEYWORDS([domain repeat-box undo])
|
---|
[e69c87] | 48 |
|
---|
| 49 | file=test.conf
|
---|
[7db9bd] | 50 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 51 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e69c87] | 52 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 1" --undo], 0, [stdout], [stderr])
|
---|
| 53 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 54 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 55 | AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[e69c87] | 56 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 57 |
|
---|
| 58 | file=test-x.conf
|
---|
[7db9bd] | 59 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 60 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e69c87] | 61 | AT_CHECK([../../molecuilder -i $file -o xyz -d "2, 1, 1" --undo], 0, [stdout], [stderr])
|
---|
| 62 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 63 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 64 | AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-x.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[e69c87] | 65 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 66 |
|
---|
| 67 | file=test-y.conf
|
---|
[7db9bd] | 68 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 69 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e69c87] | 70 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 2, 1" --undo], 0, [stdout], [stderr])
|
---|
| 71 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 72 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 73 | AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-y.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[e69c87] | 74 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 75 |
|
---|
| 76 | file=test-z.conf
|
---|
[7db9bd] | 77 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 78 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e69c87] | 79 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 2" --undo], 0, [stdout], [stderr])
|
---|
| 80 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 81 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 82 | AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-z.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[e69c87] | 83 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 84 |
|
---|
| 85 | AT_CLEANUP
|
---|
| 86 |
|
---|
| 87 |
|
---|
| 88 | AT_SETUP([Domain - duplicating box with Redo])
|
---|
| 89 | AT_XFAIL_IF([/bin/true])
|
---|
[e611dc] | 90 | AT_KEYWORDS([domain repeat-box redo])
|
---|
[e69c87] | 91 |
|
---|
| 92 | file=test.conf
|
---|
[7db9bd] | 93 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 94 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e69c87] | 95 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 1" --undo --redo], 0, [stdout], [stderr])
|
---|
| 96 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 97 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 98 | AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[e69c87] | 99 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 100 |
|
---|
| 101 | file=test-x.conf
|
---|
[7db9bd] | 102 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 103 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e69c87] | 104 | AT_CHECK([../../molecuilder -i $file -o xyz -d "2, 1, 1" --undo --redo], 0, [stdout], [stderr])
|
---|
| 105 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 106 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 107 | AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-x.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[e69c87] | 108 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 109 |
|
---|
| 110 | file=test-y.conf
|
---|
[7db9bd] | 111 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 112 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e69c87] | 113 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 2, 1" --undo --redo], 0, [stdout], [stderr])
|
---|
| 114 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 115 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 116 | AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-y.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[e69c87] | 117 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 118 |
|
---|
| 119 | file=test-z.conf
|
---|
[7db9bd] | 120 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 121 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e69c87] | 122 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 2" --undo --redo], 0, [stdout], [stderr])
|
---|
| 123 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 124 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 125 | AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-z.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[e69c87] | 126 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 127 |
|
---|
| 128 | AT_CLEANUP
|
---|