2019-09-17 02:51:48 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
# or more contributor license agreements. See the NOTICE file
|
|
|
|
# distributed with this work for additional information
|
|
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
|
|
# to you 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.
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2019-11-14 03:22:07 +00:00
|
|
|
set(test_files
|
|
|
|
test_metricbase.cpp
|
|
|
|
test_metrics.cpp
|
|
|
|
utils.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
if (MILVUS_WITH_PROMETHEUS)
|
|
|
|
set(test_files ${test_files}
|
|
|
|
test_prometheus.cpp)
|
|
|
|
endif ()
|
2019-05-28 05:34:47 +00:00
|
|
|
|
2019-09-29 03:52:55 +00:00
|
|
|
add_executable(test_metrics
|
2019-09-18 09:30:05 +00:00
|
|
|
${common_files}
|
2019-09-18 07:49:47 +00:00
|
|
|
${test_files}
|
2019-06-30 08:19:04 +00:00
|
|
|
)
|
2019-05-28 05:34:47 +00:00
|
|
|
|
2019-09-29 03:52:55 +00:00
|
|
|
target_link_libraries(test_metrics
|
|
|
|
knowhere
|
|
|
|
${unittest_libs})
|
2019-06-19 07:46:14 +00:00
|
|
|
|
2019-09-29 03:52:55 +00:00
|
|
|
install(TARGETS test_metrics DESTINATION unittest)
|