1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00
srs/trunk/src/utest
Winlin cf46dae80f Support include empty config file. v5.0.173 v6.0.68 (#3768)
SRS supports including another configuration in the include package.
When generating configurations, we can only generate the changed
configurations, while the unchanged configurations are in the fixed
files, for example:

```nginx
listen 1935;
include server.conf;
```

In `server.conf`, we can manage the changing configurations with the
program:

```nginx
http_api { enabled on; }
```

However, during system initialization, we often create an empty
`server.conf`, and the content is generated only after the program
starts, so `server.conf` might be an empty file. This also makes it
convenient to use a script to confirm the existence of this file:

```bash
touch server.conf
```

Currently, SRS does not support empty configurations and will report an
error. This PR is to solve this problem, making it more convenient to
use include.

`TRANS_BY_GPT4`

---------

Co-authored-by: Haibo Chen <495810242@qq.com>
2023-08-28 10:53:27 +08:00
..
srs_utest.cpp HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2023-08-02 22:49:49 +08:00
srs_utest.hpp HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2023-08-02 22:49:49 +08:00
srs_utest_amf0.cpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_amf0.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_app.cpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_app.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_avc.cpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_avc.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_config.cpp Support include empty config file. v5.0.173 v6.0.68 (#3768) 2023-08-28 10:53:27 +08:00
srs_utest_config.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_config2.cpp Support include empty config file. v5.0.173 v6.0.68 (#3768) 2023-08-28 10:53:27 +08:00
srs_utest_config2.hpp Support include empty config file. v5.0.173 v6.0.68 (#3768) 2023-08-28 10:53:27 +08:00
srs_utest_core.cpp Replace sprintf with snprintf to eliminate compile warnings. v6.0.45 (#3534) 2023-05-14 13:04:21 +08:00
srs_utest_core.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_gb28181.cpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_gb28181.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_http.cpp API: Support HTTP basic authentication for API. v6.0.4, v5.0.152 (#3458) 2023-04-01 12:45:29 +08:00
srs_utest_http.hpp SRS5: API: Fix duplicated on_stop callback event bug. v5.0.125 (#3349) 2023-01-01 19:28:10 +08:00
srs_utest_kernel.cpp RTMP: Support enhanced RTMP specification for HEVC. v6.0.42 (#3495) 2023-04-08 09:18:10 +08:00
srs_utest_kernel.hpp SRS5: Improve file writer performance by fwrite with cache. v5.0.133 (#3308) 2023-01-08 12:06:38 +08:00
srs_utest_kernel2.cpp HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2023-08-02 22:49:49 +08:00
srs_utest_kernel2.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_mp4.cpp HEVC: Support DVR HEVC stream to MP4. v6.0.14 (#3360) 2023-01-08 15:05:43 +08:00
srs_utest_mp4.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_protocol.cpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_protocol.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_protocol2.cpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_protocol2.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_reload.cpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_reload.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_rtc.cpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_rtc.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_rtmp.cpp Forward add question mark to the end. v6.0.30 (#3438) 2023-02-25 19:13:48 +08:00
srs_utest_rtmp.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_service.cpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_service.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00
srs_utest_srt.cpp SRT: Upgrade libsrt from 1.4.1 to 1.5.1. v6.0.12 (#3362) 2023-01-04 19:56:33 +08:00
srs_utest_srt.hpp SRS5: Update license date to 2023. v5.0.123 2023-01-01 08:56:20 +08:00