Files
packages/net/tcpreplay/test.sh
Alexandru Ardelean f008af9060 tcpreplay: add simple test.sh for all executables
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2024-08-23 16:04:00 +03:00

16 lines
328 B
Bash

#!/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