Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename test to tests. #590

Merged
merged 8 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,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]
Expand Down
2 changes: 1 addition & 1 deletion ci/run_cuvs_pytests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion ci/test_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
2 changes: 1 addition & 1 deletion ci/test_wheel_cuvs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ python -m pip install \
./local-libcuvs-dep/libcuvs*.whl \
"$(echo ./dist/cuvs*.whl)[test]"

python -m pytest ./python/cuvs/cuvs/test
python -m pytest ./python/cuvs/cuvs/tests
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ endif()
if(BUILD_TESTS)
enable_testing()
add_subdirectory(internal)
add_subdirectory(test)
add_subdirectory(tests)
endif()

# ##################################################################################################
Expand Down
2 changes: 1 addition & 1 deletion cpp/test/CMakeLists.txt → cpp/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function(ConfigureTest)
target_compile_definitions(${TEST_NAME} PRIVATE "CUVS_DISABLE_CUDA")
endif()

target_include_directories(${TEST_NAME} PUBLIC "$<BUILD_INTERFACE:${CUVS_SOURCE_DIR}/test>")
target_include_directories(${TEST_NAME} PUBLIC "$<BUILD_INTERFACE:${CUVS_SOURCE_DIR}/tests>")

rapids_test_add(
NAME ${TEST_NAME}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/source/developer_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
Loading