test(suites): run acceptance and fault flows on dummy backend
This commit is contained in:
@@ -126,23 +126,19 @@ run_matrix_row() {
|
||||
|
||||
local sim_label="acc_${order}_${protocol}_${codec}"
|
||||
|
||||
local sim_cmd=(
|
||||
"${BUILD_DIR}/cvmmap_sim"
|
||||
--shm-name "${shm_name}"
|
||||
--zmq-endpoint "${zmq_endpoint}"
|
||||
--label "${sim_label}"
|
||||
--frames 320
|
||||
--fps 200
|
||||
--width 640
|
||||
--height 360
|
||||
)
|
||||
|
||||
local streamer_cmd=(
|
||||
"${BUILD_DIR}/cvmmap_streamer"
|
||||
--run-mode pipeline
|
||||
--codec "${codec}"
|
||||
--shm-name "${shm_name}"
|
||||
--zmq-endpoint "${zmq_endpoint}"
|
||||
--input-mode dummy
|
||||
--dummy-label "${sim_label}"
|
||||
--dummy-frames 320
|
||||
--dummy-fps 200
|
||||
--dummy-width 640
|
||||
--dummy-height 360
|
||||
--dummy-startup-delay-ms 0
|
||||
--queue-size 1
|
||||
--gop 30
|
||||
--b-frames 0
|
||||
@@ -220,12 +216,7 @@ run_matrix_row() {
|
||||
cleanup_pids+=("${tester_pid}")
|
||||
|
||||
sleep 1
|
||||
|
||||
"${sim_cmd[@]}" > "${sim_log}" 2>&1 &
|
||||
local sim_pid=$!
|
||||
cleanup_pids+=("${sim_pid}")
|
||||
|
||||
sleep 1
|
||||
: > "${sim_log}"
|
||||
|
||||
"${streamer_cmd[@]}" > "${streamer_log}" 2>&1
|
||||
local streamer_rc=$?
|
||||
@@ -233,8 +224,7 @@ run_matrix_row() {
|
||||
wait_pid "${tester_pid}" 15
|
||||
local tester_rc=$?
|
||||
|
||||
wait_pid "${sim_pid}" 15
|
||||
local sim_rc=$?
|
||||
local sim_rc=0
|
||||
|
||||
row_end_ms="$(date +%s%3N)"
|
||||
duration_ms=$((row_end_ms - row_start_ms))
|
||||
@@ -269,11 +259,10 @@ run_matrix_row() {
|
||||
}
|
||||
|
||||
main() {
|
||||
local required=(
|
||||
"${BUILD_DIR}/cvmmap_sim"
|
||||
"${BUILD_DIR}/cvmmap_streamer"
|
||||
"${BUILD_DIR}/rtp_receiver_tester"
|
||||
"${BUILD_DIR}/rtmp_stub_tester"
|
||||
local required=(
|
||||
"${BUILD_DIR}/cvmmap_streamer"
|
||||
"${BUILD_DIR}/rtp_receiver_tester"
|
||||
"${BUILD_DIR}/rtmp_stub_tester"
|
||||
)
|
||||
|
||||
local missing=()
|
||||
|
||||
+14
-26
@@ -205,26 +205,19 @@ run_fault_scenario() {
|
||||
local rtp_port
|
||||
rtp_port="$(scenario_port "${order}")"
|
||||
|
||||
local sim_cmd=(
|
||||
"${BUILD_DIR}/cvmmap_sim"
|
||||
--shm-name "${shm_name}"
|
||||
--zmq-endpoint "${zmq_endpoint}"
|
||||
--label "${sim_label}"
|
||||
--frames "${sim_frames}"
|
||||
--fps "${sim_fps}"
|
||||
--width 640
|
||||
--height 360
|
||||
)
|
||||
if [[ -n "${reset_every}" ]]; then
|
||||
sim_cmd+=(--emit-reset-every "${reset_every}")
|
||||
fi
|
||||
|
||||
local streamer_cmd=(
|
||||
"${BUILD_DIR}/cvmmap_streamer"
|
||||
--run-mode pipeline
|
||||
--codec h264
|
||||
--shm-name "${shm_name}"
|
||||
--zmq-endpoint "${zmq_endpoint}"
|
||||
--input-mode dummy
|
||||
--dummy-label "${sim_label}"
|
||||
--dummy-frames "${sim_frames}"
|
||||
--dummy-fps "${sim_fps}"
|
||||
--dummy-width 640
|
||||
--dummy-height 360
|
||||
--dummy-startup-delay-ms 0
|
||||
--queue-size 1
|
||||
--gop 30
|
||||
--b-frames 0
|
||||
@@ -237,6 +230,9 @@ run_fault_scenario() {
|
||||
--rtp-payload-type 96
|
||||
--rtp-sdp "${sdp_path}"
|
||||
)
|
||||
if [[ -n "${reset_every}" ]]; then
|
||||
streamer_cmd+=(--dummy-reset-every "${reset_every}")
|
||||
fi
|
||||
|
||||
local tester_cmd=(
|
||||
"${BUILD_DIR}/rtp_receiver_tester"
|
||||
@@ -254,21 +250,14 @@ run_fault_scenario() {
|
||||
cleanup_pids+=("${tester_pid}")
|
||||
|
||||
sleep 1
|
||||
|
||||
"${sim_cmd[@]}" > "${sim_log}" 2>&1 &
|
||||
local sim_pid=$!
|
||||
cleanup_pids+=("${sim_pid}")
|
||||
|
||||
sleep 1
|
||||
: > "${sim_log}"
|
||||
|
||||
"${streamer_cmd[@]}" > "${streamer_log}" 2>&1
|
||||
local streamer_rc=$?
|
||||
|
||||
wait_pid "${tester_pid}" 25
|
||||
local tester_rc=$?
|
||||
|
||||
wait_pid "${sim_pid}" 25
|
||||
local sim_rc=$?
|
||||
local sim_rc=0
|
||||
|
||||
row_end_ms="$(date +%s%3N)"
|
||||
duration_ms=$((row_end_ms - row_start_ms))
|
||||
@@ -300,9 +289,8 @@ run_fault_scenario() {
|
||||
|
||||
main() {
|
||||
local required=(
|
||||
"${BUILD_DIR}/cvmmap_sim"
|
||||
"${BUILD_DIR}/cvmmap_streamer"
|
||||
"${BUILD_DIR}/rtp_receiver_tester"
|
||||
"${BUILD_DIR}/cvmmap_streamer"
|
||||
"${BUILD_DIR}/rtp_receiver_tester"
|
||||
)
|
||||
|
||||
local missing=()
|
||||
|
||||
Reference in New Issue
Block a user