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 | AT_CLEANUP
|
---|
43 |
|
---|
44 |
|
---|
45 | AT_SETUP([Domain - duplicating box with Undo])
|
---|
46 | AT_KEYWORDS([domain repeat-box undo])
|
---|
47 |
|
---|
48 | file=test.conf
|
---|
49 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
50 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
51 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 1" --undo], 0, [stdout], [stderr])
|
---|
52 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
53 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
54 | 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])
|
---|
55 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
56 |
|
---|
57 | file=test-x.conf
|
---|
58 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
59 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
60 | AT_CHECK([../../molecuilder -i $file -o xyz -d "2, 1, 1" --undo], 0, [stdout], [stderr])
|
---|
61 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
62 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
63 | 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])
|
---|
64 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
65 |
|
---|
66 | file=test-y.conf
|
---|
67 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
68 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
69 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 2, 1" --undo], 0, [stdout], [stderr])
|
---|
70 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
71 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
72 | 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])
|
---|
73 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
74 |
|
---|
75 | file=test-z.conf
|
---|
76 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
77 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
78 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 2" --undo], 0, [stdout], [stderr])
|
---|
79 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
80 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
81 | 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])
|
---|
82 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
83 |
|
---|
84 | AT_CLEANUP
|
---|
85 |
|
---|
86 |
|
---|
87 | AT_SETUP([Domain - duplicating box with Redo])
|
---|
88 | AT_KEYWORDS([domain repeat-box redo])
|
---|
89 |
|
---|
90 | file=test.conf
|
---|
91 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
92 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
93 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 1" --undo --redo], 0, [stdout], [stderr])
|
---|
94 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
95 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
96 | 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])
|
---|
97 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
98 |
|
---|
99 | file=test-x.conf
|
---|
100 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
101 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
102 | AT_CHECK([../../molecuilder -i $file -o xyz -d "2, 1, 1" --undo --redo], 0, [stdout], [stderr])
|
---|
103 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
104 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
105 | 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])
|
---|
106 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
107 |
|
---|
108 | file=test-y.conf
|
---|
109 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
110 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
111 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 2, 1" --undo --redo], 0, [stdout], [stderr])
|
---|
112 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
113 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
114 | 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])
|
---|
115 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
116 |
|
---|
117 | file=test-z.conf
|
---|
118 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
119 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
120 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 2" --undo --redo], 0, [stdout], [stderr])
|
---|
121 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
122 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
123 | 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])
|
---|
124 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
125 |
|
---|
126 | AT_CLEANUP
|
---|