github.com/silveraid/fabric-ca@v1.1.0-preview.0.20180127000700-71974f53ab08/scripts/run_tests (about) 1 #!/bin/bash 2 # 3 # Copyright IBM Corp. All Rights Reserved. 4 # 5 # SPDX-License-Identifier: Apache-2.0 6 # 7 FCA=$GOPATH/src/github.com/hyperledger/fabric-ca 8 9 echo "Running all tests ..." 10 { 11 export PATH=$PATH:$GOPATH/bin 12 13 go get github.com/axw/gocov/... 14 go get github.com/AlekSi/gocov-xml 15 16 PKGS=`go list github.com/hyperledger/fabric-ca/... | grep -Ev '/vendor/|/api|/dbutil|/ldap|/mocks|/test/fabric-ca-load-tester'` 17 18 gocov test -timeout 15m $PKGS | gocov-xml > coverage.xml 19 20 } 2>&1 | tee /tmp/test.results 21 echo "Finished running all tests" 22 23 $FCA/scripts/check_test_results /tmp/test.results 24 25 exit $?