docker-cli-openbsd/scripts/test/unit-with-coverage

16 lines
294 B
Bash
Executable File

#!/usr/bin/env bash
set -eu -o pipefail
for pkg in $@; do
./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