fork of https://github.com/rust-rocksdb/rust-rocksdb for nextgraph
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
436 B
10 lines
436 B
1 year ago
|
# shellcheck disable=SC2148
|
||
|
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||
|
TESTDIR=`mktemp -d ${TMPDIR:-/tmp}/rocksdb-dump-test.XXXXX`
|
||
|
DUMPFILE="tools/sample-dump.dmp"
|
||
|
|
||
|
# Verify that the sample dump file is undumpable and then redumpable.
|
||
|
./rocksdb_undump --dump_location=$DUMPFILE --db_path=$TESTDIR/db
|
||
|
./rocksdb_dump --anonymous --db_path=$TESTDIR/db --dump_location=$TESTDIR/dump
|
||
|
cmp $DUMPFILE $TESTDIR/dump
|