test/bin-test/dav-home/sync.xml

Sun, 20 Oct 2019 10:35:02 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 20 Oct 2019 10:35:02 +0200
changeset 666
97061483d06e
parent 663
888aa263c0f1
child 667
6cdcd3e4e368
permissions
-rw-r--r--

fix xml generation

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
	<!--
	Test 1: default settings after add-directory
	-->
	<directory>
		<name>test1a</name>
		<path>$HOME/tmp-sync/test1a</path>
		<repository>dav-test-repo</repository>
		<collection>/sync/test1</collection>
		<trash>.trash</trash>
		<database>dav-sync-tests-test1a-db.xml</database>
	</directory>
	
	<directory>
		<name>test1b</name>
		<path>$HOME/tmp-sync/test1b</path>
		<repository>dav-test-repo</repository>
		<collection>/sync/test1</collection>
		<trash>.trash</trash>
		<database>dav-sync-tests-test1b-db.xml</database>
	</directory>
	
	<!--
	Test 2: enabled hashing
	-->
	<directory>
		<name>test2a</name>
		<path>$HOME/tmp-sync/test2a</path>
		<repository>dav-test-repo</repository>
		<collection>/sync/test2</collection>
		<trash>.trash</trash>
		<database>dav-sync-tests-test2a-db.xml</database>
		<hashing>true</hashing>
	</directory>
	
	<directory>
		<name>test2b</name>
		<path>$HOME/tmp-sync/test2b</path>
		<repository>dav-test-repo</repository>
		<collection>/sync/test2</collection>
		<trash>.trash</trash>
		<database>dav-sync-tests-test2b-db.xml</database>
		<hashing>true</hashing>
	</directory>
	
	<directory>
		<!-- same as test2a but with push strategy hash -->
		<name>test2ah</name>
		<path>$HOME/tmp-sync/test2a</path>
		<repository>dav-test-repo</repository>
		<collection>/sync/test2</collection>
		<trash>.trash</trash>
		<database>dav-sync-tests-test2a-db.xml</database>
		<hashing>true</hashing>
		<push-strategy>hash</push-strategy>
	</directory>
	
	<directory>
		<name>test2bh</name>
		<!-- same as test2b but with push strategy hash -->
		<path>$HOME/tmp-sync/test2b</path>
		<repository>dav-test-repo</repository>
		<collection>/sync/test2</collection>
		<trash>.trash</trash>
		<database>dav-sync-tests-test2b-db.xml</database>
		<hashing>true</hashing>
		<push-strategy>hash</push-strategy>
	</directory>
	
	<!--
	Test 3: transition from sync without hashing to sync with hashing
	-->
	<directory>
		<name>test3a</name>
		<path>$HOME/tmp-sync/test3a</path>
		<repository>dav-test-repo</repository>
		<collection>/sync/test3</collection>
		<trash>.trash</trash>
		<database>dav-sync-tests-test3a-db.xml</database>
	</directory>
	
	<directory>
		<name>test3b</name>
		<path>$HOME/tmp-sync/test3b</path>
		<repository>dav-test-repo</repository>
		<collection>/sync/test3</collection>
		<trash>.trash</trash>
		<database>dav-sync-tests-test3b-db.xml</database>
	</directory>
	
	<directory>
		<name>test3ah</name>
		<path>$HOME/tmp-sync/test3a</path>
		<repository>dav-test-repo</repository>
		<collection>/sync/test3</collection>
		<trash>.trash</trash>
		<database>dav-sync-tests-test3a-db.xml</database>
		<hashing>true</hashing>
	</directory>
	
	<directory>
		<name>test3bh</name>
		<path>$HOME/tmp-sync/test3b</path>
		<repository>dav-test-repo</repository>
		<collection>/sync/test3</collection>
		<trash>.trash</trash>
		<database>dav-sync-tests-test3b-db.xml</database>
		<hashing>true</hashing>
	</directory>
	
	<!--
	Test 4: metadata sync
	-->
	<directory>
		<name>test4a</name>
		<path>$HOME/tmp-sync/test4a</path>
		<repository>dav-test-repo</repository>
		<collection>/sync/test4</collection>
		<trash>.trash</trash>
		<database>dav-sync-tests-test4a-db.xml</database>
		
		<hashing>true</hashing>
		
		<tagconfig>
			<local-store format="csv">xattr</local-store>
		</tagconfig>
		<metadata>all</metadata>
	</directory>
	
	<directory>
		<name>test4b</name>
		<path>$HOME/tmp-sync/test4b</path>
		<repository>dav-test-repo</repository>
		<collection>/sync/test4</collection>
		<trash>.trash</trash>
		<database>dav-sync-tests-test4b-db.xml</database>
		
		<hashing>true</hashing>
		
		<tagconfig>
			<local-store format="csv">xattr</local-store>
		</tagconfig>
		<metadata>all</metadata>
	</directory>
</configuration>

mercurial