talos/hack/golang/test.sh
Andrew Rynhard 1e9548d149 feat: use new pkgs for initramfs and rootfs
This brings in the newly compiled libraries and binaries from our new
pkg builds.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-07-15 10:32:29 -07:00

27 lines
328 B
Bash
Executable File

#!/bin/sh
set -e
CGO_ENABLED=1
perform_tests() {
echo "Performing tests"
go test -v -covermode=atomic -coverprofile=artifacts/coverage.txt ./...
}
perform_short_tests() {
echo "Performing short tests"
go test -v -short ./...
}
case $1 in
--short)
perform_short_tests
;;
*)
perform_tests
;;
esac
exit 0