You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/test.sh

20 lines
353 B

#!/bin/sh
set -eux
export PACKER_ACC=1
RETVAL=0
for file in $(find ./ -type f ! -path "./vendor/*" -name '*.go' -print)
do
if [[ -n "$(gofmt -l "$file")" ]]
then
echo -e "$file does not conform to gofmt rules. Run: gofmt -s -w $file"
RETVAL=1
fi
done
exit $RETVAL
go test -v -count 1 -timeout 20m ./driver ./iso ./clone