projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c986d67
)
tcpreplay: add simple test.sh for all executables
author
Alexandru Ardelean
<
[email protected]
>
Wed, 17 Jul 2024 11:58:16 +0000
(14:58 +0300)
committer
Alexandru Ardelean
<
[email protected]
>
Fri, 23 Aug 2024 13:04:00 +0000
(16:04 +0300)
Signed-off-by: Alexandru Ardelean <
[email protected]
>
net/tcpreplay/test.sh
[new file with mode: 0644]
patch
|
blob
diff --git a/net/tcpreplay/test.sh
b/net/tcpreplay/test.sh
new file mode 100644
(file)
index 0000000..
b7a8462
--- /dev/null
+++ b/
net/tcpreplay/test.sh
@@ -0,0
+1,15
@@
+#!/bin/sh
+
+[ "$1" = "tcpreplay-all" ] || exit 0
+
+EXEC_LIST="tcpbridge tcpliveplay tcpreplay tcprewrite tcpcapinfo tcpprep tcpreplay-edit"
+
+for executable in $EXEC_LIST ; do
+ $executable --version
+ $executable --version 2>&1 | grep "$2"
+ [ $? == 0 ] || {
+ echo "Problem or incorrect version for '$executable'"
+ exit 1
+ }
+done
+