summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing/highleveltest.py
blob: 3bd10c392dee8df39e839df4dc214071b3302186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import unittest

execfile("commontest.py")
rbexec("main.py")


class RemoteMirrorTest(unittest.TestCase):
	"""Test mirroring"""
	def setUp(self):
		"""Start server"""
		Log.setverbosity(7)
		Globals.change_source_perms = 1
		SetConnections.UpdateGlobal('checkpoint_interval', 3)

	def testMirror(self):
		"""Testing simple mirror"""
		MirrorTest(None, None, ["testfiles/increment1"])

	def testMirror2(self):
		"""Test mirror with larger data set"""
		MirrorTest(1, None, ['testfiles/increment1', 'testfiles/increment2',
							 'testfiles/increment3', 'testfiles/increment4'])

	def testMirrorWithCheckpointing(self):
		"""Like testMirror but this time checkpoint"""
		MirrorTest(None, None, ["testfiles/increment1"], 1)

	def testMirrorWithCheckpointing2(self):
		"""Larger data set"""
		MirrorTest(1, None, ['testfiles/increment1', 'testfiles/increment2',
							 'testfiles/increment3', 'testfiles/increment4'],
				   1)



if __name__ == "__main__": unittest.main()