def __init__(self, project, arguments, **kw): ProjectProcess.__init__(self, project, arguments, **kw) self.options = 'Vqfldbv' VALUE_SET = DECIMAL_DIGITS | set('.:-/ ') self.stdin_generator = BytesGenerator(1, 5000) self.value_generator = BytesGenerator(1, 30, VALUE_SET) self.queue_generator = BytesGenerator(1, 1, ASCII0) self.filename_generator = UnixPathGenerator(100) self.min_opt = 0 self.max_opt = 2
def __init__(self, project, arguments, library_path=None, **options): ProjectProcess.__init__(self, project, arguments, **options) # Options self.use_debug_file = True self.setRatio(DEFAULT_RATIO, DEFAULT_RATIO) # Locate libzzuf library if not library_path: for path in LIBRARY_PATHS: if not exists(path): continue library_path = path break if not library_path: raise ValueError("Unable to find zzuf library (try %s)" % ", ".join(LIBRARY_PATHS)) # Load zzuf using LD_PRELOAD self.env.set("LD_PRELOAD", library_path)
def __init__(self, project, arguments, library_path=None, **options): ProjectProcess.__init__(self, project, arguments, **options) # Options self.use_debug_file = True self.setRatio(DEFAULT_RATIO, DEFAULT_RATIO) # Locate libzzuf library if not library_path: for path in LIBRARY_PATHS: if not exists(path): continue library_path = path break if not library_path: raise ValueError("Unable to find zzuf library (try %s)" % ', '.join(LIBRARY_PATHS)) # Load zzuf using LD_PRELOAD self.env.set('LD_PRELOAD', library_path)