6c2bf9e916
Summary: internal task: T35568575 Pull Request resolved: https://github.com/facebook/rocksdb/pull/5199 Differential Revision: D14962794 Pulled By: gfosco fbshipit-source-id: 93838ede6d0235eaecff90d200faed9a8515bbbe
10 lines
436 B
Bash
Executable File
10 lines
436 B
Bash
Executable File
# 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
|