blob: e3e346d5c92f5a60d1df0ed38ac480138181bbe1 [file] [log] [blame]
#!/bin/bash
set -euo pipefail
cd ${KOKORO_ARTIFACTS_DIR}/git/tink
echo "========================================================= Running cmake"
cmake --version
cmake . cmake . -DTINK_BUILD_TESTS=ON -DCMAKE_CXX_STANDARD=11
echo "==================================================== Building with make"
make -j8 all
echo "===================================================== Testing with make"
CTEST_OUTPUT_ON_FAILURE=1 make test
echo "================================================ Done testing with make"
export TINK_SRC_DIR="$(pwd)"
export TEST_TMPDIR="$(mktemp -d)"
export TEST_SRCDIR="$(cd ..; pwd)"
cd examples/cc/helloworld
./cmake_build_test.sh