summaryrefslogtreecommitdiff
path: root/xdelta3
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2007-10-29 06:45:15 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2007-10-29 06:45:15 +0000
commit01a2cd8795dcd17288f755c370890b6b3c1aef0d (patch)
tree7561c463066d0090ef1b63f9127459b12029ce52 /xdelta3
parentcb5d52f0e3f93125c1e03f9750c9aab7fd8c0c89 (diff)
Running experiments for new -1 and -2
Diffstat (limited to 'xdelta3')
-rw-r--r--xdelta3/setup.py4
-rwxr-xr-xxdelta3/xdelta3-regtest.py28
2 files changed, 16 insertions, 16 deletions
diff --git a/xdelta3/setup.py b/xdelta3/setup.py
index e5b67ad..872c967 100644
--- a/xdelta3/setup.py
+++ b/xdelta3/setup.py
@@ -31,9 +31,9 @@ xdelta3_ext = Extension('xdelta3main',
31 ('PYTHON_MODULE',1), 31 ('PYTHON_MODULE',1),
32 ('SECONDARY_DJW',1), 32 ('SECONDARY_DJW',1),
33 ('VCDIFF_TOOLS',1), 33 ('VCDIFF_TOOLS',1),
34 ('GENERIC_ENCODE_TABLES',1), 34 ('GENERIC_ENCODE_TABLES',0),
35 ('XD3_POSIX',1), 35 ('XD3_POSIX',1),
36 ('XD3_USE_LARGEFILE64',1), 36 ('XD3_USE_LARGEFILE64',0),
37 37
38 # the fork/exec stuff doesn't 38 # the fork/exec stuff doesn't
39 # work inside python. 39 # work inside python.
diff --git a/xdelta3/xdelta3-regtest.py b/xdelta3/xdelta3-regtest.py
index 07052f0..181ad1a 100755
--- a/xdelta3/xdelta3-regtest.py
+++ b/xdelta3/xdelta3-regtest.py
@@ -23,11 +23,11 @@ import xdelta3main
23import xdelta3 23import xdelta3
24 24
25#RCSDIR = '/mnt/polaroid/Polaroid/orbit_linux/home/jmacd/PRCS' 25#RCSDIR = '/mnt/polaroid/Polaroid/orbit_linux/home/jmacd/PRCS'
26RCSDIR = '/tmp/PRCS_read_copy' 26#RCSDIR = '/tmp/PRCS_read_copy'
27SAMPLEDIR = "/tmp/WESNOTH_tmp/diff" 27#SAMPLEDIR = "/tmp/WESNOTH_tmp/diff"
28 28
29#RCSDIR = 'G:/jmacd/PRCS/prcs/b' 29#RCSDIR = 'G:/jmacd/PRCS_copy/prcs/b'
30#SAMPLEDIR = "C:/sample_data/Wesnoth/tar" 30SAMPLEDIR = "C:/sample_data/Wesnoth/tar"
31 31
32# 32#
33MIN_SIZE = 0 33MIN_SIZE = 0
@@ -98,15 +98,15 @@ def INPUT_SPEC(rand):
98 98
99 # -C 1,2,3,4,5,6,7 99 # -C 1,2,3,4,5,6,7
100 'large_look' : lambda d: rand.choice([9]), 100 'large_look' : lambda d: rand.choice([9]),
101 'large_step' : lambda d: rand.choice([3, 5, 7, 8, 15]), 101 'large_step' : lambda d: rand.choice([15, 17, 19, 21, 23, 25, ]),
102 'small_chain' : lambda d: rand.choice([40, 10, 4, 1]),
103 'small_lchain' : lambda d: rand.choice([x for x in [10, 4, 2, 1] if x <= d['small_chain']]),
104 'max_lazy' : lambda d: rand.choice([9, 18, 27, 36, 72, 108]),
105 'long_enough' : lambda d: rand.choice([9, 18, 27, 36, 72, 108]),
106 'small_look' : lambda d: rand.choice([4]), 102 'small_look' : lambda d: rand.choice([4]),
103 'small_chain' : lambda d: rand.choice([1]),
104 'small_lchain' : lambda d: rand.choice([1]),
105 'max_lazy' : lambda d: rand.choice([4, 5, 7, 11, 18, ]),
106 'long_enough' : lambda d: rand.choice([18, ]),
107 107
108 # -N 108 # -N
109 'nocompress' : lambda d: rand.choice(['true']), 109 'nocompress' : lambda d: rand.choice(['false']),
110 110
111 # -T 111 # -T
112 'altcode' : lambda d: rand.choice(['false']), 112 'altcode' : lambda d: rand.choice(['false']),
@@ -1199,11 +1199,11 @@ if __name__ == "__main__":
1199 RunCommand(['rm', '-rf', TMPDIR]) 1199 RunCommand(['rm', '-rf', TMPDIR])
1200 os.mkdir(TMPDIR) 1200 os.mkdir(TMPDIR)
1201 1201
1202 rcsf = GetTestRcsFiles() 1202 #rcsf = GetTestRcsFiles()
1203 generator = rcsf.Generator() 1203 #generator = rcsf.Generator()
1204 1204
1205 #sample = SampleDataTest([SAMPLEDIR]) 1205 sample = SampleDataTest([SAMPLEDIR])
1206 #generator = sample.Generator() 1206 generator = sample.Generator()
1207 1207
1208 rand = random.Random(135135135135135) 1208 rand = random.Random(135135135135135)
1209 RunTestLoop(rand, generator, TEST_ROUNDS) 1209 RunTestLoop(rand, generator, TEST_ROUNDS)