mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
Test: Run fast and slow blackbox tests seperately.
This commit is contained in:
parent
c31a8076bb
commit
95b534ff10
4 changed files with 13 additions and 11 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
@ -197,7 +197,9 @@ jobs:
|
|||
- name: Run SRS blackbox-test
|
||||
run: |
|
||||
docker run --rm -w /srs/trunk/3rdparty/srs-bench srs:test \
|
||||
./objs/srs_blackbox_test -test.v -test.parallel 64
|
||||
./objs/srs_blackbox_test -test.v -test.run '^TestFast' -test.parallel 64
|
||||
docker run --rm -w /srs/trunk/3rdparty/srs-bench srs:test \
|
||||
./objs/srs_blackbox_test -test.v -test.run '^TestSlow' -test.parallel 4
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
coverage:
|
||||
|
|
|
@ -33,7 +33,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
func TestRtmpPublish_HlsPlay_Basic(t *testing.T) {
|
||||
func TestFast_RtmpPublish_HlsPlay_Basic(t *testing.T) {
|
||||
// This case is run in parallel.
|
||||
t.Parallel()
|
||||
|
||||
|
|
10
trunk/3rdparty/srs-bench/blackbox/mp3_test.go
vendored
10
trunk/3rdparty/srs-bench/blackbox/mp3_test.go
vendored
|
@ -33,7 +33,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
func TestRtmpPublish_RtmpPlay_CodecMP3_Basic(t *testing.T) {
|
||||
func TestFast_RtmpPublish_RtmpPlay_CodecMP3_Basic(t *testing.T) {
|
||||
// This case is run in parallel.
|
||||
t.Parallel()
|
||||
|
||||
|
@ -117,7 +117,7 @@ func TestRtmpPublish_RtmpPlay_CodecMP3_Basic(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestRtmpPublish_HttpFlvPlay_CodecMP3_Basic(t *testing.T) {
|
||||
func TestFast_RtmpPublish_HttpFlvPlay_CodecMP3_Basic(t *testing.T) {
|
||||
// This case is run in parallel.
|
||||
t.Parallel()
|
||||
|
||||
|
@ -208,7 +208,7 @@ func TestRtmpPublish_HttpFlvPlay_CodecMP3_Basic(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestRtmpPublish_HttpMp3Play_CodecMP3_Basic(t *testing.T) {
|
||||
func TestFast_RtmpPublish_HttpMp3Play_CodecMP3_Basic(t *testing.T) {
|
||||
// This case is run in parallel.
|
||||
t.Parallel()
|
||||
|
||||
|
@ -296,7 +296,7 @@ func TestRtmpPublish_HttpMp3Play_CodecMP3_Basic(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestRtmpPublish_HttpTsPlay_CodecMP3_Basic(t *testing.T) {
|
||||
func TestFast_RtmpPublish_HttpTsPlay_CodecMP3_Basic(t *testing.T) {
|
||||
// This case is run in parallel.
|
||||
t.Parallel()
|
||||
|
||||
|
@ -384,7 +384,7 @@ func TestRtmpPublish_HttpTsPlay_CodecMP3_Basic(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestRtmpPublish_HlsPlay_CodecMP3_Basic(t *testing.T) {
|
||||
func TestFast_RtmpPublish_HlsPlay_CodecMP3_Basic(t *testing.T) {
|
||||
// This case is run in parallel.
|
||||
t.Parallel()
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
func TestRtmpPublish_RtmpPlay_Basic(t *testing.T) {
|
||||
func TestFast_RtmpPublish_RtmpPlay_Basic(t *testing.T) {
|
||||
// This case is run in parallel.
|
||||
t.Parallel()
|
||||
|
||||
|
@ -110,7 +110,7 @@ func TestRtmpPublish_RtmpPlay_Basic(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestRtmpPublish_HttpFlvPlay_Basic(t *testing.T) {
|
||||
func TestFast_RtmpPublish_HttpFlvPlay_Basic(t *testing.T) {
|
||||
// This case is run in parallel.
|
||||
t.Parallel()
|
||||
|
||||
|
@ -193,7 +193,7 @@ func TestRtmpPublish_HttpFlvPlay_Basic(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestRtmpPublish_RtmpPlay_ChunkSize128(t *testing.T) {
|
||||
func TestFast_RtmpPublish_RtmpPlay_ChunkSize128(t *testing.T) {
|
||||
// This case is run in parallel.
|
||||
t.Parallel()
|
||||
|
||||
|
@ -274,7 +274,7 @@ func TestRtmpPublish_RtmpPlay_ChunkSize128(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestRtmpPublish_RtmpPlay_EnableATC(t *testing.T) {
|
||||
func TestFast_RtmpPublish_RtmpPlay_EnableATC(t *testing.T) {
|
||||
// This case is run in parallel.
|
||||
t.Parallel()
|
||||
|
||||
|
|
Loading…
Reference in a new issue