2021-03-04 17:09:48 +08:00
|
|
|
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
|
|
|
|
// with the License. You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
|
|
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
|
|
// or implied. See the License for the specific language governing permissions and limitations under the License
|
|
|
|
|
|
|
|
#include <gtest/gtest.h>
|
2023-08-13 20:41:31 +08:00
|
|
|
|
2024-06-22 09:38:02 +08:00
|
|
|
#include "folly/init/Init.h"
|
2023-06-25 14:38:44 +08:00
|
|
|
#include "test_utils/Constants.h"
|
|
|
|
#include "storage/LocalChunkManagerSingleton.h"
|
2023-08-13 20:41:31 +08:00
|
|
|
#include "storage/RemoteChunkManagerSingleton.h"
|
|
|
|
#include "test_utils/storage_test_utils.h"
|
2021-10-11 17:04:29 +08:00
|
|
|
|
2021-03-04 17:09:48 +08:00
|
|
|
int
|
|
|
|
main(int argc, char** argv) {
|
|
|
|
::testing::InitGoogleTest(&argc, argv);
|
2024-06-22 09:38:02 +08:00
|
|
|
folly::Init follyInit(&argc, &argv, false);
|
|
|
|
|
2023-06-25 14:38:44 +08:00
|
|
|
milvus::storage::LocalChunkManagerSingleton::GetInstance().Init(
|
|
|
|
TestLocalPath);
|
2023-08-13 20:41:31 +08:00
|
|
|
milvus::storage::RemoteChunkManagerSingleton::GetInstance().Init(
|
|
|
|
get_default_local_storage_config());
|
2024-06-18 14:42:00 +08:00
|
|
|
milvus::storage::MmapManager::GetInstance().Init(get_default_mmap_config());
|
2021-03-04 17:09:48 +08:00
|
|
|
|
|
|
|
return RUN_ALL_TESTS();
|
2023-03-27 18:22:02 +08:00
|
|
|
}
|