Commit 79e7c8a3 authored by Dave Wells's avatar Dave Wells Committed by Yoni Fogel

create a stress test for fileops. still a work in progress, but worth checking in

git-svn-id: file:///svn/toku/tokudb@16181 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4fdf9787
......@@ -103,6 +103,7 @@ BDB_DONTRUN_TESTS = \
checkpoint_truncate_1 \
checkpoint_callback \
recovery_stress \
recovery_fileops_stress \
test_txn_nested1 \
test_txn_nested2 \
test_txn_nested3 \
......
This diff is collapsed.
......@@ -9,13 +9,14 @@ import optparse
# options
parser = optparse.OptionParser()
parser.add_option('--test', dest='test', type='string', default=None, help="name of stress test to run")
parser.add_option('--iterations', dest='iterations', type='int', default=1, help="Number of test iterations (default = 1)")
parser.add_option('--crash', dest='crash', action="store_true", default=False, help="Crash the DB every iteration (default = FALSE)")
parser.add_option('--verbose', dest='verbose', action="store_true", default=False, help="Verbose printing (default = FALSE)")
options, remainder = parser.parse_args()
def run_test():
cmd = 'recovery_stress.tdb'
cmd = options.test
if ( options.verbose ): cmd += ' -v'
if ( options.crash ): cmd += ' -C'
for i in range(options.iterations):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment