[dd6c07] | 1 | #
|
---|
| 2 | # MoleCuilder - creates and alters molecular systems
|
---|
| 3 | # Copyright (C) 2008-2012 University of Bonn
|
---|
| 4 | #
|
---|
| 5 | # This program is free software: you can redistribute it and/or modify
|
---|
| 6 | # it under the terms of the GNU General Public License as published by
|
---|
| 7 | # the Free Software Foundation, either version 3 of the License, or
|
---|
| 8 | # (at your option) any later version.
|
---|
| 9 | #
|
---|
| 10 | # This program is distributed in the hope that it will be useful,
|
---|
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 13 | # GNU General Public License for more details.
|
---|
| 14 | #
|
---|
| 15 | # You should have received a copy of the GNU General Public License
|
---|
| 16 | # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
| 17 | #
|
---|
| 18 | ### duplicating box
|
---|
| 19 |
|
---|
| 20 | AT_SETUP([Domain - duplicating box])
|
---|
| 21 | AT_KEYWORDS([domain repeat-box])
|
---|
| 22 |
|
---|
| 23 | file=test.conf
|
---|
| 24 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 25 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 26 | AT_CHECK([../../molecuilder --dry-run -i $file -o xyz -d 1 1 1 --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 27 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 28 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 29 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 30 | 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])
|
---|
| 31 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 32 |
|
---|
| 33 | file=test-x.conf
|
---|
| 34 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 35 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 36 | AT_CHECK([../../molecuilder --dry-run -i $file -o xyz -d 2 1 1 --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 37 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 38 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 39 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 40 | 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])
|
---|
| 41 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 42 |
|
---|
| 43 | file=test-y.conf
|
---|
| 44 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 45 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 46 | AT_CHECK([../../molecuilder --dry-run -i $file -o xyz -d 1 2 1 --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 47 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 48 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 49 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 50 | 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])
|
---|
| 51 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 52 |
|
---|
| 53 | file=test-z.conf
|
---|
| 54 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 55 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 56 | AT_CHECK([../../molecuilder --dry-run -i $file -o xyz -d 1 1 2 --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 57 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 58 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 59 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 60 | 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])
|
---|
| 61 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 62 |
|
---|
| 63 | file=ec.data
|
---|
| 64 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/ec.* .], 0)
|
---|
| 65 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 66 | AT_CHECK([../../molecuilder --dry-run --parse-tremolo-potentials ec.potentials -i $file -o tremolo -d 2 2 2 --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 67 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 68 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 69 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/$file], 0, [ignore], [ignore])
|
---|
| 70 |
|
---|
| 71 | AT_CLEANUP
|
---|
| 72 |
|
---|
| 73 |
|
---|
| 74 | AT_SETUP([Domain - duplicating box with Undo])
|
---|
| 75 | AT_KEYWORDS([domain repeat-box undo])
|
---|
| 76 |
|
---|
| 77 | file=test.conf
|
---|
| 78 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 79 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 80 | AT_CHECK([../../molecuilder --dry-run -i $file -o xyz -d 1 1 1 --undo --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 81 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 82 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 83 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 84 | 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])
|
---|
| 85 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 86 |
|
---|
| 87 | file=test-x.conf
|
---|
| 88 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 89 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 90 | AT_CHECK([../../molecuilder --dry-run -i $file -o xyz -d 2 1 1 --undo --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 91 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 92 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 93 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 94 | 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])
|
---|
| 95 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 96 |
|
---|
| 97 | file=test-y.conf
|
---|
| 98 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 99 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 100 | AT_CHECK([../../molecuilder --dry-run -i $file -o xyz -d 1 2 1 --undo --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 101 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 102 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 103 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 104 | 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])
|
---|
| 105 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 106 |
|
---|
| 107 | file=test-z.conf
|
---|
| 108 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 109 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 110 | AT_CHECK([../../molecuilder --dry-run -i $file -o xyz -d 1 1 2 --undo --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 111 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 112 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 113 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 114 | 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])
|
---|
| 115 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 116 |
|
---|
| 117 | file=ec.data
|
---|
| 118 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/ec.* .], 0)
|
---|
| 119 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 120 | AT_CHECK([../../molecuilder --dry-run --parse-tremolo-potentials ec.potentials -i $file -o tremolo -d 2 2 2 --undo --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 121 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 122 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 123 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/$file], 0, [ignore], [ignore])
|
---|
| 124 |
|
---|
| 125 | AT_CLEANUP
|
---|
| 126 |
|
---|
| 127 |
|
---|
| 128 | AT_SETUP([Domain - duplicating box with Redo])
|
---|
| 129 | AT_KEYWORDS([domain repeat-box redo])
|
---|
| 130 |
|
---|
| 131 | file=test.conf
|
---|
| 132 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 133 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 134 | AT_CHECK([../../molecuilder --dry-run -i $file -o xyz -d 1 1 1 --undo --redo --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 135 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 136 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 137 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 138 | 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])
|
---|
| 139 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 140 |
|
---|
| 141 | file=test-x.conf
|
---|
| 142 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 143 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 144 | AT_CHECK([../../molecuilder --dry-run -i $file -o xyz -d 2 1 1 --undo --redo --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 145 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 146 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 147 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 148 | 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])
|
---|
| 149 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 150 |
|
---|
| 151 | file=test-y.conf
|
---|
| 152 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 153 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 154 | AT_CHECK([../../molecuilder --dry-run -i $file -o xyz -d 1 2 1 --undo --redo --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 155 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 156 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 157 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 158 | 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])
|
---|
| 159 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 160 |
|
---|
| 161 | file=test-z.conf
|
---|
| 162 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 163 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 164 | AT_CHECK([../../molecuilder --dry-run -i $file -o xyz -d 1 1 2 --undo --redo --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 165 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 166 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 167 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 168 | 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])
|
---|
| 169 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 170 |
|
---|
| 171 | file=ec.data
|
---|
| 172 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/ec.* .], 0)
|
---|
| 173 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
| 174 | AT_CHECK([../../molecuilder --dry-run --parse-tremolo-potentials ec.potentials -i $file -o tremolo -d 2 2 2 --undo --redo --no-dry-run --store-session session-domain-repeat-box.py --session-type python], 0, [stdout], [stderr])
|
---|
| 175 | AT_CHECK([grep -v "Command.*DryRun" session-domain-repeat-box.py >session-domain-repeat-box_new.py], 0, [ignore], [ignore])
|
---|
| 176 | AT_CHECK([../../molecuilderguitest session-domain-repeat-box_new.py], 0, [stdout], [stderr])
|
---|
| 177 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/$file], 0, [ignore], [ignore])
|
---|
| 178 |
|
---|
| 179 | AT_CLEANUP
|
---|