diff --git a/scripts/testing/test-native-with-redis.sh b/scripts/testing/test-native-with-redis.sh index 63ad8ff..d21951d 100755 --- a/scripts/testing/test-native-with-redis.sh +++ b/scripts/testing/test-native-with-redis.sh @@ -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")