mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
GB28181: Enable regression test for gb28181. v5.0.122
1. Build regression test tool for gb28181. 2. Run regression test for gb28181. 3. Format go code and eliminate logs. 4. Change base docker to ubuntu20.
This commit is contained in:
parent
4b09a7d686
commit
7750bdae10
32 changed files with 3882 additions and 9727 deletions
|
@ -1,16 +1,24 @@
|
|||
FROM ossrs/srs:dev-gcc7-cache
|
||||
RUN yum install -y gcc make gcc-c++ patch unzip perl git
|
||||
FROM ossrs/srs:ubuntu20-cache
|
||||
|
||||
ARG MAKEARGS
|
||||
RUN echo "MAKEARGS: ${MAKEARGS}"
|
||||
|
||||
# https://serverfault.com/questions/949991/how-to-install-tzdata-on-a-ubuntu-docker-image
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
# For go to build and run utest.
|
||||
ENV PATH $PATH:/usr/local/go/bin
|
||||
|
||||
RUN apt update -y && apt install -y gcc make g++ patch unzip perl git libasan5
|
||||
|
||||
# Build and install SRS.
|
||||
COPY . /srs
|
||||
WORKDIR /srs/trunk
|
||||
|
||||
# Note that we must enable the gcc7 or link failed.
|
||||
RUN scl enable devtoolset-7 -- ./configure --srt=on --gb28181=on --apm=on --utest=on
|
||||
RUN scl enable devtoolset-7 -- make utest
|
||||
RUN ./configure --srt=on --gb28181=on --apm=on --utest=on
|
||||
RUN make utest ${MAKEARGS}
|
||||
|
||||
# Build benchmark tool.
|
||||
RUN cd 3rdparty/srs-bench && make
|
||||
RUN cd 3rdparty/srs-bench && make ${MAKEARGS}
|
||||
|
||||
# Run utest
|
||||
RUN ./objs/srs_utest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue