00_test_release.sh 657 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. if [ $# != "1" ]
  3. then
  4. echo "Usage: ${0} <git-ref>"
  5. exit 1
  6. fi
  7. TAG=$1
  8. TARNAME="redis-${TAG}.tar.gz"
  9. DOWNLOADURL="http://download.redis.io/releases/${TARNAME}"
  10. ssh antirez@metal "export TERM=xterm;
  11. cd /tmp;
  12. rm -rf test_release_tmp_dir;
  13. cd test_release_tmp_dir;
  14. wget $DOWNLOADURL;
  15. tar xvzf $TARNAME;
  16. cd redis-${TAG};
  17. make;
  18. ./runtest;
  19. ./runtest-sentinel;
  20. if [ -x runtest-cluster ]; then
  21. ./runtest-cluster;
  22. fi"