talos/hack/golang/test.sh
Andrey Smirnov 9f9acf1f05 chore: run tests in the buildkit itself
This relies on two PRs to the buildkit:

* https://github.com/moby/buildkit/pull/1081
* https://github.com/moby/buildkit/pull/1085

Sysfs fix was merged to upstream, so updated tag, while using
`Dockerfile` slug I can switch to dockerfile2llb with support for
`--security=insecure`.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-07-19 07:53:49 -07:00

27 lines
318 B
Bash
Executable File

#!/bin/sh
set -e
CGO_ENABLED=1
perform_tests() {
echo "Performing tests"
go test -v -covermode=atomic -coverprofile=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