The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) https://grpc.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

#!/bin/bash
set -ex
# Install the latest version of Bazel.
if [ -x "$(command -v use_bazel.sh)" ]; then
use_bazel.sh latest
fi
# Verify/query CMake
echo PATH=$PATH
ls -l `which cmake`
cmake --version
echo CC=${CC:-cc}
${CC:-cc} --version
# Log the bazel path and version.
which bazel
bazel version
cd $(dirname $0)/../..
bazel test --test_output=errors :all
if [[ $(uname) = "Linux" ]]; then
# Verify the ASAN build. Have to exclude test_conformance_upb as protobuf
# currently leaks memory in the conformance test runner.
bazel test --copt=-fsanitize=address --linkopt=-fsanitize=address --test_output=errors :all
# Verify the UBSan build. Have to exclude Lua as the version we are using
# fails some UBSan tests.
# For some reason kokoro doesn't have Clang available right now.
#CC=clang CXX=clang++ bazel test -c dbg --copt=-fsanitize=undefined --copt=-fno-sanitize=function,vptr --linkopt=-fsanitize=undefined --action_env=UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1 -- :all -:test_lua
Squashed 'third_party/upb/' changes from 92e63da733..382d5afc60 382d5afc60 Merge pull request #306 from haberman/bigendian efefbffc80 Fixed binary encoding and decoding for big-endian machines. 5d3083013c Merge pull request #304 from haberman/upb-assume 55dd9d3e41 Fixed UPB_ASSUME() for non-GCC, non-MSVC platforms. e4c8afd0d4 Merge pull request #303 from haberman/packed-def 8284321780 Fixed upb_fielddef_packed() to have the correct default. ed86d98f53 Merge pull request #302 from haberman/verify-utf8 8e26a33bcb Added a test for UTF-8 parse checking and added missing error reporting. 2c666bc8f6 Use C-style comment instead of C++. a77ea639d5 Verify UTF-8 when parsing proto3 string fields. 7f19072206 Merge pull request #301 from haberman/rm-pop bfdfe5a914 Removed unused push/pop functions. 1479f2d7ca Merge pull request #299 from haberman/google3-fixes 8f11ec57d2 Applied changes from google3. 7172b981dd Merge pull request #297 from haberman/bugfixes ffe40c9f94 Only run Valgrind if it is present. 922c126b8b Fixed unit test errors that were causing Valgrind failures. 086a68d191 Fixed memory leak that could occur after upb_arena_fuse(). 35abcc248b Added test that should trigger a memory leak. 7d726c8da6 JSON parser: Bugfix for float/double in quotes. 74c60c757b Merge pull request #296 from haberman/php-fixes efe11c6c50 Removed excess logging statement. 81c2aa753e Fixes for the PHP C Extension. git-subtree-dir: third_party/upb git-subtree-split: 382d5afc60e05470c23e8de19b19fc5ad231e732
4 years ago
fi
if which valgrind; then
bazel test --run_under='valgrind --leak-check=full --error-exitcode=1' :all -- -:test_conformance_upb -:cmake_build
fi