summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/suite/test_bulk02.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/suite/test_bulk02.py')
-rw-r--r--src/third_party/wiredtiger/test/suite/test_bulk02.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/test/suite/test_bulk02.py b/src/third_party/wiredtiger/test/suite/test_bulk02.py
index d41291fd367..cd81f2cbb8b 100644
--- a/src/third_party/wiredtiger/test/suite/test_bulk02.py
+++ b/src/third_party/wiredtiger/test/suite/test_bulk02.py
@@ -43,18 +43,24 @@ class test_bulkload_checkpoint(wttest.WiredTigerTestCase, suite_subprocess):
('file', dict(uri='file:data')),
('table', dict(uri='table:data')),
]
+ configs = [
+ ('fix', dict(keyfmt='r', valfmt='8t')),
+ ('var', dict(keyfmt='r', valfmt='S')),
+ ('row', dict(keyfmt='S', valfmt='S')),
+ ]
ckpt_type = [
('named', dict(ckpt_type='named')),
('unnamed', dict(ckpt_type='unnamed')),
]
- scenarios = make_scenarios(types, ckpt_type)
+ scenarios = make_scenarios(types, configs, ckpt_type)
# Bulk-load handles are skipped by checkpoints.
# Named and unnamed checkpoint versions.
def test_bulkload_checkpoint(self):
# Open a bulk cursor and insert a few records.
- self.session.create(self.uri, 'key_format=S,value_format=S')
+ config = 'key_format={},value_format={}'.format(self.keyfmt, self.valfmt)
+ self.session.create(self.uri, config)
cursor = self.session.open_cursor(self.uri, None, 'bulk')
for i in range(1, 10):
cursor[simple_key(cursor, i)] = simple_value(cursor, i)
@@ -82,6 +88,11 @@ class test_bulkload_backup(wttest.WiredTigerTestCase, suite_subprocess):
('file', dict(uri='file:data')),
('table', dict(uri='table:data')),
]
+ configs = [
+ ('fix', dict(keyfmt='r', valfmt='8t')),
+ ('var', dict(keyfmt='r', valfmt='S')),
+ ('row', dict(keyfmt='S', valfmt='S')),
+ ]
ckpt_type = [
('named', dict(ckpt_type='named')),
('none', dict(ckpt_type='none')),
@@ -91,7 +102,7 @@ class test_bulkload_backup(wttest.WiredTigerTestCase, suite_subprocess):
('different', dict(session_type='different')),
('same', dict(session_type='same')),
]
- scenarios = make_scenarios(types, ckpt_type, session_type)
+ scenarios = make_scenarios(types, configs, ckpt_type, session_type)
# Backup a set of chosen tables/files using the wt backup command.
# The only files are bulk-load files, so they shouldn't be copied.
@@ -108,7 +119,8 @@ class test_bulkload_backup(wttest.WiredTigerTestCase, suite_subprocess):
def test_bulk_backup(self):
# Open a bulk cursor and insert a few records.
- self.session.create(self.uri, 'key_format=S,value_format=S')
+ config = 'key_format={},value_format={}'.format(self.keyfmt, self.valfmt)
+ self.session.create(self.uri, config)
cursor = self.session.open_cursor(self.uri, None, 'bulk')
for i in range(1, 10):
cursor[simple_key(cursor, i)] = simple_value(cursor, i)