mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 05:18:52 +08:00
License tests success
Former-commit-id: e10d0146a51286664bb01f5d55f694e547a8f597
This commit is contained in:
parent
414cbf860f
commit
77f86fdeee
@ -20,4 +20,4 @@ set(unittest_libs
|
||||
add_subdirectory(server)
|
||||
add_subdirectory(db)
|
||||
add_subdirectory(faiss_wrapper)
|
||||
#add_subdirectory(license)
|
||||
add_subdirectory(license)
|
@ -4,50 +4,41 @@
|
||||
# Proprietary and confidential.
|
||||
#-------------------------------------------------------------------------------
|
||||
include_directories(../../src)
|
||||
include_directories(/usr/include)
|
||||
|
||||
include_directories(/usr/local/cuda/include)
|
||||
|
||||
aux_source_directory(../../src/db db_srcs)
|
||||
aux_source_directory(../../src/config config_files)
|
||||
aux_source_directory(../../src/cache cache_srcs)
|
||||
aux_source_directory(../../src/wrapper wrapper_src)
|
||||
|
||||
include_directories(/usr/local/cuda/include)
|
||||
link_directories("/usr/local/cuda/lib64")
|
||||
|
||||
set(require_files
|
||||
../../src/server/ServerConfig.cpp
|
||||
../../src/utils/CommonUtil.cpp
|
||||
../../src/utils/TimeRecorder.cpp
|
||||
../../src/license/License.cpp
|
||||
)
|
||||
|
||||
cuda_add_executable(license_test
|
||||
${unittest_srcs}
|
||||
${config_files}
|
||||
${cache_srcs}
|
||||
${db_srcs}
|
||||
${require_files}
|
||||
)
|
||||
set(db_test_src
|
||||
${unittest_srcs}
|
||||
${config_files}
|
||||
${cache_srcs}
|
||||
${db_srcs}
|
||||
${wrapper_src}
|
||||
${require_files}
|
||||
license_tests.cpp)
|
||||
|
||||
set(require_libs
|
||||
libvecwise_engine.a
|
||||
stdc++
|
||||
boost_system
|
||||
boost_filesystem
|
||||
pthread
|
||||
snappy
|
||||
bz2
|
||||
z
|
||||
zstd
|
||||
rocksdb
|
||||
cuda_add_executable(license_test ${db_test_src})
|
||||
|
||||
set(db_libs
|
||||
faiss
|
||||
cudart
|
||||
cublas
|
||||
sqlite3
|
||||
boost_system
|
||||
boost_filesystem
|
||||
lz4
|
||||
crypto
|
||||
)
|
||||
|
||||
target_link_libraries(license_test
|
||||
${unittest_libs}
|
||||
${require_libs}
|
||||
${cuda_library}
|
||||
)
|
||||
target_link_libraries(license_test ${unittest_libs} ${db_libs})
|
||||
|
@ -5,11 +5,12 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#include <gtest/gtest.h>
|
||||
#include "license/License.h"
|
||||
#include "utils/Error.h"
|
||||
|
||||
using namespace zilliz::vecwise::server;
|
||||
using namespace zilliz::vecwise;
|
||||
|
||||
TEST(LicenseTest, LICENSE_TEST) {
|
||||
std::string path1 = "/tmp/vecwise_engine.license";
|
||||
ServerError err = LicenseValidate(path1);
|
||||
server::ServerError err = server::LicenseValidate(path1);
|
||||
ASSERT_EQ(err, server::SERVER_SUCCESS);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user