#!/bin/sh # The proof of the operator's answers (novox/hq ADR 0259): formatted, vetted, and run where the clones it # builds are beside it (MESH_LAB_REPOS, or MESH_LAB_CONTROLLER, MESH_LAB_TOOLS and MESH_LAB_CATALOGUE); # elsewhere it says NOT RUN and why. It takes about four minutes when it runs. set -eu cd "$(dirname "$0")" export GOPRIVATE=git.novox.be unformatted=$(gofmt -l .) if [ -n "$unformatted" ]; then echo "not gofmt'd:" echo "$unformatted" exit 1 fi sh -n live-acceptance.sh go vet ./... out=$(mktemp) status=0 go test -count=1 -timeout 25m -v -run '^TestTheOperatorsAnswerEndToEnd$' . >"$out" 2>&1 || status=$? grep -E '^(--- | --- |ok|FAIL|PASS)|NOT RUN' "$out" || true [ "$status" -eq 0 ] || tail -60 "$out" rm -f "$out" exit "$status"