Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
4f8a6356
Unverified
Commit
4f8a6356
authored
Jan 23, 2019
by
Hao Nguyen
Committed by
GitHub
Jan 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create test for protoc with tcmalloc (#5612)
* Add TC malloc kokoro test * Update tcmalloc test
parent
7f42d6d0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
0 deletions
+61
-0
build.sh
kokoro/linux/cpp_tcmalloc/build.sh
+13
-0
continuous.cfg
kokoro/linux/cpp_tcmalloc/continuous.cfg
+5
-0
presubmit.cfg
kokoro/linux/cpp_tcmalloc/presubmit.cfg
+5
-0
Dockerfile
kokoro/linux/dockerfile/test/cpp_tcmalloc/Dockerfile
+29
-0
tests.sh
tests.sh
+9
-0
No files found.
kokoro/linux/cpp_tcmalloc/build.sh
0 → 100755
View file @
4f8a6356
#!/bin/bash
#
# Build file to set up and run tests
# Change to repo root
cd
$(
dirname
$0
)
/../../..
export
DOCKERHUB_ORGANIZATION
=
protobuftesting
export
DOCKERFILE_DIR
=
kokoro/linux/dockerfile/test/cpp_tcmalloc
export
DOCKER_RUN_SCRIPT
=
kokoro/linux/pull_request_in_docker.sh
export
OUTPUT_DIR
=
testoutput
export
TEST_SET
=
"cpp_tcmalloc"
./kokoro/linux/build_and_run_docker.sh
kokoro/linux/cpp_tcmalloc/continuous.cfg
0 → 100644
View file @
4f8a6356
# Config file for running tests in Kokoro
# Location of the build script in repository
build_file: "protobuf/kokoro/linux/cpp_tcmalloc/build.sh"
timeout_mins: 1440
kokoro/linux/cpp_tcmalloc/presubmit.cfg
0 → 100644
View file @
4f8a6356
# Config file for running tests in Kokoro
# Location of the build script in repository
build_file: "protobuf/kokoro/linux/cpp_tcmalloc/build.sh"
timeout_mins: 1440
kokoro/linux/dockerfile/test/cpp_tcmalloc/Dockerfile
0 → 100644
View file @
4f8a6356
FROM
debian:jessie
# Install dependencies. We start with the basic ones require to build protoc
# and the C++ build
RUN
apt-get update
&&
apt-get
install
-y
\
autoconf
\
autotools-dev
\
build-essential
\
bzip2
\
ccache
\
curl
\
gcc
\
git
\
libc6
\
libc6-dbg
\
libc6-dev
\
libgtest-dev
\
libtool
\
make
\
parallel
\
time
\
wget
\
&&
apt-get clean
# Install dependencies for TC malloc
RUN
apt-get
install
-y
\
google-perftools
\
libgoogle-perftools4
\
libgoogle-perftools-dev
tests.sh
View file @
4f8a6356
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment