12345678910111213141516171819202122 |
- #!/bin/sh
- if ! type gocov >/dev/null 2>&1; then
- echo >&2 "This script requires the gocov tool."
- echo >&2 "You may obtain it with the following command:"
- echo >&2 "go get github.com/axw/gocov/gocov"
- exit 1
- fi
- if type gcc >/dev/null 2>&1; then
- (cd spew && gocov test -tags testcgo | gocov report)
- else
- (cd spew && gocov test | gocov report)
- fi
|