• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2#
3# This is the script that runs inside Docker, once the image has been built,
4# to execute all tests for the "pull request" project.
5
6WORKSPACE_BASE=`pwd`
7MY_DIR="$(dirname "$0")"
8TEST_SCRIPT=./tests.sh
9BUILD_DIR=/tmp/protobuf
10
11set -e  # exit immediately on error
12set -x  # display all commands
13
14# The protobuf repository is mounted into our Docker image, but read-only.
15# We clone into a directory inside Docker (this is faster than cp).
16rm -rf $BUILD_DIR
17mkdir -p $BUILD_DIR
18cd $BUILD_DIR
19git clone /var/local/kokoro/protobuf
20cd protobuf
21
22# Initialize any submodules:
23git submodule update --init --recursive
24
25$TEST_SCRIPT $TEST_SET
26