|
|
@ -16,15 +16,6 @@ tmpdir=$(mktemp -d) |
|
|
|
|
|
|
|
|
|
|
|
. "${progdir}/setup_bls_build_flags.sh" |
|
|
|
. "${progdir}/setup_bls_build_flags.sh" |
|
|
|
|
|
|
|
|
|
|
|
echo "Running go test..." |
|
|
|
|
|
|
|
if go test -v -count=1 ./... |
|
|
|
|
|
|
|
then |
|
|
|
|
|
|
|
echo "go test succeeded." |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
echo "go test FAILED!" |
|
|
|
|
|
|
|
ok=false |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Running golint..." |
|
|
|
echo "Running golint..." |
|
|
|
golint_output="${tmpdir}/golint_output.txt" |
|
|
|
golint_output="${tmpdir}/golint_output.txt" |
|
|
|
if "${progdir}/golint.sh" -set_exit_status > "${golint_output}" 2>&1 |
|
|
|
if "${progdir}/golint.sh" -set_exit_status > "${golint_output}" 2>&1 |
|
|
@ -74,6 +65,15 @@ else |
|
|
|
ok=false |
|
|
|
ok=false |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Running go test..." |
|
|
|
|
|
|
|
if go test -v -count=1 ./... |
|
|
|
|
|
|
|
then |
|
|
|
|
|
|
|
echo "go test succeeded." |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
echo "go test FAILED!" |
|
|
|
|
|
|
|
ok=false |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if ! ${ok} |
|
|
|
if ! ${ok} |
|
|
|
then |
|
|
|
then |
|
|
|
echo "Some checks failed; see output above." |
|
|
|
echo "Some checks failed; see output above." |
|
|
|