integration.sh 279 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. set -e
  3. function run_tests() {
  4. local version=$1
  5. ccm create test -v $version -n 3 -s -d --vnodes
  6. ccm status
  7. local proto=2
  8. if [[ $version == 1.2.* ]]; then
  9. proto=1
  10. fi
  11. go test -v -proto=$proto -rf=3 -cluster=$(ccm liveset) ./...
  12. ccm clear
  13. }
  14. run_tests $1