blob: c4ae91e642d67f338c8bd850595a747178bd5ed2 [file] [log] [blame]
Matteo Scandolo9a2772a2018-11-19 14:56:26 -08001#!/bin/bash
2
3set -e
4
5# check there are no formatting issues
6GOFMT_LINES=`gofmt -l . | wc -l | xargs`
7test $GOFMT_LINES -eq 0 || echo "gofmt needs to be run, ${GOFMT_LINES} files have issues"
8
9# run the tests for the root package
10go test -race .