From 41e7314b7955605bf893f64c7175e2993e7f93fb Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Sat, 18 Jan 2025 14:59:27 -0600 Subject: [PATCH 1/4] Rename test to tests. --- ci/run_cuvs_pytests.sh | 2 +- ci/test_python.sh | 2 +- ci/test_wheel_cuvs.sh | 2 +- cpp/CMakeLists.txt | 2 +- cpp/{test => tests}/CMakeLists.txt | 0 cpp/{test => tests}/cluster/kmeans.cu | 0 cpp/{test => tests}/cluster/kmeans_balanced.cu | 0 cpp/{test => tests}/cluster/kmeans_find_k.cu | 0 cpp/{test => tests}/cluster/kmeans_mg.cu | 0 cpp/{test => tests}/cluster/linkage.cu | 0 cpp/{test => tests}/core/c_api.c | 0 cpp/{test => tests}/core/interop.cu | 0 cpp/{test => tests}/distance/dist_canberra.cu | 0 cpp/{test => tests}/distance/dist_correlation.cu | 0 cpp/{test => tests}/distance/dist_cos.cu | 0 cpp/{test => tests}/distance/dist_hamming.cu | 0 cpp/{test => tests}/distance/dist_hellinger.cu | 0 cpp/{test => tests}/distance/dist_inner_product.cu | 0 cpp/{test => tests}/distance/dist_jensen_shannon.cu | 0 cpp/{test => tests}/distance/dist_kl_divergence.cu | 0 cpp/{test => tests}/distance/dist_l1.cu | 0 cpp/{test => tests}/distance/dist_l2_exp.cu | 0 cpp/{test => tests}/distance/dist_l2_sqrt_exp.cu | 0 cpp/{test => tests}/distance/dist_l2_unexp.cu | 0 cpp/{test => tests}/distance/dist_l_inf.cu | 0 cpp/{test => tests}/distance/dist_lp_unexp.cu | 0 cpp/{test => tests}/distance/dist_russell_rao.cu | 0 cpp/{test => tests}/distance/distance_base.cuh | 0 cpp/{test => tests}/distance/gram.cu | 0 cpp/{test => tests}/distance/gram_base.cuh | 0 cpp/{test => tests}/distance/masked_nn.cu | 0 cpp/{test => tests}/distance/pairwise_distance_c.cu | 0 cpp/{test => tests}/distance/run_pairwise_distance_c.c | 0 cpp/{test => tests}/distance/sparse_distance.cu | 0 cpp/{test => tests}/neighbors/ann_brute_force.cuh | 0 cpp/{test => tests}/neighbors/ann_brute_force/test_float.cu | 0 cpp/{test => tests}/neighbors/ann_brute_force/test_half.cu | 0 cpp/{test => tests}/neighbors/ann_cagra.cuh | 0 .../neighbors/ann_cagra/bug_extreme_inputs_oob.cu | 0 cpp/{test => tests}/neighbors/ann_cagra/bug_multi_cta_crash.cu | 0 cpp/{test => tests}/neighbors/ann_cagra/test_float_uint32_t.cu | 0 cpp/{test => tests}/neighbors/ann_cagra/test_half_uint32_t.cu | 0 cpp/{test => tests}/neighbors/ann_cagra/test_int8_t_uint32_t.cu | 0 .../neighbors/ann_cagra/test_uint8_t_uint32_t.cu | 0 cpp/{test => tests}/neighbors/ann_cagra_c.cu | 0 cpp/{test => tests}/neighbors/ann_hnsw_c.cu | 0 cpp/{test => tests}/neighbors/ann_ivf_flat.cuh | 0 .../neighbors/ann_ivf_flat/test_float_int64_t.cu | 0 .../neighbors/ann_ivf_flat/test_int8_t_int64_t.cu | 0 .../neighbors/ann_ivf_flat/test_uint8_t_int64_t.cu | 0 cpp/{test => tests}/neighbors/ann_ivf_flat_c.cu | 0 cpp/{test => tests}/neighbors/ann_ivf_pq.cuh | 0 cpp/{test => tests}/neighbors/ann_ivf_pq/test_float_int64_t.cu | 0 cpp/{test => tests}/neighbors/ann_ivf_pq/test_int8_t_int64_t.cu | 0 .../neighbors/ann_ivf_pq/test_uint8_t_int64_t.cu | 0 cpp/{test => tests}/neighbors/ann_ivf_pq_c.cu | 0 cpp/{test => tests}/neighbors/ann_nn_descent.cuh | 0 .../neighbors/ann_nn_descent/test_float_uint32_t.cu | 0 .../neighbors/ann_nn_descent/test_int8_t_uint32_t.cu | 0 .../neighbors/ann_nn_descent/test_uint8_t_uint32_t.cu | 0 cpp/{test => tests}/neighbors/ann_utils.cuh | 0 cpp/{test => tests}/neighbors/ann_vamana.cuh | 0 cpp/{test => tests}/neighbors/ann_vamana/test_float_uint32_t.cu | 0 .../neighbors/ann_vamana/test_int8_t_uint32_t.cu | 0 .../neighbors/ann_vamana/test_uint8_t_uint32_t.cu | 0 cpp/{test => tests}/neighbors/brute_force.cu | 0 cpp/{test => tests}/neighbors/brute_force_c.cu | 0 cpp/{test => tests}/neighbors/brute_force_prefiltered.cu | 0 cpp/{test => tests}/neighbors/c_api.c | 0 cpp/{test => tests}/neighbors/dynamic_batching.cuh | 0 .../neighbors/dynamic_batching/test_brute_force.cu | 0 cpp/{test => tests}/neighbors/dynamic_batching/test_cagra.cu | 0 cpp/{test => tests}/neighbors/dynamic_batching/test_ivf_flat.cu | 0 cpp/{test => tests}/neighbors/dynamic_batching/test_ivf_pq.cu | 0 cpp/{test => tests}/neighbors/hnsw.cu | 0 cpp/{test => tests}/neighbors/knn_utils.cuh | 0 cpp/{test => tests}/neighbors/mg.cuh | 0 cpp/{test => tests}/neighbors/mg/test_float.cu | 0 cpp/{test => tests}/neighbors/naive_knn.cuh | 0 cpp/{test => tests}/neighbors/refine.cu | 0 cpp/{test => tests}/neighbors/refine_helper.cuh | 0 cpp/{test => tests}/neighbors/run_brute_force_c.c | 0 cpp/{test => tests}/neighbors/run_ivf_flat_c.c | 0 cpp/{test => tests}/neighbors/run_ivf_pq_c.c | 0 cpp/{test => tests}/neighbors/sparse_brute_force.cu | 0 cpp/{test => tests}/preprocessing/scalar_quantization.cu | 0 cpp/{test => tests}/sparse/cluster/cluster_solvers.cu | 0 cpp/{test => tests}/sparse/cluster/eigen_solvers.cu | 0 cpp/{test => tests}/sparse/cluster/spectral.cu | 0 cpp/{test => tests}/sparse/cluster/spectral_matrix.cu | 0 cpp/{test => tests}/sparse/gram.cu | 0 cpp/{test => tests}/sparse/neighbors/cross_component_nn.cu | 0 cpp/{test => tests}/stats/silhouette_score.cu | 0 cpp/{test => tests}/stats/trustworthiness.cu | 0 cpp/{test => tests}/test.cpp | 0 cpp/{test => tests}/test_utils.cuh | 0 cpp/{test => tests}/test_utils.h | 0 python/cuvs/cuvs/{test => tests}/__init__py | 0 python/cuvs/cuvs/{test => tests}/ann_utils.py | 0 python/cuvs/cuvs/{test => tests}/conftest.py | 0 python/cuvs/cuvs/{test => tests}/test_brute_force.py | 0 python/cuvs/cuvs/{test => tests}/test_cagra.py | 0 python/cuvs/cuvs/{test => tests}/test_distance.py | 0 python/cuvs/cuvs/{test => tests}/test_doctests.py | 0 python/cuvs/cuvs/{test => tests}/test_hnsw.py | 0 python/cuvs/cuvs/{test => tests}/test_ivf_flat.py | 0 python/cuvs/cuvs/{test => tests}/test_ivf_pq.py | 0 python/cuvs/cuvs/{test => tests}/test_refine.py | 0 python/cuvs/cuvs/{test => tests}/test_serialization.py | 0 python/cuvs/cuvs/{test => tests}/test_version.py | 0 110 files changed, 4 insertions(+), 4 deletions(-) rename cpp/{test => tests}/CMakeLists.txt (100%) rename cpp/{test => tests}/cluster/kmeans.cu (100%) rename cpp/{test => tests}/cluster/kmeans_balanced.cu (100%) rename cpp/{test => tests}/cluster/kmeans_find_k.cu (100%) rename cpp/{test => tests}/cluster/kmeans_mg.cu (100%) rename cpp/{test => tests}/cluster/linkage.cu (100%) rename cpp/{test => tests}/core/c_api.c (100%) rename cpp/{test => tests}/core/interop.cu (100%) rename cpp/{test => tests}/distance/dist_canberra.cu (100%) rename cpp/{test => tests}/distance/dist_correlation.cu (100%) rename cpp/{test => tests}/distance/dist_cos.cu (100%) rename cpp/{test => tests}/distance/dist_hamming.cu (100%) rename cpp/{test => tests}/distance/dist_hellinger.cu (100%) rename cpp/{test => tests}/distance/dist_inner_product.cu (100%) rename cpp/{test => tests}/distance/dist_jensen_shannon.cu (100%) rename cpp/{test => tests}/distance/dist_kl_divergence.cu (100%) rename cpp/{test => tests}/distance/dist_l1.cu (100%) rename cpp/{test => tests}/distance/dist_l2_exp.cu (100%) rename cpp/{test => tests}/distance/dist_l2_sqrt_exp.cu (100%) rename cpp/{test => tests}/distance/dist_l2_unexp.cu (100%) rename cpp/{test => tests}/distance/dist_l_inf.cu (100%) rename cpp/{test => tests}/distance/dist_lp_unexp.cu (100%) rename cpp/{test => tests}/distance/dist_russell_rao.cu (100%) rename cpp/{test => tests}/distance/distance_base.cuh (100%) rename cpp/{test => tests}/distance/gram.cu (100%) rename cpp/{test => tests}/distance/gram_base.cuh (100%) rename cpp/{test => tests}/distance/masked_nn.cu (100%) rename cpp/{test => tests}/distance/pairwise_distance_c.cu (100%) rename cpp/{test => tests}/distance/run_pairwise_distance_c.c (100%) rename cpp/{test => tests}/distance/sparse_distance.cu (100%) rename cpp/{test => tests}/neighbors/ann_brute_force.cuh (100%) rename cpp/{test => tests}/neighbors/ann_brute_force/test_float.cu (100%) rename cpp/{test => tests}/neighbors/ann_brute_force/test_half.cu (100%) rename cpp/{test => tests}/neighbors/ann_cagra.cuh (100%) rename cpp/{test => tests}/neighbors/ann_cagra/bug_extreme_inputs_oob.cu (100%) rename cpp/{test => tests}/neighbors/ann_cagra/bug_multi_cta_crash.cu (100%) rename cpp/{test => tests}/neighbors/ann_cagra/test_float_uint32_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_cagra/test_half_uint32_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_cagra/test_int8_t_uint32_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_cagra/test_uint8_t_uint32_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_cagra_c.cu (100%) rename cpp/{test => tests}/neighbors/ann_hnsw_c.cu (100%) rename cpp/{test => tests}/neighbors/ann_ivf_flat.cuh (100%) rename cpp/{test => tests}/neighbors/ann_ivf_flat/test_float_int64_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_ivf_flat/test_int8_t_int64_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_ivf_flat/test_uint8_t_int64_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_ivf_flat_c.cu (100%) rename cpp/{test => tests}/neighbors/ann_ivf_pq.cuh (100%) rename cpp/{test => tests}/neighbors/ann_ivf_pq/test_float_int64_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_ivf_pq/test_int8_t_int64_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_ivf_pq/test_uint8_t_int64_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_ivf_pq_c.cu (100%) rename cpp/{test => tests}/neighbors/ann_nn_descent.cuh (100%) rename cpp/{test => tests}/neighbors/ann_nn_descent/test_float_uint32_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_nn_descent/test_int8_t_uint32_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_nn_descent/test_uint8_t_uint32_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_utils.cuh (100%) rename cpp/{test => tests}/neighbors/ann_vamana.cuh (100%) rename cpp/{test => tests}/neighbors/ann_vamana/test_float_uint32_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_vamana/test_int8_t_uint32_t.cu (100%) rename cpp/{test => tests}/neighbors/ann_vamana/test_uint8_t_uint32_t.cu (100%) rename cpp/{test => tests}/neighbors/brute_force.cu (100%) rename cpp/{test => tests}/neighbors/brute_force_c.cu (100%) rename cpp/{test => tests}/neighbors/brute_force_prefiltered.cu (100%) rename cpp/{test => tests}/neighbors/c_api.c (100%) rename cpp/{test => tests}/neighbors/dynamic_batching.cuh (100%) rename cpp/{test => tests}/neighbors/dynamic_batching/test_brute_force.cu (100%) rename cpp/{test => tests}/neighbors/dynamic_batching/test_cagra.cu (100%) rename cpp/{test => tests}/neighbors/dynamic_batching/test_ivf_flat.cu (100%) rename cpp/{test => tests}/neighbors/dynamic_batching/test_ivf_pq.cu (100%) rename cpp/{test => tests}/neighbors/hnsw.cu (100%) rename cpp/{test => tests}/neighbors/knn_utils.cuh (100%) rename cpp/{test => tests}/neighbors/mg.cuh (100%) rename cpp/{test => tests}/neighbors/mg/test_float.cu (100%) rename cpp/{test => tests}/neighbors/naive_knn.cuh (100%) rename cpp/{test => tests}/neighbors/refine.cu (100%) rename cpp/{test => tests}/neighbors/refine_helper.cuh (100%) rename cpp/{test => tests}/neighbors/run_brute_force_c.c (100%) rename cpp/{test => tests}/neighbors/run_ivf_flat_c.c (100%) rename cpp/{test => tests}/neighbors/run_ivf_pq_c.c (100%) rename cpp/{test => tests}/neighbors/sparse_brute_force.cu (100%) rename cpp/{test => tests}/preprocessing/scalar_quantization.cu (100%) rename cpp/{test => tests}/sparse/cluster/cluster_solvers.cu (100%) rename cpp/{test => tests}/sparse/cluster/eigen_solvers.cu (100%) rename cpp/{test => tests}/sparse/cluster/spectral.cu (100%) rename cpp/{test => tests}/sparse/cluster/spectral_matrix.cu (100%) rename cpp/{test => tests}/sparse/gram.cu (100%) rename cpp/{test => tests}/sparse/neighbors/cross_component_nn.cu (100%) rename cpp/{test => tests}/stats/silhouette_score.cu (100%) rename cpp/{test => tests}/stats/trustworthiness.cu (100%) rename cpp/{test => tests}/test.cpp (100%) rename cpp/{test => tests}/test_utils.cuh (100%) rename cpp/{test => tests}/test_utils.h (100%) rename python/cuvs/cuvs/{test => tests}/__init__py (100%) rename python/cuvs/cuvs/{test => tests}/ann_utils.py (100%) rename python/cuvs/cuvs/{test => tests}/conftest.py (100%) rename python/cuvs/cuvs/{test => tests}/test_brute_force.py (100%) rename python/cuvs/cuvs/{test => tests}/test_cagra.py (100%) rename python/cuvs/cuvs/{test => tests}/test_distance.py (100%) rename python/cuvs/cuvs/{test => tests}/test_doctests.py (100%) rename python/cuvs/cuvs/{test => tests}/test_hnsw.py (100%) rename python/cuvs/cuvs/{test => tests}/test_ivf_flat.py (100%) rename python/cuvs/cuvs/{test => tests}/test_ivf_pq.py (100%) rename python/cuvs/cuvs/{test => tests}/test_refine.py (100%) rename python/cuvs/cuvs/{test => tests}/test_serialization.py (100%) rename python/cuvs/cuvs/{test => tests}/test_version.py (100%) diff --git a/ci/run_cuvs_pytests.sh b/ci/run_cuvs_pytests.sh index 57df9af94..4de8927b1 100755 --- a/ci/run_cuvs_pytests.sh +++ b/ci/run_cuvs_pytests.sh @@ -6,4 +6,4 @@ set -euo pipefail # Support invoking run_pytests.sh outside the script directory cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/cuvs/cuvs -pytest --cache-clear --verbose "$@" test +pytest --cache-clear --verbose "$@" tests diff --git a/ci/test_python.sh b/ci/test_python.sh index b9c394062..e8749fe79 100755 --- a/ci/test_python.sh +++ b/ci/test_python.sh @@ -52,7 +52,7 @@ pytest \ --cov=cuvs \ --cov-report=xml:"${RAPIDS_COVERAGE_DIR}/cuvs-coverage.xml" \ --cov-report=term \ - test + tests rapids-logger "Test script exiting with value: $EXITCODE" exit ${EXITCODE} diff --git a/ci/test_wheel_cuvs.sh b/ci/test_wheel_cuvs.sh index 7033003e9..e3ac9341d 100755 --- a/ci/test_wheel_cuvs.sh +++ b/ci/test_wheel_cuvs.sh @@ -10,4 +10,4 @@ RAPIDS_PY_WHEEL_NAME="cuvs_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from # echo to expand wildcard before adding `[extra]` requires for pip python -m pip install $(echo ./dist/cuvs*.whl)[test] -python -m pytest ./python/cuvs/cuvs/test +python -m pytest ./python/cuvs/cuvs/tests diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 26c0b82d3..7ae9bca78 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -780,7 +780,7 @@ endif() if(BUILD_TESTS) enable_testing() add_subdirectory(internal) - add_subdirectory(test) + add_subdirectory(tests) endif() # ################################################################################################## diff --git a/cpp/test/CMakeLists.txt b/cpp/tests/CMakeLists.txt similarity index 100% rename from cpp/test/CMakeLists.txt rename to cpp/tests/CMakeLists.txt diff --git a/cpp/test/cluster/kmeans.cu b/cpp/tests/cluster/kmeans.cu similarity index 100% rename from cpp/test/cluster/kmeans.cu rename to cpp/tests/cluster/kmeans.cu diff --git a/cpp/test/cluster/kmeans_balanced.cu b/cpp/tests/cluster/kmeans_balanced.cu similarity index 100% rename from cpp/test/cluster/kmeans_balanced.cu rename to cpp/tests/cluster/kmeans_balanced.cu diff --git a/cpp/test/cluster/kmeans_find_k.cu b/cpp/tests/cluster/kmeans_find_k.cu similarity index 100% rename from cpp/test/cluster/kmeans_find_k.cu rename to cpp/tests/cluster/kmeans_find_k.cu diff --git a/cpp/test/cluster/kmeans_mg.cu b/cpp/tests/cluster/kmeans_mg.cu similarity index 100% rename from cpp/test/cluster/kmeans_mg.cu rename to cpp/tests/cluster/kmeans_mg.cu diff --git a/cpp/test/cluster/linkage.cu b/cpp/tests/cluster/linkage.cu similarity index 100% rename from cpp/test/cluster/linkage.cu rename to cpp/tests/cluster/linkage.cu diff --git a/cpp/test/core/c_api.c b/cpp/tests/core/c_api.c similarity index 100% rename from cpp/test/core/c_api.c rename to cpp/tests/core/c_api.c diff --git a/cpp/test/core/interop.cu b/cpp/tests/core/interop.cu similarity index 100% rename from cpp/test/core/interop.cu rename to cpp/tests/core/interop.cu diff --git a/cpp/test/distance/dist_canberra.cu b/cpp/tests/distance/dist_canberra.cu similarity index 100% rename from cpp/test/distance/dist_canberra.cu rename to cpp/tests/distance/dist_canberra.cu diff --git a/cpp/test/distance/dist_correlation.cu b/cpp/tests/distance/dist_correlation.cu similarity index 100% rename from cpp/test/distance/dist_correlation.cu rename to cpp/tests/distance/dist_correlation.cu diff --git a/cpp/test/distance/dist_cos.cu b/cpp/tests/distance/dist_cos.cu similarity index 100% rename from cpp/test/distance/dist_cos.cu rename to cpp/tests/distance/dist_cos.cu diff --git a/cpp/test/distance/dist_hamming.cu b/cpp/tests/distance/dist_hamming.cu similarity index 100% rename from cpp/test/distance/dist_hamming.cu rename to cpp/tests/distance/dist_hamming.cu diff --git a/cpp/test/distance/dist_hellinger.cu b/cpp/tests/distance/dist_hellinger.cu similarity index 100% rename from cpp/test/distance/dist_hellinger.cu rename to cpp/tests/distance/dist_hellinger.cu diff --git a/cpp/test/distance/dist_inner_product.cu b/cpp/tests/distance/dist_inner_product.cu similarity index 100% rename from cpp/test/distance/dist_inner_product.cu rename to cpp/tests/distance/dist_inner_product.cu diff --git a/cpp/test/distance/dist_jensen_shannon.cu b/cpp/tests/distance/dist_jensen_shannon.cu similarity index 100% rename from cpp/test/distance/dist_jensen_shannon.cu rename to cpp/tests/distance/dist_jensen_shannon.cu diff --git a/cpp/test/distance/dist_kl_divergence.cu b/cpp/tests/distance/dist_kl_divergence.cu similarity index 100% rename from cpp/test/distance/dist_kl_divergence.cu rename to cpp/tests/distance/dist_kl_divergence.cu diff --git a/cpp/test/distance/dist_l1.cu b/cpp/tests/distance/dist_l1.cu similarity index 100% rename from cpp/test/distance/dist_l1.cu rename to cpp/tests/distance/dist_l1.cu diff --git a/cpp/test/distance/dist_l2_exp.cu b/cpp/tests/distance/dist_l2_exp.cu similarity index 100% rename from cpp/test/distance/dist_l2_exp.cu rename to cpp/tests/distance/dist_l2_exp.cu diff --git a/cpp/test/distance/dist_l2_sqrt_exp.cu b/cpp/tests/distance/dist_l2_sqrt_exp.cu similarity index 100% rename from cpp/test/distance/dist_l2_sqrt_exp.cu rename to cpp/tests/distance/dist_l2_sqrt_exp.cu diff --git a/cpp/test/distance/dist_l2_unexp.cu b/cpp/tests/distance/dist_l2_unexp.cu similarity index 100% rename from cpp/test/distance/dist_l2_unexp.cu rename to cpp/tests/distance/dist_l2_unexp.cu diff --git a/cpp/test/distance/dist_l_inf.cu b/cpp/tests/distance/dist_l_inf.cu similarity index 100% rename from cpp/test/distance/dist_l_inf.cu rename to cpp/tests/distance/dist_l_inf.cu diff --git a/cpp/test/distance/dist_lp_unexp.cu b/cpp/tests/distance/dist_lp_unexp.cu similarity index 100% rename from cpp/test/distance/dist_lp_unexp.cu rename to cpp/tests/distance/dist_lp_unexp.cu diff --git a/cpp/test/distance/dist_russell_rao.cu b/cpp/tests/distance/dist_russell_rao.cu similarity index 100% rename from cpp/test/distance/dist_russell_rao.cu rename to cpp/tests/distance/dist_russell_rao.cu diff --git a/cpp/test/distance/distance_base.cuh b/cpp/tests/distance/distance_base.cuh similarity index 100% rename from cpp/test/distance/distance_base.cuh rename to cpp/tests/distance/distance_base.cuh diff --git a/cpp/test/distance/gram.cu b/cpp/tests/distance/gram.cu similarity index 100% rename from cpp/test/distance/gram.cu rename to cpp/tests/distance/gram.cu diff --git a/cpp/test/distance/gram_base.cuh b/cpp/tests/distance/gram_base.cuh similarity index 100% rename from cpp/test/distance/gram_base.cuh rename to cpp/tests/distance/gram_base.cuh diff --git a/cpp/test/distance/masked_nn.cu b/cpp/tests/distance/masked_nn.cu similarity index 100% rename from cpp/test/distance/masked_nn.cu rename to cpp/tests/distance/masked_nn.cu diff --git a/cpp/test/distance/pairwise_distance_c.cu b/cpp/tests/distance/pairwise_distance_c.cu similarity index 100% rename from cpp/test/distance/pairwise_distance_c.cu rename to cpp/tests/distance/pairwise_distance_c.cu diff --git a/cpp/test/distance/run_pairwise_distance_c.c b/cpp/tests/distance/run_pairwise_distance_c.c similarity index 100% rename from cpp/test/distance/run_pairwise_distance_c.c rename to cpp/tests/distance/run_pairwise_distance_c.c diff --git a/cpp/test/distance/sparse_distance.cu b/cpp/tests/distance/sparse_distance.cu similarity index 100% rename from cpp/test/distance/sparse_distance.cu rename to cpp/tests/distance/sparse_distance.cu diff --git a/cpp/test/neighbors/ann_brute_force.cuh b/cpp/tests/neighbors/ann_brute_force.cuh similarity index 100% rename from cpp/test/neighbors/ann_brute_force.cuh rename to cpp/tests/neighbors/ann_brute_force.cuh diff --git a/cpp/test/neighbors/ann_brute_force/test_float.cu b/cpp/tests/neighbors/ann_brute_force/test_float.cu similarity index 100% rename from cpp/test/neighbors/ann_brute_force/test_float.cu rename to cpp/tests/neighbors/ann_brute_force/test_float.cu diff --git a/cpp/test/neighbors/ann_brute_force/test_half.cu b/cpp/tests/neighbors/ann_brute_force/test_half.cu similarity index 100% rename from cpp/test/neighbors/ann_brute_force/test_half.cu rename to cpp/tests/neighbors/ann_brute_force/test_half.cu diff --git a/cpp/test/neighbors/ann_cagra.cuh b/cpp/tests/neighbors/ann_cagra.cuh similarity index 100% rename from cpp/test/neighbors/ann_cagra.cuh rename to cpp/tests/neighbors/ann_cagra.cuh diff --git a/cpp/test/neighbors/ann_cagra/bug_extreme_inputs_oob.cu b/cpp/tests/neighbors/ann_cagra/bug_extreme_inputs_oob.cu similarity index 100% rename from cpp/test/neighbors/ann_cagra/bug_extreme_inputs_oob.cu rename to cpp/tests/neighbors/ann_cagra/bug_extreme_inputs_oob.cu diff --git a/cpp/test/neighbors/ann_cagra/bug_multi_cta_crash.cu b/cpp/tests/neighbors/ann_cagra/bug_multi_cta_crash.cu similarity index 100% rename from cpp/test/neighbors/ann_cagra/bug_multi_cta_crash.cu rename to cpp/tests/neighbors/ann_cagra/bug_multi_cta_crash.cu diff --git a/cpp/test/neighbors/ann_cagra/test_float_uint32_t.cu b/cpp/tests/neighbors/ann_cagra/test_float_uint32_t.cu similarity index 100% rename from cpp/test/neighbors/ann_cagra/test_float_uint32_t.cu rename to cpp/tests/neighbors/ann_cagra/test_float_uint32_t.cu diff --git a/cpp/test/neighbors/ann_cagra/test_half_uint32_t.cu b/cpp/tests/neighbors/ann_cagra/test_half_uint32_t.cu similarity index 100% rename from cpp/test/neighbors/ann_cagra/test_half_uint32_t.cu rename to cpp/tests/neighbors/ann_cagra/test_half_uint32_t.cu diff --git a/cpp/test/neighbors/ann_cagra/test_int8_t_uint32_t.cu b/cpp/tests/neighbors/ann_cagra/test_int8_t_uint32_t.cu similarity index 100% rename from cpp/test/neighbors/ann_cagra/test_int8_t_uint32_t.cu rename to cpp/tests/neighbors/ann_cagra/test_int8_t_uint32_t.cu diff --git a/cpp/test/neighbors/ann_cagra/test_uint8_t_uint32_t.cu b/cpp/tests/neighbors/ann_cagra/test_uint8_t_uint32_t.cu similarity index 100% rename from cpp/test/neighbors/ann_cagra/test_uint8_t_uint32_t.cu rename to cpp/tests/neighbors/ann_cagra/test_uint8_t_uint32_t.cu diff --git a/cpp/test/neighbors/ann_cagra_c.cu b/cpp/tests/neighbors/ann_cagra_c.cu similarity index 100% rename from cpp/test/neighbors/ann_cagra_c.cu rename to cpp/tests/neighbors/ann_cagra_c.cu diff --git a/cpp/test/neighbors/ann_hnsw_c.cu b/cpp/tests/neighbors/ann_hnsw_c.cu similarity index 100% rename from cpp/test/neighbors/ann_hnsw_c.cu rename to cpp/tests/neighbors/ann_hnsw_c.cu diff --git a/cpp/test/neighbors/ann_ivf_flat.cuh b/cpp/tests/neighbors/ann_ivf_flat.cuh similarity index 100% rename from cpp/test/neighbors/ann_ivf_flat.cuh rename to cpp/tests/neighbors/ann_ivf_flat.cuh diff --git a/cpp/test/neighbors/ann_ivf_flat/test_float_int64_t.cu b/cpp/tests/neighbors/ann_ivf_flat/test_float_int64_t.cu similarity index 100% rename from cpp/test/neighbors/ann_ivf_flat/test_float_int64_t.cu rename to cpp/tests/neighbors/ann_ivf_flat/test_float_int64_t.cu diff --git a/cpp/test/neighbors/ann_ivf_flat/test_int8_t_int64_t.cu b/cpp/tests/neighbors/ann_ivf_flat/test_int8_t_int64_t.cu similarity index 100% rename from cpp/test/neighbors/ann_ivf_flat/test_int8_t_int64_t.cu rename to cpp/tests/neighbors/ann_ivf_flat/test_int8_t_int64_t.cu diff --git a/cpp/test/neighbors/ann_ivf_flat/test_uint8_t_int64_t.cu b/cpp/tests/neighbors/ann_ivf_flat/test_uint8_t_int64_t.cu similarity index 100% rename from cpp/test/neighbors/ann_ivf_flat/test_uint8_t_int64_t.cu rename to cpp/tests/neighbors/ann_ivf_flat/test_uint8_t_int64_t.cu diff --git a/cpp/test/neighbors/ann_ivf_flat_c.cu b/cpp/tests/neighbors/ann_ivf_flat_c.cu similarity index 100% rename from cpp/test/neighbors/ann_ivf_flat_c.cu rename to cpp/tests/neighbors/ann_ivf_flat_c.cu diff --git a/cpp/test/neighbors/ann_ivf_pq.cuh b/cpp/tests/neighbors/ann_ivf_pq.cuh similarity index 100% rename from cpp/test/neighbors/ann_ivf_pq.cuh rename to cpp/tests/neighbors/ann_ivf_pq.cuh diff --git a/cpp/test/neighbors/ann_ivf_pq/test_float_int64_t.cu b/cpp/tests/neighbors/ann_ivf_pq/test_float_int64_t.cu similarity index 100% rename from cpp/test/neighbors/ann_ivf_pq/test_float_int64_t.cu rename to cpp/tests/neighbors/ann_ivf_pq/test_float_int64_t.cu diff --git a/cpp/test/neighbors/ann_ivf_pq/test_int8_t_int64_t.cu b/cpp/tests/neighbors/ann_ivf_pq/test_int8_t_int64_t.cu similarity index 100% rename from cpp/test/neighbors/ann_ivf_pq/test_int8_t_int64_t.cu rename to cpp/tests/neighbors/ann_ivf_pq/test_int8_t_int64_t.cu diff --git a/cpp/test/neighbors/ann_ivf_pq/test_uint8_t_int64_t.cu b/cpp/tests/neighbors/ann_ivf_pq/test_uint8_t_int64_t.cu similarity index 100% rename from cpp/test/neighbors/ann_ivf_pq/test_uint8_t_int64_t.cu rename to cpp/tests/neighbors/ann_ivf_pq/test_uint8_t_int64_t.cu diff --git a/cpp/test/neighbors/ann_ivf_pq_c.cu b/cpp/tests/neighbors/ann_ivf_pq_c.cu similarity index 100% rename from cpp/test/neighbors/ann_ivf_pq_c.cu rename to cpp/tests/neighbors/ann_ivf_pq_c.cu diff --git a/cpp/test/neighbors/ann_nn_descent.cuh b/cpp/tests/neighbors/ann_nn_descent.cuh similarity index 100% rename from cpp/test/neighbors/ann_nn_descent.cuh rename to cpp/tests/neighbors/ann_nn_descent.cuh diff --git a/cpp/test/neighbors/ann_nn_descent/test_float_uint32_t.cu b/cpp/tests/neighbors/ann_nn_descent/test_float_uint32_t.cu similarity index 100% rename from cpp/test/neighbors/ann_nn_descent/test_float_uint32_t.cu rename to cpp/tests/neighbors/ann_nn_descent/test_float_uint32_t.cu diff --git a/cpp/test/neighbors/ann_nn_descent/test_int8_t_uint32_t.cu b/cpp/tests/neighbors/ann_nn_descent/test_int8_t_uint32_t.cu similarity index 100% rename from cpp/test/neighbors/ann_nn_descent/test_int8_t_uint32_t.cu rename to cpp/tests/neighbors/ann_nn_descent/test_int8_t_uint32_t.cu diff --git a/cpp/test/neighbors/ann_nn_descent/test_uint8_t_uint32_t.cu b/cpp/tests/neighbors/ann_nn_descent/test_uint8_t_uint32_t.cu similarity index 100% rename from cpp/test/neighbors/ann_nn_descent/test_uint8_t_uint32_t.cu rename to cpp/tests/neighbors/ann_nn_descent/test_uint8_t_uint32_t.cu diff --git a/cpp/test/neighbors/ann_utils.cuh b/cpp/tests/neighbors/ann_utils.cuh similarity index 100% rename from cpp/test/neighbors/ann_utils.cuh rename to cpp/tests/neighbors/ann_utils.cuh diff --git a/cpp/test/neighbors/ann_vamana.cuh b/cpp/tests/neighbors/ann_vamana.cuh similarity index 100% rename from cpp/test/neighbors/ann_vamana.cuh rename to cpp/tests/neighbors/ann_vamana.cuh diff --git a/cpp/test/neighbors/ann_vamana/test_float_uint32_t.cu b/cpp/tests/neighbors/ann_vamana/test_float_uint32_t.cu similarity index 100% rename from cpp/test/neighbors/ann_vamana/test_float_uint32_t.cu rename to cpp/tests/neighbors/ann_vamana/test_float_uint32_t.cu diff --git a/cpp/test/neighbors/ann_vamana/test_int8_t_uint32_t.cu b/cpp/tests/neighbors/ann_vamana/test_int8_t_uint32_t.cu similarity index 100% rename from cpp/test/neighbors/ann_vamana/test_int8_t_uint32_t.cu rename to cpp/tests/neighbors/ann_vamana/test_int8_t_uint32_t.cu diff --git a/cpp/test/neighbors/ann_vamana/test_uint8_t_uint32_t.cu b/cpp/tests/neighbors/ann_vamana/test_uint8_t_uint32_t.cu similarity index 100% rename from cpp/test/neighbors/ann_vamana/test_uint8_t_uint32_t.cu rename to cpp/tests/neighbors/ann_vamana/test_uint8_t_uint32_t.cu diff --git a/cpp/test/neighbors/brute_force.cu b/cpp/tests/neighbors/brute_force.cu similarity index 100% rename from cpp/test/neighbors/brute_force.cu rename to cpp/tests/neighbors/brute_force.cu diff --git a/cpp/test/neighbors/brute_force_c.cu b/cpp/tests/neighbors/brute_force_c.cu similarity index 100% rename from cpp/test/neighbors/brute_force_c.cu rename to cpp/tests/neighbors/brute_force_c.cu diff --git a/cpp/test/neighbors/brute_force_prefiltered.cu b/cpp/tests/neighbors/brute_force_prefiltered.cu similarity index 100% rename from cpp/test/neighbors/brute_force_prefiltered.cu rename to cpp/tests/neighbors/brute_force_prefiltered.cu diff --git a/cpp/test/neighbors/c_api.c b/cpp/tests/neighbors/c_api.c similarity index 100% rename from cpp/test/neighbors/c_api.c rename to cpp/tests/neighbors/c_api.c diff --git a/cpp/test/neighbors/dynamic_batching.cuh b/cpp/tests/neighbors/dynamic_batching.cuh similarity index 100% rename from cpp/test/neighbors/dynamic_batching.cuh rename to cpp/tests/neighbors/dynamic_batching.cuh diff --git a/cpp/test/neighbors/dynamic_batching/test_brute_force.cu b/cpp/tests/neighbors/dynamic_batching/test_brute_force.cu similarity index 100% rename from cpp/test/neighbors/dynamic_batching/test_brute_force.cu rename to cpp/tests/neighbors/dynamic_batching/test_brute_force.cu diff --git a/cpp/test/neighbors/dynamic_batching/test_cagra.cu b/cpp/tests/neighbors/dynamic_batching/test_cagra.cu similarity index 100% rename from cpp/test/neighbors/dynamic_batching/test_cagra.cu rename to cpp/tests/neighbors/dynamic_batching/test_cagra.cu diff --git a/cpp/test/neighbors/dynamic_batching/test_ivf_flat.cu b/cpp/tests/neighbors/dynamic_batching/test_ivf_flat.cu similarity index 100% rename from cpp/test/neighbors/dynamic_batching/test_ivf_flat.cu rename to cpp/tests/neighbors/dynamic_batching/test_ivf_flat.cu diff --git a/cpp/test/neighbors/dynamic_batching/test_ivf_pq.cu b/cpp/tests/neighbors/dynamic_batching/test_ivf_pq.cu similarity index 100% rename from cpp/test/neighbors/dynamic_batching/test_ivf_pq.cu rename to cpp/tests/neighbors/dynamic_batching/test_ivf_pq.cu diff --git a/cpp/test/neighbors/hnsw.cu b/cpp/tests/neighbors/hnsw.cu similarity index 100% rename from cpp/test/neighbors/hnsw.cu rename to cpp/tests/neighbors/hnsw.cu diff --git a/cpp/test/neighbors/knn_utils.cuh b/cpp/tests/neighbors/knn_utils.cuh similarity index 100% rename from cpp/test/neighbors/knn_utils.cuh rename to cpp/tests/neighbors/knn_utils.cuh diff --git a/cpp/test/neighbors/mg.cuh b/cpp/tests/neighbors/mg.cuh similarity index 100% rename from cpp/test/neighbors/mg.cuh rename to cpp/tests/neighbors/mg.cuh diff --git a/cpp/test/neighbors/mg/test_float.cu b/cpp/tests/neighbors/mg/test_float.cu similarity index 100% rename from cpp/test/neighbors/mg/test_float.cu rename to cpp/tests/neighbors/mg/test_float.cu diff --git a/cpp/test/neighbors/naive_knn.cuh b/cpp/tests/neighbors/naive_knn.cuh similarity index 100% rename from cpp/test/neighbors/naive_knn.cuh rename to cpp/tests/neighbors/naive_knn.cuh diff --git a/cpp/test/neighbors/refine.cu b/cpp/tests/neighbors/refine.cu similarity index 100% rename from cpp/test/neighbors/refine.cu rename to cpp/tests/neighbors/refine.cu diff --git a/cpp/test/neighbors/refine_helper.cuh b/cpp/tests/neighbors/refine_helper.cuh similarity index 100% rename from cpp/test/neighbors/refine_helper.cuh rename to cpp/tests/neighbors/refine_helper.cuh diff --git a/cpp/test/neighbors/run_brute_force_c.c b/cpp/tests/neighbors/run_brute_force_c.c similarity index 100% rename from cpp/test/neighbors/run_brute_force_c.c rename to cpp/tests/neighbors/run_brute_force_c.c diff --git a/cpp/test/neighbors/run_ivf_flat_c.c b/cpp/tests/neighbors/run_ivf_flat_c.c similarity index 100% rename from cpp/test/neighbors/run_ivf_flat_c.c rename to cpp/tests/neighbors/run_ivf_flat_c.c diff --git a/cpp/test/neighbors/run_ivf_pq_c.c b/cpp/tests/neighbors/run_ivf_pq_c.c similarity index 100% rename from cpp/test/neighbors/run_ivf_pq_c.c rename to cpp/tests/neighbors/run_ivf_pq_c.c diff --git a/cpp/test/neighbors/sparse_brute_force.cu b/cpp/tests/neighbors/sparse_brute_force.cu similarity index 100% rename from cpp/test/neighbors/sparse_brute_force.cu rename to cpp/tests/neighbors/sparse_brute_force.cu diff --git a/cpp/test/preprocessing/scalar_quantization.cu b/cpp/tests/preprocessing/scalar_quantization.cu similarity index 100% rename from cpp/test/preprocessing/scalar_quantization.cu rename to cpp/tests/preprocessing/scalar_quantization.cu diff --git a/cpp/test/sparse/cluster/cluster_solvers.cu b/cpp/tests/sparse/cluster/cluster_solvers.cu similarity index 100% rename from cpp/test/sparse/cluster/cluster_solvers.cu rename to cpp/tests/sparse/cluster/cluster_solvers.cu diff --git a/cpp/test/sparse/cluster/eigen_solvers.cu b/cpp/tests/sparse/cluster/eigen_solvers.cu similarity index 100% rename from cpp/test/sparse/cluster/eigen_solvers.cu rename to cpp/tests/sparse/cluster/eigen_solvers.cu diff --git a/cpp/test/sparse/cluster/spectral.cu b/cpp/tests/sparse/cluster/spectral.cu similarity index 100% rename from cpp/test/sparse/cluster/spectral.cu rename to cpp/tests/sparse/cluster/spectral.cu diff --git a/cpp/test/sparse/cluster/spectral_matrix.cu b/cpp/tests/sparse/cluster/spectral_matrix.cu similarity index 100% rename from cpp/test/sparse/cluster/spectral_matrix.cu rename to cpp/tests/sparse/cluster/spectral_matrix.cu diff --git a/cpp/test/sparse/gram.cu b/cpp/tests/sparse/gram.cu similarity index 100% rename from cpp/test/sparse/gram.cu rename to cpp/tests/sparse/gram.cu diff --git a/cpp/test/sparse/neighbors/cross_component_nn.cu b/cpp/tests/sparse/neighbors/cross_component_nn.cu similarity index 100% rename from cpp/test/sparse/neighbors/cross_component_nn.cu rename to cpp/tests/sparse/neighbors/cross_component_nn.cu diff --git a/cpp/test/stats/silhouette_score.cu b/cpp/tests/stats/silhouette_score.cu similarity index 100% rename from cpp/test/stats/silhouette_score.cu rename to cpp/tests/stats/silhouette_score.cu diff --git a/cpp/test/stats/trustworthiness.cu b/cpp/tests/stats/trustworthiness.cu similarity index 100% rename from cpp/test/stats/trustworthiness.cu rename to cpp/tests/stats/trustworthiness.cu diff --git a/cpp/test/test.cpp b/cpp/tests/test.cpp similarity index 100% rename from cpp/test/test.cpp rename to cpp/tests/test.cpp diff --git a/cpp/test/test_utils.cuh b/cpp/tests/test_utils.cuh similarity index 100% rename from cpp/test/test_utils.cuh rename to cpp/tests/test_utils.cuh diff --git a/cpp/test/test_utils.h b/cpp/tests/test_utils.h similarity index 100% rename from cpp/test/test_utils.h rename to cpp/tests/test_utils.h diff --git a/python/cuvs/cuvs/test/__init__py b/python/cuvs/cuvs/tests/__init__py similarity index 100% rename from python/cuvs/cuvs/test/__init__py rename to python/cuvs/cuvs/tests/__init__py diff --git a/python/cuvs/cuvs/test/ann_utils.py b/python/cuvs/cuvs/tests/ann_utils.py similarity index 100% rename from python/cuvs/cuvs/test/ann_utils.py rename to python/cuvs/cuvs/tests/ann_utils.py diff --git a/python/cuvs/cuvs/test/conftest.py b/python/cuvs/cuvs/tests/conftest.py similarity index 100% rename from python/cuvs/cuvs/test/conftest.py rename to python/cuvs/cuvs/tests/conftest.py diff --git a/python/cuvs/cuvs/test/test_brute_force.py b/python/cuvs/cuvs/tests/test_brute_force.py similarity index 100% rename from python/cuvs/cuvs/test/test_brute_force.py rename to python/cuvs/cuvs/tests/test_brute_force.py diff --git a/python/cuvs/cuvs/test/test_cagra.py b/python/cuvs/cuvs/tests/test_cagra.py similarity index 100% rename from python/cuvs/cuvs/test/test_cagra.py rename to python/cuvs/cuvs/tests/test_cagra.py diff --git a/python/cuvs/cuvs/test/test_distance.py b/python/cuvs/cuvs/tests/test_distance.py similarity index 100% rename from python/cuvs/cuvs/test/test_distance.py rename to python/cuvs/cuvs/tests/test_distance.py diff --git a/python/cuvs/cuvs/test/test_doctests.py b/python/cuvs/cuvs/tests/test_doctests.py similarity index 100% rename from python/cuvs/cuvs/test/test_doctests.py rename to python/cuvs/cuvs/tests/test_doctests.py diff --git a/python/cuvs/cuvs/test/test_hnsw.py b/python/cuvs/cuvs/tests/test_hnsw.py similarity index 100% rename from python/cuvs/cuvs/test/test_hnsw.py rename to python/cuvs/cuvs/tests/test_hnsw.py diff --git a/python/cuvs/cuvs/test/test_ivf_flat.py b/python/cuvs/cuvs/tests/test_ivf_flat.py similarity index 100% rename from python/cuvs/cuvs/test/test_ivf_flat.py rename to python/cuvs/cuvs/tests/test_ivf_flat.py diff --git a/python/cuvs/cuvs/test/test_ivf_pq.py b/python/cuvs/cuvs/tests/test_ivf_pq.py similarity index 100% rename from python/cuvs/cuvs/test/test_ivf_pq.py rename to python/cuvs/cuvs/tests/test_ivf_pq.py diff --git a/python/cuvs/cuvs/test/test_refine.py b/python/cuvs/cuvs/tests/test_refine.py similarity index 100% rename from python/cuvs/cuvs/test/test_refine.py rename to python/cuvs/cuvs/tests/test_refine.py diff --git a/python/cuvs/cuvs/test/test_serialization.py b/python/cuvs/cuvs/tests/test_serialization.py similarity index 100% rename from python/cuvs/cuvs/test/test_serialization.py rename to python/cuvs/cuvs/tests/test_serialization.py diff --git a/python/cuvs/cuvs/test/test_version.py b/python/cuvs/cuvs/tests/test_version.py similarity index 100% rename from python/cuvs/cuvs/test/test_version.py rename to python/cuvs/cuvs/tests/test_version.py From 4be94297cdab6752d3732e7b11df5131460aecf1 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Sat, 18 Jan 2025 15:03:11 -0600 Subject: [PATCH 2/4] Update docs. --- .pre-commit-config.yaml | 2 +- docs/source/developer_guide.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fcfc7e1fa..5a951a83d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -81,7 +81,7 @@ repos: exclude: .*/thirdparty/.* - id: include-check name: include-check - entry: python ./cpp/scripts/include_checker.py cpp/bench cpp/include cpp/test + entry: python ./cpp/scripts/include_checker.py cpp/bench cpp/include cpp/tests pass_filenames: false language: python additional_dependencies: [gitpython] diff --git a/docs/source/developer_guide.md b/docs/source/developer_guide.md index 4fdd6405e..daba99b93 100644 --- a/docs/source/developer_guide.md +++ b/docs/source/developer_guide.md @@ -211,7 +211,7 @@ This will bring up an interactive prompt to select which spelling fixes to apply Manually, run the following to bulk-fix include style issues: ```bash -python ./cpp/scripts/include_checker.py --inplace [cpp/include cpp/test ... list of folders which you want to fix] +python ./cpp/scripts/include_checker.py --inplace [cpp/include cpp/tests ... list of folders which you want to fix] ``` ### Copyright header From 8cab1731bec5b68465fa141cac7a887102955f1f Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Sat, 18 Jan 2025 15:07:44 -0600 Subject: [PATCH 3/4] More renames. --- cpp/tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/tests/CMakeLists.txt b/cpp/tests/CMakeLists.txt index 9aa596a6e..54fde4838 100644 --- a/cpp/tests/CMakeLists.txt +++ b/cpp/tests/CMakeLists.txt @@ -77,7 +77,7 @@ function(ConfigureTest) target_compile_definitions(${TEST_NAME} PRIVATE "CUVS_DISABLE_CUDA") endif() - target_include_directories(${TEST_NAME} PUBLIC "$") + target_include_directories(${TEST_NAME} PUBLIC "$") rapids_test_add( NAME ${TEST_NAME} From dc473309293de31570d43c093b9fc00ce3fc104e Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Mon, 27 Jan 2025 16:29:28 -0600 Subject: [PATCH 4/4] Fix subpackage names. --- python/cuvs/cuvs/tests/test_cagra.py | 2 +- python/cuvs/cuvs/tests/test_hnsw.py | 2 +- python/cuvs/cuvs/tests/test_ivf_flat.py | 2 +- python/cuvs/cuvs/tests/test_ivf_pq.py | 2 +- python/cuvs/cuvs/tests/test_serialization.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/cuvs/cuvs/tests/test_cagra.py b/python/cuvs/cuvs/tests/test_cagra.py index 9efd48923..ab3ac4a37 100644 --- a/python/cuvs/cuvs/tests/test_cagra.py +++ b/python/cuvs/cuvs/tests/test_cagra.py @@ -20,7 +20,7 @@ from sklearn.preprocessing import normalize from cuvs.neighbors import cagra, filters -from cuvs.test.ann_utils import calc_recall, generate_data +from cuvs.tests.ann_utils import calc_recall, generate_data def run_cagra_build_search_test( diff --git a/python/cuvs/cuvs/tests/test_hnsw.py b/python/cuvs/cuvs/tests/test_hnsw.py index 20f583ae8..e00b88bb7 100644 --- a/python/cuvs/cuvs/tests/test_hnsw.py +++ b/python/cuvs/cuvs/tests/test_hnsw.py @@ -19,7 +19,7 @@ from sklearn.preprocessing import normalize from cuvs.neighbors import cagra, hnsw -from cuvs.test.ann_utils import calc_recall, generate_data +from cuvs.tests.ann_utils import calc_recall, generate_data def run_hnsw_build_search_test( diff --git a/python/cuvs/cuvs/tests/test_ivf_flat.py b/python/cuvs/cuvs/tests/test_ivf_flat.py index 9dd4097dc..c3ec0252a 100644 --- a/python/cuvs/cuvs/tests/test_ivf_flat.py +++ b/python/cuvs/cuvs/tests/test_ivf_flat.py @@ -20,7 +20,7 @@ from sklearn.preprocessing import normalize from cuvs.neighbors import ivf_flat -from cuvs.test.ann_utils import calc_recall, generate_data +from cuvs.tests.ann_utils import calc_recall, generate_data def run_ivf_flat_build_search_test( diff --git a/python/cuvs/cuvs/tests/test_ivf_pq.py b/python/cuvs/cuvs/tests/test_ivf_pq.py index dff65b18c..6661be7de 100644 --- a/python/cuvs/cuvs/tests/test_ivf_pq.py +++ b/python/cuvs/cuvs/tests/test_ivf_pq.py @@ -20,7 +20,7 @@ from sklearn.preprocessing import normalize from cuvs.neighbors import ivf_pq -from cuvs.test.ann_utils import calc_recall, generate_data +from cuvs.tests.ann_utils import calc_recall, generate_data def run_ivf_pq_build_search_test( diff --git a/python/cuvs/cuvs/tests/test_serialization.py b/python/cuvs/cuvs/tests/test_serialization.py index 1f4a54e87..dafaed4c7 100644 --- a/python/cuvs/cuvs/tests/test_serialization.py +++ b/python/cuvs/cuvs/tests/test_serialization.py @@ -18,7 +18,7 @@ from pylibraft.common import device_ndarray from cuvs.neighbors import brute_force, cagra, ivf_flat, ivf_pq -from cuvs.test.ann_utils import generate_data +from cuvs.tests.ann_utils import generate_data @pytest.mark.parametrize("dtype", [np.float32, np.int8, np.ubyte])