github.com/simpleiot/simpleiot@v0.18.3/tools/testloop.sh (about)

     1  #!/bin/bash
     2  
     3  count=0
     4  
     5  while true; do
     6    echo "running test ..."
     7    go clean -testcache
     8    if ! go test -p=1 -race ./...; then
     9      echo "test failed at count: $count"
    10      break
    11    fi
    12    count=$((count + 1))
    13    echo "count: $count"
    14  done