feat(scripts/testing): support both C++ and Rust native libraries in Redis tests
Update test-native-with-redis.sh to detect and use both native implementations: - Extend library detection to check both native/build/ (C++) and native_rust/target/release/ (Rust) - Default to building Rust libraries if neither found (make rust-build) - Check for .so (Linux) and .dylib (macOS) extensions for both implementations
This commit is contained in:
parent
f87db5d062
commit
4730f82236
1 changed files with 5 additions and 4 deletions
|
|
@ -7,10 +7,11 @@ set -e
|
|||
echo "=== FetchML Native Library Test with Redis ==="
|
||||
echo ""
|
||||
|
||||
# Check if native libraries are built
|
||||
if [ ! -f "native/build/libqueue_index.so" ] && [ ! -f "native/build/libqueue_index.dylib" ]; then
|
||||
echo "Building native libraries..."
|
||||
make native-build
|
||||
# Check if C++ or Rust native libraries are built
|
||||
if [ ! -f "native/build/libqueue_index.so" ] && [ ! -f "native/build/libqueue_index.dylib" ] && \
|
||||
[ ! -f "native_rust/target/release/libqueue_index.so" ] && [ ! -f "native_rust/target/release/libqueue_index.dylib" ]; then
|
||||
echo "Building Rust native libraries..."
|
||||
make rust-build
|
||||
fi
|
||||
|
||||
compose_cmd=$(command -v docker compose >/dev/null 2>&1 && echo "docker compose" || echo "docker compose")
|
||||
|
|
|
|||
Loading…
Reference in a new issue