From: Alexandru Ardelean Date: Wed, 17 Jul 2024 11:58:16 +0000 (+0300) Subject: tcpreplay: add simple test.sh for all executables X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=f008af9060cde3763fbe3ab2f123592710a9d852;p=openwrt-packages.git tcpreplay: add simple test.sh for all executables Signed-off-by: Alexandru Ardelean --- diff --git a/net/tcpreplay/test.sh b/net/tcpreplay/test.sh new file mode 100644 index 000000000..b7a846261 --- /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 +