#!/usr/bin/env bash

set -e
touch coverage.txt

# test fuzz inputs
go test -tags gofuzz -run TestFuzz -v .

# quick-test without -race
go test ./...

# test with "debug" tag
go test -tags debug ./...

# test concurrency
go test -race -cpu=1,2,4 -run TestClient_DoConcurrent

for d in $(go list ./... | grep -v vendor); do
    go test -race -coverprofile=profile.out -covermode=atomic "$d"
    if [ -f profile.out ]; then
        cat profile.out >> coverage.txt
        rm profile.out
    fi
done

#!/usr/bin/env bash

set -e
touch coverage.txt

# test fuzz inputs
go test -tags gofuzz -run TestFuzz -v .

# quick-test without -race
go test ./...

# test with "debug" tag
go test -tags debug ./...

# test concurrency
go test -race -cpu=1,2,4 -run TestClient_DoConcurrent

for d in $(go list ./... | grep -v vendor); do
    go test -race -coverprofile=profile.out -covermode=atomic "$d"
    if [[ -f profile.out ]]; then
        cat profile.out >> coverage.txt
        rm profile.out
    fi
done

Replace condition with double brackets
Replace condition with double brackets

Merged the changes from Source: gortc/stun
Commit: 827135fb7f576b8ede5ec6227affaf23b22eb759 [827135f]
Parents: 8eee080730
Author: Aleksandr Razumov <23d8e0156062165ca3736e9f1e364d414e1d82d5@gortc.io>
Date: 9 August 2019 at 4:16:59 AM GMT+8
