github.com/asifdxtreme/cli@v6.1.3-0.20150123051144-9ead8700b4ae+incompatible/bin/test_packages (about) 1 #!/bin/bash 2 3 ( 4 set -e 5 6 function printStatus { 7 if [ $? -eq 0 ]; then 8 echo -e "\nSWEET SUITE SUCCESS" 9 else 10 echo -e "\nSUITE FAILURE" 11 fi 12 } 13 14 trap printStatus EXIT 15 16 bin/generate-language-resources 17 18 GODEP=$(which godep) 19 if [[ -z $GODEP ]] ; then 20 echo "godep is not installed. Run 'go get github.com/tools/godep'" 21 exit 1 22 fi 23 24 export GOPATH=$($GODEP path):$GOPATH 25 26 echo -e "\n Cleaning build artifacts..." 27 go clean 28 29 echo -e "\n Formatting packages..." 30 go fmt ./cf/... ./testhelpers/... ./generic/... ./main/... ./glob/... ./words/... 31 32 echo -e "\n Testing packages:" 33 34 for PKG in $@ 35 do 36 go test ./$PKG 37 done 38 )