File: test-runner.sh

package info (click to toggle)
golang-github-google-certificate-transparency 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,764 kB
  • sloc: sh: 606; makefile: 103; sql: 16
file content (24 lines) | stat: -rwxr-xr-x 688 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

# This script is used by the CloudBuild ct_testbase docker image.
# It's executed as the default command by that image in order to run a
# full presubmit/integration test.

./scripts/presubmit.sh ${PRESUBMIT_OPTS} || exit 1

# Check re-generation didn't change anything
status=$(git status --porcelain | egrep -v 'coverage|go\.(mod|sum)') || :
if [[ -n ${status} ]]; then
  echo "Regenerated files differ from checked-in versions: ${status}"
  git status
  git diff
  #exit 1
fi

if [[ "${WITH_ETCD}" == "true" ]]; then
  export ETCD_DIR="${GOPATH}/bin"
fi

./trillian/integration/integration_test.sh

HAMMER_OPTS="--operations=1500" ./trillian/integration/ct_hammer_test.sh