[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])
|
---|
[e1f414] | 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])
|
---|
[e1f414] | 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])
|
---|
[e1f414] | 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])
|
---|
[e1f414] | 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 |
|
---|
[9d613f] | 42 | file=ec.data
|
---|
| 43 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/ec.* .], 0)
|
---|
[0d571d7] | 44 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e1f414] | 45 | AT_CHECK([../../molecuilder --parse-tremolo-potentials ec.potentials -i $file -o tremolo -d 2 2 2], 0, [stdout], [stderr])
|
---|
[9d613f] | 46 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 47 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/$file], 0, [ignore], [ignore])
|
---|
| 48 |
|
---|
[8a957e] | 49 | AT_CLEANUP
|
---|
[e69c87] | 50 |
|
---|
| 51 |
|
---|
| 52 | AT_SETUP([Domain - duplicating box with Undo])
|
---|
[e611dc] | 53 | AT_KEYWORDS([domain repeat-box undo])
|
---|
[e69c87] | 54 |
|
---|
| 55 | file=test.conf
|
---|
[7db9bd] | 56 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 57 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e1f414] | 58 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 1 --undo], 0, [stdout], [stderr])
|
---|
[45f835] | 59 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
[e69c87] | 60 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[45f835] | 61 | AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-undo.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[e69c87] | 62 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 63 |
|
---|
| 64 | file=test-x.conf
|
---|
[7db9bd] | 65 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 66 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e1f414] | 67 | AT_CHECK([../../molecuilder -i $file -o xyz -d 2 1 1 --undo], 0, [stdout], [stderr])
|
---|
[45f835] | 68 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
[e69c87] | 69 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[45f835] | 70 | AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-undo.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[e69c87] | 71 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 72 |
|
---|
| 73 | file=test-y.conf
|
---|
[7db9bd] | 74 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 75 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e1f414] | 76 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 2 1 --undo], 0, [stdout], [stderr])
|
---|
[45f835] | 77 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
[e69c87] | 78 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[45f835] | 79 | AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-undo.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[e69c87] | 80 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 81 |
|
---|
| 82 | file=test-z.conf
|
---|
[7db9bd] | 83 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 84 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e1f414] | 85 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 2 --undo], 0, [stdout], [stderr])
|
---|
[45f835] | 86 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
[e69c87] | 87 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[45f835] | 88 | AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-undo.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[e69c87] | 89 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 90 |
|
---|
[9d613f] | 91 | file=ec.data
|
---|
| 92 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/ec.* .], 0)
|
---|
[0d571d7] | 93 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e1f414] | 94 | AT_CHECK([../../molecuilder --parse-tremolo-potentials ec.potentials -i $file -o tremolo -d 2 2 2 --undo], 0, [stdout], [stderr])
|
---|
[9d613f] | 95 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 96 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/$file], 0, [ignore], [ignore])
|
---|
| 97 |
|
---|
[e69c87] | 98 | AT_CLEANUP
|
---|
| 99 |
|
---|
| 100 |
|
---|
| 101 | AT_SETUP([Domain - duplicating box with Redo])
|
---|
[e611dc] | 102 | AT_KEYWORDS([domain repeat-box redo])
|
---|
[e69c87] | 103 |
|
---|
| 104 | file=test.conf
|
---|
[7db9bd] | 105 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 106 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e1f414] | 107 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 1 --undo --redo], 0, [stdout], [stderr])
|
---|
[45f835] | 108 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
[e69c87] | 109 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 110 | 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] | 111 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 112 |
|
---|
| 113 | file=test-x.conf
|
---|
[7db9bd] | 114 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 115 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e1f414] | 116 | AT_CHECK([../../molecuilder -i $file -o xyz -d 2 1 1 --undo --redo], 0, [stdout], [stderr])
|
---|
[45f835] | 117 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
[e69c87] | 118 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 119 | 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] | 120 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 121 |
|
---|
| 122 | file=test-y.conf
|
---|
[7db9bd] | 123 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 124 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e1f414] | 125 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 2 1 --undo --redo], 0, [stdout], [stderr])
|
---|
[45f835] | 126 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
[e69c87] | 127 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 128 | 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] | 129 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 130 |
|
---|
| 131 | file=test-z.conf
|
---|
[7db9bd] | 132 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
[c8b17b] | 133 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e1f414] | 134 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 2 --undo --redo], 0, [stdout], [stderr])
|
---|
[45f835] | 135 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
[e69c87] | 136 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[7db9bd] | 137 | 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] | 138 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 139 |
|
---|
[9d613f] | 140 | file=ec.data
|
---|
| 141 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/ec.* .], 0)
|
---|
[0d571d7] | 142 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e1f414] | 143 | AT_CHECK([../../molecuilder --parse-tremolo-potentials ec.potentials -i $file -o tremolo -d 2 2 2 --undo --redo], 0, [stdout], [stderr])
|
---|
[9d613f] | 144 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 145 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/$file], 0, [ignore], [ignore])
|
---|
| 146 |
|
---|
[e69c87] | 147 | AT_CLEANUP
|
---|