forked from NVIDIA/cudf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_cudf_kafka_ctests.sh
More file actions
executable file
·24 lines (20 loc) · 915 Bytes
/
Copy pathrun_cudf_kafka_ctests.sh
File metadata and controls
executable file
·24 lines (20 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2024-2025, NVIDIA CORPORATION.
# SPDX-License-Identifier: Apache-2.0
set -euo pipefail
# Support customizing the ctests' install location
# First, try the installed location (CI/conda environments)
installed_test_location="${INSTALL_PREFIX:-${CONDA_PREFIX:-/usr}}/bin/gtests/libcudf_kafka/"
# Fall back to the build directory (devcontainer environments)
devcontainers_test_location="$(dirname "$(realpath "${BASH_SOURCE[0]}")")/../cpp/libcudf_kafka/build/latest"
if [[ -d "${installed_test_location}" ]]; then
cd "${installed_test_location}"
elif [[ -d "${devcontainers_test_location}" ]]; then
cd "${devcontainers_test_location}"
else
echo "Error: Test location not found. Searched:" >&2
echo " - ${installed_test_location}" >&2
echo " - ${devcontainers_test_location}" >&2
exit 1
fi
ctest --output-on-failure --no-tests=error "$@"