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:
parent
c5cc79ee6f
commit
350c05c589
83 changed files with 40318 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue