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