integration.sh 318 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. set -e
  3. function run_tests() {
  4. local version=$1
  5. ccm create test -v $version -n 3 -s --debug
  6. ccm status
  7. if [[ $version == 1.2.* ]]; then
  8. echo "running protocol 1 test suite"
  9. go test -v ./... -proto 1
  10. else
  11. echo "running protocol 2 test suite"
  12. go test -v ./...
  13. fi
  14. ccm clear
  15. }
  16. run_tests $1