mirror of
https://github.com/luxfi/oraclevm.git
synced 2026-10-30 15:23:15 +00:00
19 lines
592 B
Bash
Executable File
19 lines
592 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2023, Ava Labs, Inc. All rights reserved.
|
|
# See the file LICENSE for licensing terms.
|
|
|
|
set -e
|
|
|
|
# Set the CGO flags to use the portable version of BLST
|
|
#
|
|
# We use "export" here instead of just setting a bash variable because we need
|
|
# to pass this flag to all child processes spawned by the shell.
|
|
export CGO_CFLAGS="-O -D__BLST_PORTABLE__"
|
|
|
|
if ! [[ "$0" =~ scripts/tests.unit.sh ]]; then
|
|
echo "must be run from repository root"
|
|
exit 255
|
|
fi
|
|
|
|
go test -race -timeout="10m" -coverprofile="coverage.out" -covermode="atomic" $(go list ./... | grep -v tests)
|