summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-09-14 08:57:42 -0400
committerAndrew Opalach <andrew@akon.city> 2026-09-14 08:57:42 -0400
commit8f208c26b6fa1a9f3372679c047cab559c06e26b (patch)
tree323d894d6ff8e1ed1445c40cb1e2f5d3cee5e8e8 /tests
parentc66c7c64ebd16287b892f8a780cffcabafba3799 (diff)
downloadcamu-8f208c26b6fa1a9f3372679c047cab559c06e26b.tar.gz
camu-8f208c26b6fa1a9f3372679c047cab559c06e26b.tar.bz2
camu-8f208c26b6fa1a9f3372679c047cab559c06e26b.zip
Server-side fixes from DIRECT_MODE testing
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.sh39
1 files changed, 35 insertions, 4 deletions
diff --git a/tests/runner.sh b/tests/runner.sh
index f6aae5b..ae53d94 100755
--- a/tests/runner.sh
+++ b/tests/runner.sh
@@ -53,8 +53,9 @@ check_for_crash() {
run_cmsrv
-sleep 0.5
+sleep 0.25
+# ---
START_TEST "Backskip target fails to load + immediate pause"
$CMV_ADD "START_AT 1"
@@ -63,17 +64,20 @@ $CMV_ADD resources/1626892672495.mp4
run_cmv
-sleep 4
+sleep 3
$CMV_ADD "PREV"
$CMV_ADD "PAUSE"
-sleep 3
+sleep 2
check_for_crash $SINK_PID
$CMV_ADD "CLEAR"
+# --- END_TEST
+
+# ---
START_TEST "Server restart liana client RECONNECT_RECOVER"
$CMV_ADD resources/1612970595357.mp4
@@ -86,10 +90,37 @@ run_cmsrv
$CMV_ADD resources/1612970595357.mp4
-sleep 10
+sleep 3
check_for_crash $SINK_PID
+$CMV_ADD "CLEAR"
+
+# --- END_TEST
+
+# ---
+START_TEST "Reconnect with different entry (image -> video)"
+
+$CMV_ADD resources/quote.jpg
+
+sleep 1
+
+kill -s SIGKILL $CMSRV_PID
+
+run_cmsrv
+
+sleep 0.25
+
+$CMV_ADD resources/1612970595357.mp4
+
+sleep 2
+
+check_for_crash $SINK_PID
+
+sleep 2
+
+# --- END
+
if ps -p $SINK_PID > /dev/null; then
kill -s SIGINT $SINK_PID
fi