Files
RedisManager/CommandTests/04_geo_tests.sh
GuilhermeStrice f37078157d add project
2025-07-09 19:31:34 +01:00

36 lines
980 B
Bash
Executable File

#!/bin/bash
echo "=== Geo Commands Test ==="
echo "1. Testing GEOADD..."
dotnet run -- geoadd cities 2.3522 48.8566 London 2.2945 48.8584 Paris 13.4050 52.5200 Berlin 12.4964 41.9028 Rome -i localhost
echo ""
echo "2. Testing GEOHASH..."
dotnet run -- geohash cities London Paris -i localhost
echo ""
echo "3. Testing GEOPOS..."
dotnet run -- geopos cities London Berlin Rome -i localhost
echo ""
echo "4. Testing GEODIST..."
dotnet run -- geodist cities London Paris --unit km -i localhost
dotnet run -- geodist cities London Berlin --unit mi -i localhost
echo ""
echo "5. Testing GEORADIUS..."
dotnet run -- georadius cities 2.3522 48.8566 1000 --unit km -i localhost
echo ""
echo "6. Testing GEOHASH with multiple members..."
dotnet run -- geohash cities London Paris Berlin Rome -i localhost
echo ""
echo "7. Testing GEOPOS with multiple members..."
dotnet run -- geopos cities London Paris Berlin Rome -i localhost
echo ""
echo "Geo Commands Test Complete!"
echo ""