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