1 <?xml version="1.0" encoding="UTF-8"?>
2 <configuration>
3 <!--
4 Test 1: default settings after add-directory
5 -->
6 <directory>
7 <name>test1a</name>
8 <path>$HOME/tmp-sync/test1a</path>
9 <repository>dav-test-repo</repository>
10 <collection>/sync/test1</collection>
11 <trash>.trash</trash>
12 <database>dav-sync-tests-test1a-db.xml</database>
13 </directory>
14
15 <directory>
16 <name>test1b</name>
17 <path>$HOME/tmp-sync/test1b</path>
18 <repository>dav-test-repo</repository>
19 <collection>/sync/test1</collection>
20 <trash>.trash</trash>
21 <database>dav-sync-tests-test1b-db.xml</database>
22 </directory>
23
24 <!--
25 Test 2: enabled hashing
26 -->
27 <directory>
28 <name>test2a</name>
29 <path>$HOME/tmp-sync/test2a</path>
30 <repository>dav-test-repo</repository>
31 <collection>/sync/test2</collection>
32 <trash>.trash</trash>
33 <database>dav-sync-tests-test2a-db.xml</database>
34 <hashing>true</hashing>
35 </directory>
36
37 <directory>
38 <name>test2b</name>
39 <path>$HOME/tmp-sync/test2b</path>
40 <repository>dav-test-repo</repository>
41 <collection>/sync/test2</collection>
42 <trash>.trash</trash>
43 <database>dav-sync-tests-test2b-db.xml</database>
44 <hashing>true</hashing>
45 </directory>
46
47 <directory>
48 <!-- same as test2a but with push strategy hash -->
49 <name>test2ah</name>
50 <path>$HOME/tmp-sync/test2a</path>
51 <repository>dav-test-repo</repository>
52 <collection>/sync/test2</collection>
53 <trash>.trash</trash>
54 <database>dav-sync-tests-test2a-db.xml</database>
55 <hashing>true</hashing>
56 <push-strategy>hash</push-strategy>
57 </directory>
58
59 <directory>
60 <name>test2bh</name>
61 <!-- same as test2b but with push strategy hash -->
62 <path>$HOME/tmp-sync/test2b</path>
63 <repository>dav-test-repo</repository>
64 <collection>/sync/test2</collection>
65 <trash>.trash</trash>
66 <database>dav-sync-tests-test2b-db.xml</database>
67 <hashing>true</hashing>
68 <push-strategy>hash</push-strategy>
69 </directory>
70
71 <!--
72 Test 3: transition from sync without hashing to sync with hashing
73 -->
74 <directory>
75 <name>test3a</name>
76 <path>$HOME/tmp-sync/test3a</path>
77 <repository>dav-test-repo</repository>
78 <collection>/sync/test3</collection>
79 <trash>.trash</trash>
80 <database>dav-sync-tests-test3a-db.xml</database>
81 </directory>
82
83 <directory>
84 <name>test3b</name>
85 <path>$HOME/tmp-sync/test3b</path>
86 <repository>dav-test-repo</repository>
87 <collection>/sync/test3</collection>
88 <trash>.trash</trash>
89 <database>dav-sync-tests-test3b-db.xml</database>
90 </directory>
91
92 <directory>
93 <name>test3ah</name>
94 <path>$HOME/tmp-sync/test3a</path>
95 <repository>dav-test-repo</repository>
96 <collection>/sync/test3</collection>
97 <trash>.trash</trash>
98 <database>dav-sync-tests-test3a-db.xml</database>
99 <hashing>true</hashing>
100 </directory>
101
102 <directory>
103 <name>test3bh</name>
104 <path>$HOME/tmp-sync/test3b</path>
105 <repository>dav-test-repo</repository>
106 <collection>/sync/test3</collection>
107 <trash>.trash</trash>
108 <database>dav-sync-tests-test3b-db.xml</database>
109 <hashing>true</hashing>
110 </directory>
111
112 <!--
113 Test 4: metadata sync
114 -->
115 <directory>
116 <name>test4a</name>
117 <path>$HOME/tmp-sync/test4a</path>
118 <repository>dav-test-repo</repository>
119 <collection>/sync/test4</collection>
120 <trash>.trash</trash>
121 <database>dav-sync-tests-test4a-db.xml</database>
122
123 <hashing>true</hashing>
124
125 <tagconfig>
126 <local-store format="csv">xattr</local-store>
127 <detect-changes>true</detect-changes>
128 <on-conflict>merge</on-conflict>
129 </tagconfig>
130 <metadata>all</metadata>
131 </directory>
132
133 <directory>
134 <name>test4b</name>
135 <path>$HOME/tmp-sync/test4b</path>
136 <repository>dav-test-repo</repository>
137 <collection>/sync/test4</collection>
138 <trash>.trash</trash>
139 <database>dav-sync-tests-test4b-db.xml</database>
140
141 <hashing>true</hashing>
142
143 <tagconfig>
144 <local-store format="csv">xattr</local-store>
145 <detect-changes>true</detect-changes>
146 <on-conflict>merge</on-conflict>
147 </tagconfig>
148 <metadata>all</metadata>
149 </directory>
150
151 <directory>
152 <name>test4akl</name>
153 <path>$HOME/tmp-sync/test4akl</path>
154 <repository>dav-test-repo</repository>
155 <collection>/sync/test4</collection>
156 <trash>.trash</trash>
157 <database>dav-sync-tests-test4akl-db.xml</database>
158
159 <hashing>true</hashing>
160
161 <tagconfig>
162 <local-store format="csv">xattr</local-store>
163 <detect-changes>true</detect-changes>
164 <on-conflict>keep_local</on-conflict>
165 </tagconfig>
166 <metadata>all</metadata>
167 </directory>
168
169 <directory>
170 <name>test4bkr</name>
171 <path>$HOME/tmp-sync/test4bkr</path>
172 <repository>dav-test-repo</repository>
173 <collection>/sync/test4</collection>
174 <trash>.trash</trash>
175 <database>dav-sync-tests-test4bkr-db.xml</database>
176
177 <hashing>true</hashing>
178
179 <tagconfig>
180 <local-store format="csv">xattr</local-store>
181 <detect-changes>true</detect-changes>
182 <on-conflict>keep_remote</on-conflict>
183 </tagconfig>
184 <metadata>all</metadata>
185 </directory>
186
187 <!--
188 Test 5: Versioning
189 -->
190 <directory>
191 <name>test5a</name>
192 <path>$HOME/tmp-sync/test5a</path>
193 <repository>dav-test-repo</repository>
194 <collection>/sync/test5</collection>
195 <trash>.trash</trash>
196 <database>dav-sync-tests-test5a-db.xml</database>
197
198 <hashing>true</hashing>
199
200 <versioning type="simple" always="true" />
201 </directory>
202
203 <directory>
204 <name>test5b</name>
205 <path>$HOME/tmp-sync/test5b</path>
206 <repository>dav-test-repo</repository>
207 <collection>/sync/test5</collection>
208 <trash>.trash</trash>
209 <database>dav-sync-tests-test5b-db.xml</database>
210
211 <hashing>true</hashing>
212
213 <versioning type="simple" always="true" />
214 </directory>
215
216 <!--
217 Test 6: split
218 -->
219 <directory>
220 <name>test6a</name>
221 <path>$HOME/tmp-sync/test6a</path>
222 <repository>dav-test-repo</repository>
223 <collection>/sync/test6</collection>
224 <trash>.trash</trash>
225 <database>dav-sync-tests-test6a-db.xml</database>
226
227 <hashing>true</hashing>
228
229 <splitconfig>
230 <split>
231 <minsize>4m</minsize>
232 <blocksize>1m</blocksize>
233 </split>
234 </splitconfig>
235 </directory>
236
237 <directory>
238 <name>test6b</name>
239 <path>$HOME/tmp-sync/test6b</path>
240 <repository>dav-test-repo</repository>
241 <collection>/sync/test6</collection>
242 <trash>.trash</trash>
243 <database>dav-sync-tests-test6b-db.xml</database>
244
245 <hashing>true</hashing>
246
247 <splitconfig>
248 <split>
249 <minsize>4m</minsize>
250 <blocksize>1m</blocksize>
251 </split>
252 </splitconfig>
253 </directory>
254
255 <!--
256 Test 7: symlinks
257 -->
258 <directory>
259 <name>test7a</name>
260 <path>$HOME/tmp-sync/test7a</path>
261 <repository>dav-test-repo</repository>
262 <collection>/sync/test7</collection>
263 <trash>.trash</trash>
264 <database>dav-sync-tests-test7a-db.xml</database>
265
266 <symlink-intern>sync</symlink-intern>
267 </directory>
268
269 <directory>
270 <name>test7b</name>
271 <path>$HOME/tmp-sync/test7b</path>
272 <repository>dav-test-repo</repository>
273 <collection>/sync/test7</collection>
274 <trash>.trash</trash>
275 <database>dav-sync-tests-test7b-db.xml</database>
276
277 <symlink-intern>sync</symlink-intern>
278 </directory>
279
280 <directory>
281 <name>test7a1</name> <!-- same dir/db as test7a -->
282 <path>$HOME/tmp-sync/test7a</path>
283 <repository>dav-test-repo</repository>
284 <collection>/sync/test7</collection>
285 <trash>.trash</trash>
286 <database>dav-sync-tests-test7a-db.xml</database>
287
288 <symlink-intern>ignore</symlink-intern>
289 <symlink-extern>ignore</symlink-extern>
290 </directory>
291
292 <directory>
293 <name>test7a2</name> <!-- same dir/db as test7a -->
294 <path>$HOME/tmp-sync/test7a</path>
295 <repository>dav-test-repo</repository>
296 <collection>/sync/test7</collection>
297 <trash>.trash</trash>
298 <database>dav-sync-tests-test7a-db.xml</database>
299
300 <symlink-intern>sync</symlink-intern>
301 <symlink-extern>ignore</symlink-extern>
302 </directory>
303 </configuration>
304