github.com/TeaOSLab/EdgeNode@v1.3.8/build/test.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  TAG=${1}
     4  
     5  if [ -z "$TAG" ]; then
     6  	TAG="community"
     7  fi
     8  
     9  # stop node
    10  go run -tags=${TAG}  ../cmd/edge-node/main.go stop
    11  
    12  # reference: https://pkg.go.dev/cmd/go/internal/test
    13  go clean -testcache
    14  go test -timeout 60s -tags="${TAG}" -cover ../...