From b422cbeec92fe925ee59f5f966ac9834440200e2 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Wed, 30 Oct 2024 11:20:31 -0400 Subject: [PATCH] Add ci run_ scripts needed for build infra (#434) These `run_*` scripts are needed by the build infra team and bring the cuvs project in line with the rest of RAPIDS Authors: - Robert Maynard (https://github.com/robertmaynard) Approvers: - James Lamb (https://github.com/jameslamb) URL: https://github.com/rapidsai/cuvs/pull/434 --- ci/run_ctests.sh | 9 +++++++++ ci/run_cuvs_pytests.sh | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100755 ci/run_ctests.sh create mode 100755 ci/run_cuvs_pytests.sh diff --git a/ci/run_ctests.sh b/ci/run_ctests.sh new file mode 100755 index 000000000..6bf83961b --- /dev/null +++ b/ci/run_ctests.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Copyright (c) 2024, NVIDIA CORPORATION. + +set -euo pipefail + +# Support customizing the ctests' install location +cd "${INSTALL_PREFIX:-${CONDA_PREFIX:-/usr}}/bin/gtests/libcuvs/" + +ctest --output-on-failure --no-tests=error "$@" diff --git a/ci/run_cuvs_pytests.sh b/ci/run_cuvs_pytests.sh new file mode 100755 index 000000000..4de8927b1 --- /dev/null +++ b/ci/run_cuvs_pytests.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Copyright (c) 2024, NVIDIA CORPORATION. + +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 "$@" tests