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

SRS5: Test: Support blackbox test by FFmpeg. v5.0.128 (#3355)

1. Enable blackbox test for each PR and push.
2. Refine Makefile and README for srs-bench.
3. Add blackbox using FFmpeg and ffprobe.
4. Add blackbox basic test for RTMP stream.
5. Add blackbox basic test for HTTP-FLV stream.
6. Fix utest rand seed issue.

PICK 2141d220b4
This commit is contained in:
Winlin 2023-01-02 15:33:17 +08:00 committed by winlin
parent e1f6661d1f
commit 4c2db0073a
10 changed files with 1421 additions and 51 deletions

View file

@ -23,8 +23,10 @@ package srs
import (
"github.com/ossrs/go-oryx-lib/logger"
"io/ioutil"
"math/rand"
"os"
"testing"
"time"
)
func TestMain(m *testing.M) {
@ -41,5 +43,8 @@ func TestMain(m *testing.M) {
}()
}
// Init rand seed.
rand.Seed(time.Now().UnixNano())
os.Exit(m.Run())
}