diff options
Diffstat (limited to 'xdelta3/xdelta3-regtest.py')
-rwxr-xr-x | xdelta3/xdelta3-regtest.py | 28 |
1 files changed, 14 insertions, 14 deletions
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 | |||
23 | import xdelta3 | 23 | import xdelta3 |
24 | 24 | ||
25 | #RCSDIR = '/mnt/polaroid/Polaroid/orbit_linux/home/jmacd/PRCS' | 25 | #RCSDIR = '/mnt/polaroid/Polaroid/orbit_linux/home/jmacd/PRCS' |
26 | RCSDIR = '/tmp/PRCS_read_copy' | 26 | #RCSDIR = '/tmp/PRCS_read_copy' |
27 | SAMPLEDIR = "/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" | 30 | SAMPLEDIR = "C:/sample_data/Wesnoth/tar" |
31 | 31 | ||
32 | # | 32 | # |
33 | MIN_SIZE = 0 | 33 | MIN_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) |