Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flame-clmc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flame
flame-clmc
Commits
83581239
Commit
83581239
authored
7 years ago
by
Stephen C Phillips
Browse files
Options
Downloads
Patches
Plain Diff
Adds reporting of errors from VLC clients
Not quite working well enough: too slow
parent
ca200e98
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/streaming/report.sh
+8
-0
8 additions, 0 deletions
test/streaming/report.sh
test/streaming/run.sh
+2
-3
2 additions, 3 deletions
test/streaming/run.sh
with
10 additions
and
3 deletions
test/streaming/report.sh
0 → 100644
+
8
−
0
View file @
83581239
#!/bin/bash
COUNTER
=
$1
TELEGRAF
=
http://localhost:8186
while
read
line
;
do
curl
-i
-XPOST
"
${
TELEGRAF
}
/write?precision=s"
--data-binary
"vlc,client=
${
COUNTER
}
drop_error=1
$(
date
+%s
)
"
>
& /dev/null
done
This diff is collapsed.
Click to expand it.
test/streaming/run.sh
+
2
−
3
View file @
83581239
...
...
@@ -31,7 +31,7 @@ if [ "$#" -ne 3 ]; then
fi
# create test directories
TEST_FOLDER
=
$(
date
+%Y%m%d%H%M%S
)
TEST_FOLDER
=
$(
date
+%Y%m%d%H%M%S
)
TEST_RUN_DIR
=
$1
TEST_DIR
=
$TEST_RUN_DIR
"/streaming/"
$TEST_FOLDER
echo
"Test directory: "
$TEST_DIR
...
...
@@ -47,8 +47,7 @@ STREAM_URI=$2
COUNTER
=
0
MAX_CLIENTS
=
$3
while
[
$COUNTER
-lt
$MAX_CLIENTS
]
;
do
cvlc
-Vdummy
--no-audio
$STREAM_URI
&>
$TEST_DIR
/stdout
$COUNTER
&
# cvlc -Vdummy --no-audio --verbose=0 --file-logging --logfile=$TEST_DIR/vlc-log$COUNTER.txt $STREAM_URI &
cvlc
-Vdummy
--no-audio
$STREAM_URI
2>&1 |
tee
$TEST_DIR
/stdout
$COUNTER
|
grep
"dropping"
| /home/ubuntu/flame-clmc/test/streaming/report.sh
${
COUNTER
}
&
sleep
1
let
COUNTER
=
COUNTER+1
done
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment