Skip to content
Merged
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
14 changes: 1 addition & 13 deletions ci/tools/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ test_module=${1}
# (it is a direct dependency of bindings, and a transitive dependency of core)
pushd ./cuda_pathfinder
echo "Installing pathfinder wheel"
pwd
ls
pip install $(ls *.whl)[test]
popd

Expand All @@ -34,7 +32,6 @@ if [[ "${test_module}" == "pathfinder" ]]; then
echo "Running pathfinder tests with " \
"LD:${CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS} " \
"FH:${CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS}"
pwd
pytest -ra -s -v tests/ |& tee /tmp/pathfinder_test_log.txt
# Fail if no "INFO test_" lines are found; capture line count otherwise
line_count=$(grep '^INFO test_' /tmp/pathfinder_test_log.txt | wc -l)
Expand All @@ -43,18 +40,14 @@ if [[ "${test_module}" == "pathfinder" ]]; then
elif [[ "${test_module}" == "bindings" ]]; then
pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}"
echo "Installing bindings wheel"
pwd
ls
if [[ "${LOCAL_CTK}" == 1 ]]; then
ls "${CUDA_PATH}"
pip install $(ls *.whl)[test]
else
pip install $(ls *.whl)[all,test]
fi
popd
pushd ./cuda_bindings
echo "Running bindinds tests"
pwd
echo "Running bindings tests"
${SANITIZER_CMD} pytest -rxXs -v tests/
if [[ "${SKIP_CYTHON_TEST}" == 0 ]]; then
${SANITIZER_CMD} pytest -rxXs -v tests/cython
Expand All @@ -66,8 +59,6 @@ elif [[ "${test_module}" == "core" ]]; then
if [[ "${SKIP_CUDA_BINDINGS_TEST}" == 1 ]]; then
pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}"
echo "Installing bindings wheel"
pwd
ls
if [[ "${LOCAL_CTK}" == 1 ]]; then
pip install *.whl
else
Expand All @@ -78,8 +69,6 @@ elif [[ "${test_module}" == "core" ]]; then
TEST_CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${CUDA_VER})"
pushd "${CUDA_CORE_ARTIFACTS_DIR}"
echo "Installing core wheel"
pwd
ls

FREE_THREADING=""
if python -c 'import sys; assert not sys._is_gil_enabled()' 2> /dev/null; then
Expand All @@ -96,7 +85,6 @@ elif [[ "${test_module}" == "core" ]]; then
popd
pushd ./cuda_core
echo "Running core tests"
pwd
${SANITIZER_CMD} pytest -rxXs -v tests/
# Currently our CI always installs the latest bindings (from either major version).
# This is not compatible with the test requirements.
Expand Down
Loading