2017-05-18 14:42:05 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
|
2017-05-11 01:24:32 +00:00
|
|
|
for pkg in $@; do
|
2017-05-18 14:42:05 +00:00
|
|
|
./scripts/test/unit \
|
|
|
|
-cover \
|
|
|
|
-coverprofile=profile.out \
|
|
|
|
-covermode=atomic \
|
|
|
|
${pkg}
|
|
|
|
|
|
|
|
if test -f profile.out; then
|
|
|
|
cat profile.out >> coverage.txt
|
|
|
|
rm profile.out
|
|
|
|
fi
|
|
|
|
done
|