Files
greptimedb/scripts/check_pyo3_link_script.sh
2023-12-06 16:29:00 +08:00

12 lines
301 B
Bash
Executable File

#!/bin/bash
# This script is only used in CI to check if the pyo3 backend is linked correctly
echo $(pwd)
if [[ $FEATURES == *pyo3_backend* ]]; then
cp target/release/greptime scripts
if yes | ./scripts/greptime.sh --version &> /dev/null; then
exit 0
else
exit 1
fi
fi