maddy/tests/run.sh
2025-09-05 16:54:41 +02:00

18 lines
330 B
Bash
Executable File

#!/bin/sh
set -e
if [ -z "$GO" ]; then
export GO=go
fi
./build_cover.sh
clean() {
rm -f /tmp/maddy-coverage-report*
}
trap clean EXIT
$GO test -tags integration -integration.executable ./maddy.cover -integration.coverprofile /tmp/maddy-coverage-report "$@"
$GO run gocovcat.go /tmp/maddy-coverage-report* > coverage.out