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

18 lines
465 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# Test SET command
set_output=$(dotnet run --project ../RedisManager.csproj set -i default testkey testvalue)
if [[ "$set_output" != *"OK"* ]]; then
echo "SET command failed: $set_output"
exit 1
fi
# Test GET command
get_output=$(dotnet run --project ../RedisManager.csproj get -i default testkey)
if [[ "$get_output" != *"testvalue"* ]]; then
echo "GET command failed: $get_output"
exit 1
fi
echo "String command test passed"