mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
ca7bc2f0f7
Summary: Build the store tests on mode/mac. RocksDB doesn't build yet (and we will likely move away from it anyway) so split it into its own target. Reviewed By: simpkins Differential Revision: D15002840 fbshipit-source-id: fa0fea1d52df06526032a6fd585e2da7273910ef
30 lines
853 B
C++
30 lines
853 B
C++
/*
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
*/
|
|
#include "eden/fs/store/RocksDbLocalStore.h"
|
|
#include "eden/fs/store/test/LocalStoreTest.h"
|
|
|
|
namespace {
|
|
|
|
using namespace facebook::eden;
|
|
|
|
LocalStoreImplResult makeRocksDbLocalStore(FaultInjector* faultInjector) {
|
|
auto tempDir = makeTempDir();
|
|
auto store = std::make_unique<RocksDbLocalStore>(
|
|
AbsolutePathPiece{tempDir.path().string()}, faultInjector);
|
|
return {std::move(tempDir), std::move(store)};
|
|
}
|
|
|
|
INSTANTIATE_TEST_CASE_P(
|
|
RocksDB,
|
|
LocalStoreTest,
|
|
::testing::Values(makeRocksDbLocalStore));
|
|
|
|
} // namespace
|