03_test_release.sh 732 B

1234567891011121314151617181920212223242526
  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. rm -f $TARNAME;
  15. rm -rf redis-${TAG};
  16. wget $DOWNLOADURL;
  17. tar xvzf $TARNAME;
  18. cd redis-${TAG};
  19. make;
  20. ./runtest;
  21. ./runtest-sentinel;
  22. if [ -x runtest-cluster ]; then
  23. ./runtest-cluster;
  24. fi"