1 | ### duplicating box
|
---|
2 |
|
---|
3 | AT_SETUP([Domain - duplicating box])
|
---|
4 | AT_KEYWORDS([domain repeat-box])
|
---|
5 |
|
---|
6 | file=test.conf
|
---|
7 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
8 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
9 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 1], 0, [stdout], [stderr])
|
---|
10 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
11 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
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])
|
---|
13 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
14 |
|
---|
15 | file=test-x.conf
|
---|
16 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
17 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
18 | AT_CHECK([../../molecuilder -i $file -o xyz -d 2 1 1], 0, [stdout], [stderr])
|
---|
19 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
20 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
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])
|
---|
22 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
23 |
|
---|
24 | file=test-y.conf
|
---|
25 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
26 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
27 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 2 1], 0, [stdout], [stderr])
|
---|
28 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
29 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
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])
|
---|
31 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
32 |
|
---|
33 | file=test-z.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 -i $file -o xyz -d 1 1 2], 0, [stdout], [stderr])
|
---|
37 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
38 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
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])
|
---|
40 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
41 |
|
---|
42 | file=ec.data
|
---|
43 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/ec.* .], 0)
|
---|
44 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
45 | AT_CHECK([../../molecuilder --parse-tremolo-potentials ec.potentials -i $file -o tremolo -d 2 2 2], 0, [stdout], [stderr])
|
---|
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 |
|
---|
49 | AT_CLEANUP
|
---|
50 |
|
---|
51 |
|
---|
52 | AT_SETUP([Domain - duplicating box with Undo])
|
---|
53 | AT_KEYWORDS([domain repeat-box undo])
|
---|
54 |
|
---|
55 | file=test.conf
|
---|
56 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
57 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
58 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 1 --undo], 0, [stdout], [stderr])
|
---|
59 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
60 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
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])
|
---|
62 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
63 |
|
---|
64 | file=test-x.conf
|
---|
65 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
66 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
67 | AT_CHECK([../../molecuilder -i $file -o xyz -d 2 1 1 --undo], 0, [stdout], [stderr])
|
---|
68 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
69 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
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])
|
---|
71 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
72 |
|
---|
73 | file=test-y.conf
|
---|
74 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
75 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
76 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 2 1 --undo], 0, [stdout], [stderr])
|
---|
77 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
78 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
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])
|
---|
80 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
81 |
|
---|
82 | file=test-z.conf
|
---|
83 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
84 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
85 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 2 --undo], 0, [stdout], [stderr])
|
---|
86 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
87 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
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])
|
---|
89 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
90 |
|
---|
91 | file=ec.data
|
---|
92 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/ec.* .], 0)
|
---|
93 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
94 | AT_CHECK([../../molecuilder --parse-tremolo-potentials ec.potentials -i $file -o tremolo -d 2 2 2 --undo], 0, [stdout], [stderr])
|
---|
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 |
|
---|
98 | AT_CLEANUP
|
---|
99 |
|
---|
100 |
|
---|
101 | AT_SETUP([Domain - duplicating box with Redo])
|
---|
102 | AT_KEYWORDS([domain repeat-box redo])
|
---|
103 |
|
---|
104 | file=test.conf
|
---|
105 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
106 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
107 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 1 --undo --redo], 0, [stdout], [stderr])
|
---|
108 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
109 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
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])
|
---|
111 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
112 |
|
---|
113 | file=test-x.conf
|
---|
114 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
115 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
116 | AT_CHECK([../../molecuilder -i $file -o xyz -d 2 1 1 --undo --redo], 0, [stdout], [stderr])
|
---|
117 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
118 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
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])
|
---|
120 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
121 |
|
---|
122 | file=test-y.conf
|
---|
123 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
124 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
125 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 2 1 --undo --redo], 0, [stdout], [stderr])
|
---|
126 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
127 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
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])
|
---|
129 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
130 |
|
---|
131 | file=test-z.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 -i $file -o xyz -d 1 1 2 --undo --redo], 0, [stdout], [stderr])
|
---|
135 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
136 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
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])
|
---|
138 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
139 |
|
---|
140 | file=ec.data
|
---|
141 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/ec.* .], 0)
|
---|
142 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
143 | AT_CHECK([../../molecuilder --parse-tremolo-potentials ec.potentials -i $file -o tremolo -d 2 2 2 --undo --redo], 0, [stdout], [stderr])
|
---|
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 |
|
---|
147 | AT_CLEANUP
|
---|