mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
app-admin/hcloud: add upstream tests
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
This commit is contained in:
@@ -18,12 +18,16 @@ src_compile() {
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# For upstream a simple test is run 'hcloud version'
|
||||
./hcloud version
|
||||
if [[ $? -ne 0 ]]
|
||||
then
|
||||
die "Test failed"
|
||||
die "hcloud version test failed"
|
||||
fi
|
||||
|
||||
# Avoid error like:
|
||||
# -buildmode=pie not supported when -race is enabled on linux/amd64
|
||||
GOFLAGS=${GOFLAGS//-buildmode=pie}
|
||||
ego test -coverpkg=./... -coverprofile=coverage.txt -v -race ./...
|
||||
}
|
||||
|
||||
src_install() {
|
||||
Reference in New Issue
Block a user