Skip to content

Commit 2a6a552

Browse files
committed
feature: add vesrion namespace test
1 parent 4823508 commit 2a6a552

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

bindings/cpp/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,9 @@ install(FILES
192192
DESTINATION "${SVS_RUNTIME_CONFIG_INSTALL_DIR}"
193193
)
194194

195+
# Tests
196+
if(BUILD_TESTING)
197+
enable_testing()
198+
add_subdirectory(tests)
199+
endif()
200+

docker/x86_64/build-cpp-runtime-bindings.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ mkdir -p /workspace/bindings/cpp/build_cpp_bindings /workspace/install_cpp_bindi
2424

2525
# Build and install runtime bindings library
2626
cd /workspace/bindings/cpp/build_cpp_bindings
27-
CC=gcc CXX=g++ cmake .. -DCMAKE_INSTALL_PREFIX=/workspace/install_cpp_bindings -DCMAKE_INSTALL_LIBDIR=lib
27+
CC=gcc CXX=g++ cmake .. \
28+
-DCMAKE_INSTALL_PREFIX=/workspace/install_cpp_bindings \
29+
-DCMAKE_INSTALL_LIBDIR=lib \
30+
-DBUILD_TESTING=ON
2831
cmake --build . -j
2932
cmake --install .
3033

docker/x86_64/test-cpp-runtime-bindings.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,8 @@ echo " FAISS python tests: "
5656
cd ../../../tests/
5757
PYTHONPATH=../build/faiss/python/build/lib/ OMP_NUM_THREADS=8 python -m unittest test_svs.py
5858

59-
# TODO: C++ tests
59+
echo "================================================"
60+
echo " Running SVS Runtime Binding Tests"
61+
echo "------------------------------------------------"
62+
cd /workspace/bindings/cpp/build_cpp_bindings
63+
./tests/svs_runtime_tests

0 commit comments

Comments
 (0)