From 01a2cd8795dcd17288f755c370890b6b3c1aef0d Mon Sep 17 00:00:00 2001 From: "josh.macdonald" Date: Mon, 29 Oct 2007 06:45:15 +0000 Subject: Running experiments for new -1 and -2 --- xdelta3/setup.py | 4 ++-- xdelta3/xdelta3-regtest.py | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'xdelta3') 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', ('PYTHON_MODULE',1), ('SECONDARY_DJW',1), ('VCDIFF_TOOLS',1), - ('GENERIC_ENCODE_TABLES',1), + ('GENERIC_ENCODE_TABLES',0), ('XD3_POSIX',1), - ('XD3_USE_LARGEFILE64',1), + ('XD3_USE_LARGEFILE64',0), # the fork/exec stuff doesn't # 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 import xdelta3 #RCSDIR = '/mnt/polaroid/Polaroid/orbit_linux/home/jmacd/PRCS' -RCSDIR = '/tmp/PRCS_read_copy' -SAMPLEDIR = "/tmp/WESNOTH_tmp/diff" +#RCSDIR = '/tmp/PRCS_read_copy' +#SAMPLEDIR = "/tmp/WESNOTH_tmp/diff" -#RCSDIR = 'G:/jmacd/PRCS/prcs/b' -#SAMPLEDIR = "C:/sample_data/Wesnoth/tar" +#RCSDIR = 'G:/jmacd/PRCS_copy/prcs/b' +SAMPLEDIR = "C:/sample_data/Wesnoth/tar" # MIN_SIZE = 0 @@ -98,15 +98,15 @@ def INPUT_SPEC(rand): # -C 1,2,3,4,5,6,7 'large_look' : lambda d: rand.choice([9]), - 'large_step' : lambda d: rand.choice([3, 5, 7, 8, 15]), - 'small_chain' : lambda d: rand.choice([40, 10, 4, 1]), - 'small_lchain' : lambda d: rand.choice([x for x in [10, 4, 2, 1] if x <= d['small_chain']]), - 'max_lazy' : lambda d: rand.choice([9, 18, 27, 36, 72, 108]), - 'long_enough' : lambda d: rand.choice([9, 18, 27, 36, 72, 108]), + 'large_step' : lambda d: rand.choice([15, 17, 19, 21, 23, 25, ]), 'small_look' : lambda d: rand.choice([4]), + 'small_chain' : lambda d: rand.choice([1]), + 'small_lchain' : lambda d: rand.choice([1]), + 'max_lazy' : lambda d: rand.choice([4, 5, 7, 11, 18, ]), + 'long_enough' : lambda d: rand.choice([18, ]), # -N - 'nocompress' : lambda d: rand.choice(['true']), + 'nocompress' : lambda d: rand.choice(['false']), # -T 'altcode' : lambda d: rand.choice(['false']), @@ -1199,11 +1199,11 @@ if __name__ == "__main__": RunCommand(['rm', '-rf', TMPDIR]) os.mkdir(TMPDIR) - rcsf = GetTestRcsFiles() - generator = rcsf.Generator() + #rcsf = GetTestRcsFiles() + #generator = rcsf.Generator() - #sample = SampleDataTest([SAMPLEDIR]) - #generator = sample.Generator() + sample = SampleDataTest([SAMPLEDIR]) + generator = sample.Generator() rand = random.Random(135135135135135) RunTestLoop(rand, generator, TEST_ROUNDS) -- cgit v1.2.3