mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
tcpreplay: add simple test.sh for all executables
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
c986d6758f
commit
f008af9060
15
net/tcpreplay/test.sh
Normal file
15
net/tcpreplay/test.sh
Normal file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user