1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

UTest: Upgrade gtest to 1.11 and support clion. (#2970)

This commit is contained in:
Winlin 2022-03-17 16:56:52 +08:00 committed by GitHub
parent c5cc79ee6f
commit 350c05c589
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
83 changed files with 40318 additions and 31 deletions

View file

@ -1,4 +1,4 @@
FROM ossrs/srs:dev
FROM ossrs/srs:dev-gcc7
# Install depends tools.
RUN yum install -y gcc make gcc-c++ patch unzip perl git
@ -6,7 +6,12 @@ RUN yum install -y gcc make gcc-c++ patch unzip perl git
# Build and install SRS.
COPY . /srs
WORKDIR /srs/trunk
RUN ./configure --srt=on --utest=on --jobs=2 && make -j2 utest
# Note that we must enable the gcc7 or link failed.
RUN scl enable devtoolset-7 -- ./configure --srt=on --utest=on --jobs=2
RUN scl enable devtoolset-7 -- make -j2 utest
# Build benchmark tool.
RUN cd 3rdparty/srs-bench && make
# Run utest