Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Add tests
[apps/agl-service-can-low-level.git]
/
test
/
afb-test
/
fixtures
/
replay_launcher.sh
diff --git a/test/afb-test/fixtures/replay_launcher.sh
b/test/afb-test/fixtures/replay_launcher.sh
new file mode 100755
(executable)
index 0000000..
186b05b
--- /dev/null
+++ b/
test/afb-test/fixtures/replay_launcher.sh
@@ -0,0
+1,14
@@
+#!/bin/bash
+
+PLAYER=$(command -v canplayer 2> /dev/null || command -v linuxcan-canplayer 2> /dev/null)
+FILE=$1
+
+if [ "$PLAYER" ]
+then
+ $PLAYER -I "$FILE" &
+else
+ echo "can-utils packages not installed"
+ exit 1
+fi
+
+exit 0