mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-18 21:21:10 +02:00
27 lines
330 B
Bash
Executable File
27 lines
330 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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
|