2018-01-29 20:43:56 +00:00
|
|
|
# shellcheck disable=SC2148
|
2017-04-22 03:41:37 +00:00
|
|
|
TESTDIR=`mktemp -d ${TMPDIR:-/tmp}/rocksdb-dump-test.XXXXX`
|
2015-06-19 23:24:36 +00:00
|
|
|
DUMPFILE="tools/sample-dump.dmp"
|
|
|
|
|
|
|
|
# Verify that the sample dump file is undumpable and then redumpable.
|
2015-10-06 02:49:48 +00:00
|
|
|
./rocksdb_undump --dump_location=$DUMPFILE --db_path=$TESTDIR/db
|
|
|
|
./rocksdb_dump --anonymous --db_path=$TESTDIR/db --dump_location=$TESTDIR/dump
|
2015-06-19 23:24:36 +00:00
|
|
|
cmp $DUMPFILE $TESTDIR/dump
|