aboutsummaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorHao Nguyen <45579440+haon4@users.noreply.github.com>2019-01-23 10:02:51 -0800
committerGitHub <noreply@github.com>2019-01-23 10:02:51 -0800
commit4f8a635679c43c546764b4af9cc7132e1854e080 (patch)
tree6c704604dd5e21824fa394db995abec9e3bdefc7 /tests.sh
parent7f42d6d0bcadb286aa5120bc60441d4b56bacd93 (diff)
downloadplatform_external_protobuf-4f8a635679c43c546764b4af9cc7132e1854e080.tar.gz
platform_external_protobuf-4f8a635679c43c546764b4af9cc7132e1854e080.tar.bz2
platform_external_protobuf-4f8a635679c43c546764b4af9cc7132e1854e080.zip
Create test for protoc with tcmalloc (#5612)
* Add TC malloc kokoro test * Update tcmalloc test
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index 5b369485e..2f453bdc8 100755
--- a/tests.sh
+++ b/tests.sh
@@ -38,6 +38,15 @@ build_cpp() {
fi
}
+build_cpp_tcmalloc() {
+ internal_build_cpp
+ ./configure LIBS=-ltcmalloc && make clean && make \
+ PTHREAD_CFLAGS='-pthread -DGOOGLE_PROTOBUF_HEAP_CHECK_DRACONIAN' \
+ check
+ cd src
+ PPROF_PATH=/usr/bin/google-pprof HEAPCHECK=draconian ./protobuf-test
+}
+
build_cpp_distcheck() {
# Initialize any submodules.
git submodule update --init --recursive