Exemplo n.º 1
0
    def setup(self, args):
        self.stack_size = 0
        self.string_depth = 0
        self.key_depth = 0
        self.max_keys = 1000

        self.has_version = False
        self.can_set_version = True
        self.can_get_commit_version = False
        self.can_use_key_selectors = True

        self.generated_keys = []
        self.outstanding_ops = []
        self.random = test_util.RandomGenerator(args.max_int_bits,
                                                args.api_version, args.types)
    def setup(self, args):
        self.random = test_util.RandomGenerator(args.max_int_bits,
                                                args.api_version, args.types)
        self.transactions = ['tr%d' % i for i in range(3)
                             ]  # SOMEDAY: parameterize this number?
        self.barrier_num = 0

        self.max_directories_per_transaction = 30
        if args.api_version < 300:
            if args.concurrency > 8:
                raise Exception(
                    'Directory HCA test does not support concurrency larger than 8 with API version less than 300'
                )

            self.max_directories_per_transaction = 8.0 / args.concurrency
Exemplo n.º 3
0
 def setup(self, args):
     self.dir_index = 0
     self.random = test_util.RandomGenerator(args.max_int_bits, args.api_version, args.types)