2019-04-21 09:01:02 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
2020-02-17 15:40:58 +00:00
|
|
|
# Copyright (C) 2019-2020 Zilliz. All rights reserved.
|
2019-09-17 02:51:48 +00:00
|
|
|
#
|
2020-02-17 15:40:58 +00:00
|
|
|
# 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
|
2019-09-17 02:51:48 +00:00
|
|
|
#
|
2020-02-17 15:40:58 +00:00
|
|
|
# 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.
|
2019-04-21 09:01:02 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
2019-09-17 02:51:48 +00:00
|
|
|
|
2019-11-06 08:22:38 +00:00
|
|
|
set(test_files
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_db.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_db_mysql.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_engine.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_mem.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_meta.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_meta_mysql.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_misc.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_search.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/utils.cpp)
|
2019-04-21 09:01:02 +00:00
|
|
|
|
2019-11-05 02:23:59 +00:00
|
|
|
add_executable(test_db
|
2019-09-18 09:30:05 +00:00
|
|
|
${common_files}
|
2019-09-18 07:49:47 +00:00
|
|
|
${test_files}
|
2019-09-29 03:52:55 +00:00
|
|
|
)
|
2019-07-07 12:20:30 +00:00
|
|
|
|
2019-09-29 03:52:55 +00:00
|
|
|
target_link_libraries(test_db
|
|
|
|
knowhere
|
|
|
|
${unittest_libs})
|
2019-06-19 07:46:14 +00:00
|
|
|
|
2019-09-29 03:52:55 +00:00
|
|
|
install(TARGETS test_db DESTINATION unittest)
|
2019-07-17 04:50:37 +00:00
|
|
|
|
2019-10-11 09:38:48 +00:00
|
|
|
|
|
|
|
|