1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00
dragonflydb-dragonfly/tests/integration/run_ioredis_on_docker.sh
Leonardo Mello abe3b3cb91
feat: support cluster mode emulation (#492)
Signed-off-by: Leonardo Mello <lsvmello@gmail.com>
2023-03-01 08:43:40 +02:00

19 lines
504 B
Bash
Executable file

#!/usr/bin/env bash
# Running this with --build would build the image as well
if [ "$1" = "--build" ]; then
docker build -t ioredis-test -f ./ioredis.Dockerfile . || {
echo "failed to build io redis image"
exit 1
}
fi
# run the tests
echo "running ioredis tests"
docker run --rm -i --network=host ioredis-test ./run_tests.sh
if [ $? -ne 0 ];then
echo "some tests failed - please look at the output from this run"
exit 1
else
echo "finish runing tests successfully"
exit 0
fi