github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/binary_transparency/firmware/integration/ft_test.sh (about) 1 #!/bin/bash 2 set -e 3 set -x 4 INTEGRATION_DIR="$( cd "$( dirname "$0" )" && pwd )" 5 6 TESTFLAGS="-v --logtostderr" 7 8 while [[ $# -gt 0 ]]; do 9 case "$1" in 10 --coverage) 11 TESTFLAGS+=" -covermode=atomic -coverprofile=coverage.txt -coverpkg ../..." 12 ;; 13 14 *) 15 usage 16 exit 1 17 ;; 18 esac 19 shift 1 20 done 21 22 # Trillian must already be running 23 [ -z ${TRILLIAN_LOG_RPC+x} ] && TRILLIAN_LOG_RPC="localhost:8090" 24 25 cd ${INTEGRATION_DIR} 26 go test . --trillian=${TRILLIAN_LOG_RPC} ${TESTFLAGS}